Move cmd help
#1

i have a cmd where you do /up, /down, /left, /right. The defualt for up is 50 and the rest is 10. How can i make it so you do /up (amount) /down (amount) left right (amount)
pawn Код:
if (strcmp("/up", cmdtext, true, 8 ) == 0)
{
        new Float:X, Float:Y, Float:Z;
        new vehicleid = GetPlayerVehicleID(playerid);
        GetPlayerPos(playerid, X, Y, Z);
        if(IsPlayerInAnyVehicle(playerid)) {
        SetVehiclePos(vehicleid, X, Y, Z+50);
        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)