29.04.2014, 22:44
pawn Код:
// top of script
new flying[MAX_PLAYERS];
// rest..
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys == KEY_LOOK_BEHIND || newkeys == KEY_SUBMISSION)
{
if(flying[playerid] == 0)
{
StartFly(playerid);
flying[playerid] = 1;
}
else if(flying[playerid] == 1)
{
StopFly(playerid);
flying[playerid] = 0;
}
}
}
pawn Код:
if (newkeys == KEY_LOOK_BEHIND || newkeys == KEY_SUBMISSION)
pawn Код:
if (newkeys & KEY_LOOK_BEHIND || newkeys & KEY_SUBMISSION)