15.01.2015, 05:01
Con un interruptor.
pawn Код:
new bool:JumpActive[MAX_PLAYERS];
if(JumpActive[playerid] == true && newkeys & KEY_JUMP)
{
new Float:SuperJump[3];
GetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]);
SetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]+5);
return 1;
}
pawn Код:
CMD:ActivarSaltos(....
{
if(JumpActive[playerid] == true)
{
JumpActive[playerid] = false;
// desactivado ..
}
else
{
JumpActive[playerid] = true;
// activado
}
return 1;
}