19.02.2009, 19:10
Mine dosen't work. I just put it on my gamemode.
Код:
public AutoRepair(playerid) { if (IsPlayerInAnyVehicle(playerid)) { new Float:health; new vehicleid = GetPlayerVehicleID(playerid); GetVehicleHealth(vehicleid, health); if (health < 250) { SetVehicleHealth(vehicleid,1000); GameTextForPlayer(playerid,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~Your vehicle has automatically been repaired!",1000,3); } } }