Commands in radius [ REP + ]
#3

PHP код:
CMD:radiushp(playeridparams[])
{
    if(!
IsPlayerAdmin(playerid)) return 0;
    new 
FloatfRadius;
    if(
sscanf(params"f"fRadius)) return SendClientMessage(playerid, -1"Syntax: /radiushp [radius]");
    new 
FloatfPlayerPos[3];
    
GetPlayerPos(playeridfPlayerPos[0], fPlayerPos[1], fPlayerPos[2]);
    for(new 
0<= GetPlayerPoolSize(); i++)
        if(
IsPlayerInRangeOfPoint(ifRadiusfPlayerPos[0], fPlayerPos[1], fPlayerPos[2]))
            
SetPlayerHealth(i100.0);
    return 
1;

@Sledgehammer, your code is wrong..
Reply


Messages In This Thread
Commands in radius [ REP + ] - by _GHT_MarK445 - 27.05.2015, 19:59
Re: Commands in radius [ REP + ] - by Sledgehammer - 27.05.2015, 20:09
Re: Commands in radius [ REP + ] - by J4Rr3x - 27.05.2015, 20:10
Re: Commands in radius [ REP + ] - by Sledgehammer - 27.05.2015, 20:14
Re: Commands in radius [ REP + ] - by _GHT_MarK445 - 27.05.2015, 21:17
Re: Commands in radius [ REP + ] - by Dubya - 28.05.2015, 08:12

Forum Jump:


Users browsing this thread: 1 Guest(s)