06.12.2013, 07:57
How would i make a delay between being able to do these actions?
I did some research on GetTickCount and timers but i'm not understanding how to implement this in my code, i want it so a player can only use the "super jump" every 10 seconds.
Example please? thank you.
pawn Код:
if(GetPlayerSkin(playerid) == 150)
{
if(newkeys & KEY_JUMP)
{
new Float:SuperJump[3];
GetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]);
SetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]+10);
}
}
Example please? thank you.