Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

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
Sign in to follow this  

×