AOE command
#1

I want to make a command with area of effect (AOE)
How can I make the command to affect players withing my range (let's say 15 meters of me)?
Reply
#2

pawn Код:
GetPlayerPos( playerid, x, y, z );
for ( new p = 0; p != MAX_PLAYERS; ++p )
{
    if ( IsPlayerInRangeOfPoint( p, 50.0, x, y, z ) )
    {
        /* Affect them who are in range */
    }
}
Reply
#3

thank you very much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)