SA-MP Forums Archive
Help me... - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me... (/showthread.php?tid=194149)



Help me... - Bogdanovic - 28.11.2010

Done. - Thanks ExEx!


Re: Help me... - NewYorkRP - 28.11.2010

Change to OnPlayerUpdate();


Re: Help me... - Bogdanovic - 28.11.2010

Edit: Done.


Re: Help me... - Mauzen - 28.11.2010

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]); }


Re: Help me... - Bogdanovic - 28.11.2010

Edit: Done.


Re: Help me... - Mauzen - 28.11.2010

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


Re: Help me... - Bogdanovic - 28.11.2010

Edit: Done.


Re: Help me... - ExEx - 28.11.2010

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! "); } }


Re: Help me... - Bogdanovic - 28.11.2010

Awesome, Thanks ExEx!