Gang Zone message
#1

I have a gang zone for the army team.






But i'd like to make it so that, As soon as a player enters the purple, it shows a message with a countdown saying:


"You are on Army grounds, Please leave or you will be attacked" With a countdown of lets say 10 seconds.

Can someone help me with that
Reply
#2

Hmm... I need to know this too, but make you wanted instead
Reply
#3

use IsPlayerIsInRangeOfPoint
Reply
#4

Quote:
Originally Posted by Etch ❽ H
use IsPlayerIsInRangeOfPoint
How would i do it for the whole army zone?
Reply
#5

To answer this question, so far there is only 1 way possible that I know of.

Create an updating timer that holds the variables whether you are inside a zone or not and which zone that is.
use update for every 1,5-2,0 second(s) should be fine
It takes some computer effort but the server can keep up.

OnPlayerEnterZone
if id of the zone equals to your military zone, then createtimer to show message.
OnPlayerZoneLeave
Destroy the created timer, but check if there was one to begin with, you never know.

This is the concept, now for you the time to actually write it, cuz I am not crazy enough to do it for you.

Reply
#6

Theres a function lurking around called IsPlayerInArea, search for it. As for the message you can find some countdown code somewhere on the forum too and use it with the IsPlayerInArea function
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)