if(IsPlayerInRangeOfPoint - 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: if(IsPlayerInRangeOfPoint - help (
/showthread.php?tid=396950)
if(IsPlayerInRangeOfPoint - help -
Anak - 02.12.2012
hello guys!
i want to make many range points for one command... like if i create 3 objects when i do /test server will
locate 3 range points .... if player is at any of that location it will get that item...
like ?
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, radius, x, y, z) //1st location
else (IsPlayerInRangeOfPoint(playerid, radius, x, y, z) // 2nd location
else (IsPlayerInRangeOfPoint(playerid, radius, x, y, z) // 3rd location
thanks in advance
Re: if(IsPlayerInRangeOfPoint - help -
Mic_H - 04.01.2014
Код:
CMD:test(playerid, params[])
{
//if(IsAdmin(playerid)==1)
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, Radius, x, y, z))
{
}
else if(IsPlayerInRangeOfPoint(i, Radius, x1, y1, z1))
{
}
else if(IsPlayerInRangeOfPoint(i, Radius, x2, y2, z2))
{
}
else
{
SendClientMessage(playerid, -1, "You got nothing!");
}
}
//else return SendClientMessage(playerid, -1, "Not allowed to use command.");
return 1;
}
You mean like this?