Ranged command
#2

Not tested:

pawn Код:
CMD:rangeskin(playerid, params[])
{
    new Float:posx, Float:posy, Float:posz;
    new Float:range, skinid;
    if(sscanf(params, "fd", range, skinid)) return SendClientMessage(playerid, 0xFFFFFFFF, "Correct usage: /rangeskin [range] [skinid]");
    GetPlayerPos(playerid, posx, posy, posz);
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerInRangeOfPoint(i, range, posx, posy, posz);
            {
                SetPlayerSkin(i, skinid);
            }
        }
    }
    return 1;
}
Use ZCMD and sscanf.
Reply


Messages In This Thread
Ranged command - by siemka321 - 24.09.2013, 15:51
Re: Ranged command - by DanishHaq - 24.09.2013, 15:55
Re: Ranged command - by Konstantinos - 24.09.2013, 15:56
Re: Ranged command - by EiresJason - 24.09.2013, 15:58
Re: Ranged command - by siemka321 - 25.09.2013, 11:03
Re: Ranged command - by Konstantinos - 25.09.2013, 11:19

Forum Jump:


Users browsing this thread: 1 Guest(s)