21.04.2018, 13:51
For example, I have this script:
How can I force player to wait before animation plays fully and only then give him ability to re-play it?
(Something like animation anti-flood)
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if((newkeys & KEY_JUMP) && !(oldkeys & KEY_JUMP)) {
ApplyAnimation(playerid, "PARACHUTE", "FALL_skyDive_DIE", 4.1, 0, 1, 1, 0, 790);
}
}
(Something like animation anti-flood)