SA-MP Forums Archive
cmd problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: cmd problem (/showthread.php?tid=225660)



cmd problem - bboytimix - 14.02.2011

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


Re: cmd problem - Steven82 - 14.02.2011

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


Re: cmd problem - AK47317 - 14.02.2011

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);



Re: cmd problem - bboytimix - 14.02.2011

what do you mean good words ?