cmd problem
#1

Quote:

dcmd_skill(playerid, params[])
{
if(newkeys & KEY_CROUCH)
{
if (PlayerTeam[playerid] == 0)
if(SaltoEnergicoUsado[playerid] == 0)
{
SendClientMessage(playerid,COLOR_HUMAN, "Used Burst Run");
new Float: X, Float: Y, Float: Z, Float: ROT;
GetPlayerVelocity(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, ROT);
X += floatmul(floatsin(-ROT, degrees), 0.30); //Modifica 0.12 para cambiar el largo del salto
Y += floatmul(floatcos(-ROT, degrees), 0.30); //Aca tambien
SetPlayerVelocity(playerid, X, Y, Z+0.2); //Modifica 0.1 para cambiar la altura del salto
SaltoEnergicoUsado[playerid] = 1;
SetTimer("VolverAUsarElSalto", 20000, 0);
}
if(SaltoEnergicoUsado[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "You can't to use burst run, wait.");
}
}
}
return 1;
}

how to do this only when i write /skill this will work and if i type skill of i cant use it
Reply


Messages In This Thread
cmd problem - by bboytimix - 14.02.2011, 04:12
Re: cmd problem - by Steven82 - 14.02.2011, 04:59
Re: cmd problem - by AK47317 - 14.02.2011, 10:07
Re: cmd problem - by bboytimix - 14.02.2011, 14:54

Forum Jump:


Users browsing this thread: 1 Guest(s)