Jump to content
Sign in to follow this  
foofighting

Trading Post

Recommended Posts

Hey guys, I have been making a new server after my last one was overrun with hackers. I have been trying to making a Trading Post. I have the custom buildings and everything in place, and I have been trying to figure out two things.

1- How to make an ingame currency? I was thinking of making food and soda a currency, and you can trade that for guns or even vehicles.

2- How can you make a script to kick anyone who fires within the confines of the Trading Post?

Any suggestions would be much appreciated.

Share this post


Link to post
Share on other sites


//BlurGaming.com
//Script Written by Blur
//adminbase.sqf
if ((getPlayerUID player) in ["########","########","########","########"]) then {
titleText ["Welcome back, nigs.", "PLAIN DOWN", 3];
} else {
titleText ["You are now entering the admin base. turn back now...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have less than 15 seconds to leave, or you will be fried, like chicken.", "PLAIN DOWN", 3];
sleep 10;
titleText ["5", "PLAIN DOWN", 3];
playsound "coundown_5";
sleep 1;
titleText ["4", "PLAIN DOWN", 3];
playsound "coundown_4";
sleep 1;
titleText ["3", "PLAIN DOWN", 3];
playsound "countdown_3";
Sleep 1;
titleText ["2", "PLAIN DOWN", 3];
playsound "countdown_2";
sleep 1;
titleText ["1", "PLAIN DOWN", 3];
playsound "countdown_1"
sleep 1;
playsound "countdown_0"
player setDamage 1;
sleep 1;
titleText ["get fucked up!", "PLAIN DOWN", 3];
};

and then...


class Item3
{
position[]={#dembasesLoc#};
a=650;
b=500;
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="AdminBase";
expCond="(vehicle player) in thislist;";
expActiv="adminbase = [] execVM ""Scripts\adminbase.sqf"";";
expDesactiv="terminate adminbase; titleText [""Why you no stay?"", ""PLAIN DOWN"", 3];";
class Effects
{
titleType="TEXT";
titleEffect="PLAIN DOWN";
title="entering the pimp house..";
};
};

Share this post


Link to post
Share on other sites

I am confused on where to put all of that lol.

Somebody said to add a trigger with the activation condition "allowdamage=false", and the deactivation at "allowdamage=true" Would this work?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×