#2

In your command, first get the position of playerid.
pawn Код:
GetPlayerPos(playerid, X, Y, Z)
Then use a loop.
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
In that loop do a check with IsPlayerInRangeOfPoint.
pawn Код:
if(IsPlayerInRangeOfPoint(i, 10.0, X, Y, Z)
If that is true, send the message, if not, return false. Altough I recommend you to use foreach.
Reply


Messages In This Thread
help - by Mystique - 20.12.2009, 07:23
Re: help - by Marcel - 20.12.2009, 09:34
Re: help - by Mystique - 20.12.2009, 17:36
Re: help - by Mystique - 21.12.2009, 19:12
Re: help - by Marcel - 21.12.2009, 19:40
Re: help - by Mystique - 21.12.2009, 19:54

Forum Jump:


Users browsing this thread: 1 Guest(s)