26.04.2012, 14:05
Stop re-posting this thread. Change your OnPlayerKeyStateChange whole function to this.
and change your timer function to
pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(SuperJumpEnabled[playerid] == 1)
{
if(newkeys & KEY_JUMP)
{
SuperJumpEnabled[playerid] = 0;
GetPlayerVelocity(playerid, pX, pY, pZ);
SetPlayerVelocity(playerid, pX,pY, pZ+5);
SendClientMessage(playerid, COLOR_USE, "Super Jump De-Acticated");
SetTimerEx("ResetJumping", 2500, false, "d" , playerid);
}
return 1;
}
return 0;
}
pawn Code:
public ResetJumping(playerid)
{
IsJumping[playerid] = 1;
SetTimerEx("ResetJumping", 2500, false, "d" , playerid);
return 1;
}