19.04.2014, 18:51
setting the player action to none should remove the jetpack, and you could use OnPlayerKeyStateChange to detect if player has pressed enter with jetpack.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if( newkeys & KEY_SECONDARY_ATTACK && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK ) return SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
return 1;
}