14.02.2011, 04:12
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; } |