Move cmd help
#7

pawn Код:
CMD:up(playerid, params[])
{
    new posup, Float:X, Float:Y, Float:Z;
    if(sscaf(params, "d", posup)) return SendClientMessage(playerid, YOUR_COLOR, "Usage: /up [amount]");
    else
    {
        GetPlayerPos(playerid, X, Y, Z);
        if(IsPlayerInAnyVehicle(playerid))
        {
            SetVehiclePos(vehicleid, X, Y, Z+posup);
            SendClientMessage(playerid,COL_ADMIN,"** Moved up 50 feet.");
        }
        else
        {
            SetPlayerPos(playerid,X, Y, Z+50);
            SendClientMessage(playerid,COL_ADMIN,"** Moved up 50 feet.");
        }
    return 1;
    }
}
Reply


Messages In This Thread
Move cmd help - by SnG.Scot_MisCuDI - 25.12.2011, 03:25
Re: Move cmd help - by §с†¶e®РµРe - 25.12.2011, 04:09
Re: Move cmd help - by SnG.Scot_MisCuDI - 25.12.2011, 04:10
Re: Move cmd help - by Ballu Miaa - 25.12.2011, 05:07
Re: Move cmd help - by SnG.Scot_MisCuDI - 25.12.2011, 05:26
Re: Move cmd help - by Ballu Miaa - 25.12.2011, 12:43
Re: Move cmd help - by rinori - 25.12.2011, 13:39

Forum Jump:


Users browsing this thread: 2 Guest(s)