Help me...
#1

Done. - Thanks ExEx!
Reply
#2

Change to OnPlayerUpdate();
Reply
#3

Edit: Done.
Reply
#4

https://sampwiki.blast.hk/wiki/Useful_Fu...IsPlayerInArea

If you are using the function from the uf.inc, you have to swap the values 0/1 and 2/3, because it is: minx, maxx, miny, maxy


for(new a = 0; a < sizeof(GZ); a++) { IDZ[a] = GangZoneCreate(GZ[a][1], GZ[a][0], GZ[a][3], GZ[a][2]); }
Reply
#5

Edit: Done.
Reply
#6

GangZoneCreate accepts the other values, but IsPlayerInArea does not, so you have to swap them there
Reply
#7

Edit: Done.
Reply
#8

for gangzone is this > minx ,miny, maxx, maxy
IsPlayerInArea is this > minx ,maxx , miny, maxy


this should work

for(new a = 0; a < sizeof(GZ); a++) {
if(IsPlayerInArea(playerid, GZ[a][0], GZ[a][2], GZ[a][1], GZ[a][3])) {
SendClientMessage(playerid, COLOR_LIGHTBLUE, "YOU ARE IN A GANGZONE! "); } }
Reply
#9

Awesome, Thanks ExEx!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)