SA-MP Forums Archive
IsPlayerInRangeOfPoint[Requesting Help] - 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: IsPlayerInRangeOfPoint[Requesting Help] (/showthread.php?tid=322767)



IsPlayerInRangeOfPoint[Requesting Help] - BigD - 03.03.2012

Hello,

I want if a player enters a x,y,z i've got this but where do I put it?

if(IsPlayerInRangeOfPoint, playerid, x,y,z);
format(szMessage, sizeof(szMessage), "(Group) "EMBED_WHITE, "Check your /checkbase.", szPlayerName);
SendToGroup(playerVariables[extraid][pGroup], COLOR_COOLBLUE, szMessage);

so if a player enters the range of point it notifies us auto matically


Re: IsPlayerInRangeOfPoint[Requesting Help] - milanosie - 03.03.2012

Place it at OnPlayerUpdate


Re: IsPlayerInRangeOfPoint[Requesting Help] - SimonItaly - 03.03.2012

Use a one second looping timer.
OnPlayerUpdate is called too much for something like that.