/Superjump
#6

Quote:
Originally Posted by Kinglee
Посмотреть сообщение
pawn Код:
CMD:superjump( playerid, params[ ] )
{
    #pragma unused params
    if(PlayerInfo[playerid][SjKey] == 0)
    {
        PlayerInfo[playerid][SjKey] = 0;
        SendClientMessage(playerid, COLOR_RED, "{00FFCC}[AFS]{FF0000}You turned off Super Jump {00FF00}(/Superjump)");
    }
    else
    {
        PlayerInfo[playerid][SjKey] = 1;
        SendClientMessage(playerid, COLOR_RED, "{00FFCC}[AFS]{FF0000}You turned on Super Jump. Press {00FF00}LShift {FF0000}to use it");
    }
}
Your code will turn off superjump when it's already turned off, and it will turn it on when it's already on.

Use this instead.
pawn Код:
CMD:superjump(playerid)
{
    if(PlayerInfo[playerid][SjKey] == 1)
    {
        PlayerInfo[playerid][SjKey] = 0;
        SendClientMessage(playerid, COLOR_RED, "{00FFCC}[AFS]{FF0000}You turned off Super Jump {00FF00}(/Superjump)");
    }
    else
    {
        PlayerInfo[playerid][SjKey] = 1;
        SendClientMessage(playerid, COLOR_RED, "{00FFCC}[AFS]{FF0000}You turned on Super Jump. Press {00FF00}LShift {FF0000}to use it");
    }
    return 1;
}
Reply


Messages In This Thread
/Superjump - by Flokx - 17.09.2014, 01:15
Re: /Superjump - by Dangjai - 17.09.2014, 01:22
Re: /Superjump - by Flokx - 17.09.2014, 01:23
Re: /Superjump - by Don_Cage - 17.09.2014, 01:47
Re: /Superjump - by Flokx - 17.09.2014, 03:38
Re: /Superjump - by Stinged - 17.09.2014, 03:39
Re: /Superjump - by IamPRO - 17.09.2014, 09:41
Re: /Superjump - by thefatshizms - 17.09.2014, 10:52
Re: /Superjump - by IamPRO - 17.09.2014, 12:59
Re: /Superjump - by thefatshizms - 17.09.2014, 14:46

Forum Jump:


Users browsing this thread: 1 Guest(s)