25.04.2012, 14:34
pawn Код:
new
SuperJumpEnabled[MAX_PLAYERS],
Float:pX,
Float:pY,
Float:pZ,
IsJumping[MAX_PLAYERS];
forward ResetJumping(playerid);
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(SuperJumpEnabled[playerid] == 1)
{
if(newkeys & KEY_JUMP && SuperJumpEnabled[playerid])
{
GetPlayerVelocity(playerid, pX, pY, pZ);
SetPlayerVelocity(playerid, pX,pY, pZ+0.5);
SendClientMessage(playerid, COLOR_USE, "Super Jump De-Acticated");
SetTimerEx("ResetJumping", 2500, true, "d" , playerid);
}
return 1;
}
return 0;
}