13.05.2015, 18:36
Why thats code doesn't work ?
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
if(vehicle == 560)
{
SendClientMessage(playerid,COLORE_ROSSO,"ERROR:You can't repair that vehicle.");
}
else
{
if (IsPlayerInAnyVehicle(playerid))
{
new VehicleID = GetPlayerVehicleID(playerid);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
RepairVehicle(VehicleID);
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~V ehicle ~g~Repaired!",3000,3);
return SetVehicleHealth(VehicleID, 1000);
}
}
}
return 1;
}
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
if(vehicle == 560)
{
SendClientMessage(playerid,COLORE_ROSSO,"ERROR:You can't repair that vehicle.");
}
else
{
if (IsPlayerInAnyVehicle(playerid))
{
new VehicleID = GetPlayerVehicleID(playerid);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
RepairVehicle(VehicleID);
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~V ehicle ~g~Repaired!",3000,3);
return SetVehicleHealth(VehicleID, 1000);
}
}
}
return 1;
}