21.03.2010, 08:09
Hey guys, How can I check if someone is in a turf zone?
Like:
IsPlayerInTurf(playerid,GSFZONE);
??
Like:
IsPlayerInTurf(playerid,GSFZONE);
??
Originally Posted by bartje01
Alright:
@onfilterscriptexit new LspZone; @ ongamemodeinit LspZone = GangZoneCreate(1326.343, -1887.144, 1702.824, -1575.273); @onplayerconnect GangZoneShowForAll( LspZone, 0x800080AA); |
if (strcmp("/challenge", cmdtext, true, 10) == 0) { new Float:X,Float:Y; if (X <= 2235 && X >= -1729 && Y <= 2501 && Y >= -1642) GangZoneFlashForAll(LspZone,0xFF0000FF); }else{ SendClientMessage(playerid,red,"You aren't in a gang zone"); return 1; }
Originally Posted by bartje01
Alright. I have this.
Код:
if (strcmp("/challenge", cmdtext, true, 10) == 0) { new Float:X,Float:Y; if (X <= 2235 && X >= -1729 && Y <= 2501 && Y >= -1642) GangZoneFlashForAll(LspZone,0xFF0000FF); }else{ SendClientMessage(playerid,red,"You aren't in a gang zone"); return 1; } |
Originally Posted by bartje01
Well. It has to show for everyone. Because a gangwar starts at that moment. can you fix the script for me pleasE?
|