30.03.2015, 02:32
vocк nгo retorno nada na public
PHP код:
public OnPlayerUpdate(playerid)
{
new string[32];
if(!IsPlayerConnected(playerid)) return 1;
if(Vel[playerid] == true)
{
GetVehicleHealth(GetPlayerVehicleID(playerid),Vhealth);
format(string, sizeof(string), "~r~~h~%d ~w~KM/H",GetVehicleSpeed(playerid),floatround(Vhealth));
TextDrawSetString(Velocimetro,string);
if(IsPlayerInAnyVehicle(playerid))
{
TextDrawShowForPlayer(playerid,Velocimetro);
}
else
{
TextDrawHideForPlayer(playerid,Velocimetro);
}
}
if(GetPlayerVirtualWorld(playerid) == 0){
SetPlayerHealth(playerid,99999);
SetPlayerArmour(playerid,99999);
}
return 1; // Faltava Aqui ;D
}