SA-MP Forums Archive
how to check if a gangzone is red? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to check if a gangzone is red? (/showthread.php?tid=374549)



how to check if a gangzone is red? - niels44 - 03.09.2012

hey guys,

i tried to find something like if(gangzonecolor == COLOR_RED)

but it aint there... so my question:

is there ANY way to check if the gangzone has the color red?

Greets Niels


Re: how to check if a gangzone is red? - C00K13M0N$73R - 03.09.2012

Nope,


Re: how to check if a gangzone is red? - niels44 - 03.09.2012

not? but then how to check if the team terrorists have the zone for themself? i mean ok look:

if the server starts the zone is white, cuz its nobodys, but then when a terrorist wants to take it over it will flash for 1 minute and then its terrorists color RED... but then when a new player connects, how to check if the gangzone is red or is terrorists territory so it wont go white at spawn but will get the color it already had?


Re: how to check if a gangzone is red? - C00K13M0N$73R - 03.09.2012

IsPlayerInRangeOfPoint

https://sampwiki.blast.hk/wiki/GangZoneFlashForAll


Re: how to check if a gangzone is red? - niels44 - 03.09.2012

no thats not wut i mean, i want it to check that when a player joins that it checks if the gangzone is either RED or Blue OR white... so it will set it to the right color it has to other players too..


Re: how to check if a gangzone is red? - Dan. - 03.09.2012

You have to save the gangzone's color in a variable, and then check if the variable == red.