How to make a delay between actions?
#5

Quote:
Originally Posted by iZN
Посмотреть сообщение
pawn Код:
/* With GetTickCount */

new pJumpInterval[MAX_PLAYERS];

new Var_ = GetTickCount();
if(GetPlayerSkin(playerid) == 150 && pJumpInterval[playerid] > Var_)
{
    if(newkeys & KEY_JUMP)
    {
        pJumpInterval[playerid] = GetTickCount() + 10000;
        new Float:SuperJump[3];
        GetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]);
        SetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]+10);
    }
}
"Hey! I am falling in the air straight to the ground and I'm gonna die! Actually.. why not press KEY_JUMP when I'm gonna be close enough to the ground to avoid killing myself!"


Solution:
MapAndreas.
Reply


Messages In This Thread
How to make a delay between actions? - by Voxel - 06.12.2013, 07:57
Re: How to make a delay between actions? - by David (Sabljak) - 06.12.2013, 08:42
Re: How to make a delay between actions? - by Voxel - 06.12.2013, 08:45
Re: How to make a delay between actions? - by iZN - 06.12.2013, 08:46
Re: How to make a delay between actions? - by Riddick94 - 06.12.2013, 11:59

Forum Jump:


Users browsing this thread: 1 Guest(s)