A Jetpack command that I need to be converted to zcmd
#4

When I try to use it it deletes it self here is the command cuz I edited some of it
pawn Код:
CMD:jetpack( playerid, params[ ] )
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        new targetid;
        if( sscanf( params, "u", targetid ) )
        {
            SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
            SendClientMessage(playerid, 0xAA0000AA, "* Spawned Jetpack For Yourself. You Can Also Do /jetpack [targetid].");
        }
        else
        {
            if( !IsPlayerConnected( targetid ) ) return SendClientMessage(playerid, 0xAA0000AA, "USAGE:  /jetpack [targetid] - Enter A Valid Player ID.");

            new aname[ 24 ], pname[ 24 ];
            GetPlayerName(playerid,aname,sizeof(aname)); // admin name
            GetPlayerName(targetid,pname,sizeof(pname)); // player name

            SetPlayerSpecialAction(targetid,SPECIAL_ACTION_NONE);
            new string[ 128 ];

            format(string,sizeof(string),"You Have Given  %s (%d)  A Jetpack.",pname,targetid);
            SendClientMessage(playerid, 0xAA0000AA, string);
            format(string,sizeof(string),"Administrator  %s (%d)  Has Given You A Jetpack.",aname,playerid);
            SendClientMessage(targetid, 0xAA0000AA, string);
        }
    }
    else return SendClientMessage(playerid, 0xAA0000AA, "You Have To Be An Admin To Use This!");
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)