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
#2

I will not help until your smart enough to use the mother fucking [pawn] tags
Reply
#3

pawn Код:
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;
}
pawn Код:
new str[128];
format(str, sizeof(str), " AK47317: I HELP THOSE NOOB AND PLZ USE THE FUKING GOOD WORD AND I HAVE TRANSLATED THOSE QOUTE TO THOSE PAWNO AND DONT CORRECT MY WORD FOR THOSE STUFF AND I DONT GIVE A DAMN ABOUT U DONT HELP A NOOB, I PROOVE A NOOB CAN LEARN BETTER THAN U ");
SendClientMessage(Steven82, COLOR_WDF, str);
Reply
#4

what do you mean good words ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)