What's wrong here?
#2

Try this:
PHP код:
CMD:jetpack(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >= && PlayerInfo[playerid][pAdmin] < 4) {
        
JetPack[playerid] = 1;
        
SetPlayerSpecialAction(playeridSPECIAL_ACTION_USEJETPACK);
        return 
1;
    }
    new 
string[128], plo;
    if(
sscanf(params"u"plo)) {
        
SendClientMessageEx(playeridCOLOR_GRAD2"USAGE: /jetpack [playerid]");
        return 
1;
    }
    if (
IsPlayerConnected) {
        if(
plo != INVALID_PLAYER_ID) {
            if (
PlayerInfo[playerid][pAdmin] >= 4) {
                
SendClientMessageEx(ploCOLOR_GRAD1"Jetpack Given!");
                
JetPack[plo] = 1;
                
SetPlayerSpecialAction(ploSPECIAL_ACTION_USEJETPACK);
                
format(stringsizeof(string), "[TDM]: %s has received a jetpack from %s"GetPlayerNameEx(plo), GetPlayerNameEx(playerid));
                
SendClientMessageToAllEx(COLOR_LIGHTREDstring);
            }
            else {
                
SendClientMessageEx(playeridCOLOR_GRAD1"You are not authorized to use that command!");
            }
        }
    }
    else 
SendClientMessageEx(playeridCOLOR_GRAD1"Invalid player specified.");
    return 
1;
}
    return 
1;

Reply


Messages In This Thread
What's wrong here? - by TheSnaKe - 09.02.2014, 00:56
Re: What's wrong here? - by Crypto20 - 09.02.2014, 01:18
Re: What's wrong here? - by Threshold - 09.02.2014, 01:40
Re: What's wrong here? - by TheSnaKe - 09.02.2014, 12:21
Re: What's wrong here? - by Threshold - 09.02.2014, 12:56

Forum Jump:


Users browsing this thread: 1 Guest(s)