Can any help me?
#9

ZCMD + sscanf + loop = your command.

Something like:

pawn Код:
COMMAND:tplayer(playerid, params[])
{
    new Float:posX,Float:posY,Float:posZ;
    if(!sscanf(params, "fff",posX,posY,posZ))
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            SetPlayerPos(i, posX,posY,posZ);
        }
    }
    else return SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /tplayer [X][Y][Z]");
    return 1;
}
NOT TESTED!
Reply


Messages In This Thread
Can any help me? - by Medal Of Honor team - 09.02.2011, 16:33
Re: Can any help me? - by park4bmx - 09.02.2011, 17:07
Re: Can any help me? - by MBX97 - 09.02.2011, 17:09
Re: Can any help me? - by Medal Of Honor team - 09.02.2011, 17:14
Re: Can any help me? - by park4bmx - 09.02.2011, 17:25
Re: Can any help me? - by Medal Of Honor team - 09.02.2011, 17:27
Re: Can any help me? - by park4bmx - 09.02.2011, 17:39
Re: Can any help me? - by Medal Of Honor team - 11.02.2011, 08:03
Re: Can any help me? - by xRyder - 11.02.2011, 08:14
Re: Can any help me? - by Medal Of Honor team - 11.02.2011, 09:10

Forum Jump:


Users browsing this thread: 1 Guest(s)