SA-MP Forums Archive
AOE command - 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: AOE command (/showthread.php?tid=323856)



AOE command - HeLiOn_PrImE - 07.03.2012

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)?


Re: AOE command - T0pAz - 07.03.2012

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 */
    }
}



Re: AOE command - HeLiOn_PrImE - 07.03.2012

thank you very much