Bug jetpack
#6

Guessing you want it to work with RCON admins too?
pawn Код:
if(strcmp(cmd, "/jetpack", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 1337 || IsPlayerAdmin(playerid))
            {
                SendClientMessage(playerid, 0xFF7F50AA, "You have jetpack now!");
                SetPlayerSpecialAction(playerid,2);
                return 1;
            }
            else
            {
                SendClientMessage(playerid,COLOR_GREY,"You can't use this command.");
                return 1;
            }
        }
     }
Also, why are you returning 1 after every function? There's no need to do that. You only need one return 1 and that's before the last bracket.
Reply


Messages In This Thread
Bug jetpack - by madalin912 - 06.03.2015, 14:38
Re: Bug jetpack - by madalin912 - 06.03.2015, 15:24
Re: Bug jetpack - by MBilal - 06.03.2015, 15:28
Re: Bug jetpack - by madalin912 - 06.03.2015, 15:39
Re: Bug jetpack - by Matess - 06.03.2015, 15:41
Re: Bug jetpack - by Luis- - 06.03.2015, 15:42
Re: Bug jetpack - by Threshold - 06.03.2015, 15:45
Re: Bug jetpack - by madalin912 - 06.03.2015, 15:46
Re: Bug jetpack - by Luis- - 06.03.2015, 15:47
Re: Bug jetpack - by Golf - 06.03.2015, 15:48

Forum Jump:


Users browsing this thread: 2 Guest(s)