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?