13.01.2014, 22:39
pawn Код:
CMD:repararveh(playerid,params[])
{
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ROJO, "No estбs en un vehiculo");
else
{
new Float:health = GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health > 500) return SendClientMessage(playerid, COLOR_ROJO, "El auto no necesita reparaciуn.");
SetVehicleHealth(GetPlayerVehicleID(playerid), 100.0);
//RepairVehicle(playerid); // 'playerid'? LoL.
RepairVehicle(GetPlayerVehicleID(playerid));
GameTextForPlayer(playerid, "~r~Vehiculo reparado", 5000, 3);
}
return 1;
}