About JetPack...
#4

Quote:
Originally Posted by MasterJoker
Посмотреть сообщение
here you go

pawn Код:
/* top of script */

new IsPlayerInJetPack[MAX_PLAYERS];

COMMAND:getjetpack(playerid, params[])
{
    if(GetPlayerScore(playerid) > 100)
    {
        if(IsPlayerInJetPack[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You already have your JetPack!");
        SendClientMessage(playerid, COLOR_GREEN, "Enjoy with your jetpack!");
        IsPlayerInJetPack[playerid] = 1;
        SetPlayerSpecialAction(playerid, 2);
    }
    else return SendClientMessage(playerid, COLOR_RED, "You do not have enough score to ride a JetPack!");
    return 1;
}
Allright this is all good. It has no problems in my view. This should work fine. But Can you give the Keystate or any code where it Set's IsPlayerInJetPack[playerid] to 0?
Reply


Messages In This Thread
About JetPack... - by MasterJoker - 28.01.2012, 04:11
Re: About JetPack... - by Ballu Miaa - 28.01.2012, 04:36
Re: About JetPack... - by MasterJoker - 28.01.2012, 04:38
Re: About JetPack... - by Ballu Miaa - 28.01.2012, 04:48
Re: About JetPack... - by MasterJoker - 28.01.2012, 04:54
Re: About JetPack... - by [ABK]Antonio - 28.01.2012, 04:56
Re: About JetPack... - by MasterJoker - 28.01.2012, 04:58
Re: About JetPack... - by =WoR=Varth - 28.01.2012, 04:59
Re: About JetPack... - by Ballu Miaa - 28.01.2012, 04:59
Re: About JetPack... - by MasterJoker - 28.01.2012, 05:13

Forum Jump:


Users browsing this thread: 4 Guest(s)