08.05.2015, 18:08
i have problem if player finish on driveschool and if vehicle < 880 hp losse driveschool.
code:
code:
Код:
function Finish(p) { new veh,Float:HPV; veh = GetPlayerVehicleID(p); if(WarnCH[p] > 13 || GetVehicleHealth(veh,HPV) < 880)return LosseRace(p);// here my problem GetVehicleHealth(veh,HPV) < 880 DestroyVehicle(CarDriveSchool[p]); SCM(p,-1,"You have succses finish drive school! now can you drive any car."); DataAccount[p][DriveS] = 1; DataAccount[p][XPs] += 25; KillTimer(Timerr[p]); DataAccount[p][Money] += 100; CheckMoney(p); SpawnPlayer(p); DisableDrift[p] = 0; return 1; }