05.05.2016, 12:06
Quote:
|
Alright, the super jump works but it only works 1 time. When I type /shift I become a werewolf but the super jump isn't use everytime it only works once. Help me out here.
|
Anyway, try this way (the player can jump as he wants) :
PHP Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(activate[playerid] == 1)
{
if(newkeys == KEY_JUMP && jumping[playerid] == 0)
{
new Float:werewolf_jump[3];
GetPlayerVelocity(playerid, werewolf_jump[0], werewolf_jump[1], werewolf_jump[2]);
SetPlayerVelocity(playerid, werewolf_jump[0]+100, werewolf_jump[1]+100, werewolf_jump[2]+100);
}
}
return 1;
}
PHP Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(activate[playerid] == 1)
{
if(newkeys == KEY_JUMP)
{
new Float:werewolf_jump[3];
GetPlayerVelocity(playerid, werewolf_jump[0], werewolf_jump[1], werewolf_jump[2]);
SetPlayerVelocity(playerid, werewolf_jump[0]+100, werewolf_jump[1]+100, werewolf_jump[2]+100);
}
}
return 1;
}


