Removing Jetpack
#3

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;
}
Reply


Messages In This Thread
Removing Jetpack - by Blackazur - 19.04.2014, 18:43
Re: Removing Jetpack - by Bingo - 19.04.2014, 18:45
Re: Removing Jetpack - by Patrick - 19.04.2014, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)