28.01.2012, 04:11
i'm creating /getjetpack. i created
the problem is i want when player leaves jetpack. IsPlayerInJetPack[playerid] will set to 0 i trying to make it onplayerkey but i'm sure everytime i press leave key (even i didn't leave in jetpack yet) the system will set the IsPlayerInJetPack to 0.
pawn Код:
IsPlayerInJetPack[MAX_PLAYERS];
/* JetPack Command */
if(IsPlayerInJetPack[playerid] == 1) return //message goes here
IsPlayerInJetPack[playerid] = 1;