I need a /fall command
#9

Here you go:

ZCMD version, tested and works.
pawn Код:
CMD:fall(playerid,params[])
{
    new height;
    if(sscanf(params,"i",height)) return SendClientMessage(playerid,COLOR_RED,"Usage: /fall [height]");
    new Float:P,Float:O,Float:S;
    GetPlayerPos(playerid,P,O,S);
    SetPlayerPos(playerid,P,O,height);
    return 1;
}
and offc that other old sort, the strcmp command:
pawn Код:
if (strcmp(cmd, "/fall", true) == 0)
{
        new tmp[20],id;
        tmp = strtok(cmdtext, index);
        if (strlen(tmp)) return SendClientMessage(playerid,COLOR_RED,"Usage: /fall [height]");

        id = strval(tmp);
        new Float:P,Float:O,Float:S;
        GetPlayerPos(playerid,P,O,S);
        SetPlayerPos(playerid,P,O,id);


        return 1;
}
ZCMD command "installation", copy paste the first code inside the script, outside of any callback, i prefer at the bottom of the script, but OUTSIDE any callback.

i am sure you know how to put the other version in your script.

Tell me if they work
Reply


Messages In This Thread
I need a /fall command - by farCry.xD - 20.07.2012, 20:07
Re : I need a /fall command - by DeeCaay - 20.07.2012, 21:30
Re: I need a /fall command - by Netinho_the_killer - 20.07.2012, 21:32
Re: I need a /fall command - by Jstylezzz - 20.07.2012, 21:36
Respuesta: I need a /fall command - by farCry.xD - 21.07.2012, 09:24
Re: I need a /fall command - by Captain_Mani - 21.07.2012, 09:36
Respuesta: Re: I need a /fall command - by farCry.xD - 21.07.2012, 11:42
Re: I need a /fall command - by Captain_Mani - 21.07.2012, 12:27
Re: I need a /fall command - by Jstylezzz - 21.07.2012, 13:09
Respuesta: I need a /fall command - by farCry.xD - 21.07.2012, 15:46

Forum Jump:


Users browsing this thread: 1 Guest(s)