30.04.2011, 04:05
Queria Saber Se Alguem Tem Um FS De GODCAR Daqueles Que Repara Todo o Veiculo Nao So o Motor Obrigado
Att ReD
Att ReD
forward GodCar();
public GodCar()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new car = GetPlayerVehicleID(i);
new Float:saude;
GetVehicleHealth(car, saude);
if(saude < 1000)
{
SetVehicleHealth(car, 1000);
}
}
return 1;
}
public OnGameModeInit()
{
SetTimer("GodCar", 500, true);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/repair", cmdtext))
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!");
return 1;
}
}
Vocк tentou fazer um FS de GodCar, tava atй conseguindo, depois de algum tempo vocк desiste e decide pegar o cуdigo jб pronto? Parabйns, vocк chega longe assim. |