29.05.2013, 01:18
Bom fiz este codigo para o player correr mais rapido mais nao funciona auguem pode me ajudar a resolver o poblema
PHP код:
new SpeedHa[ MAX_PLAYERS ] = false;
CMD:speedp( playerid )
{
SpeedHa[playerid] = 1;
SendClientMessage(playerid, Roxo, "Speed-Hacker Ativado");
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if( newkeys & KEY_UP )
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Roxo, "Vocк Nao pode Usar Speed-Hacker No Vehiculo");
new Float:Jump[3];
GetPlayerVelocity(playerid, Jump[0], Jump[1], Jump[2]);
SetPlayerVelocity(playerid, Jump[0]*3, Jump[1]*3, Jump[2]);
}
return 1;
}