Help with GetVehicleHealth
#6

hm... again losse driveschool if vehhp > or < 880 -_-...

code now:

Код:
function Finish(p) {

new veh;
new Float:vHealth;
GetVehicleHealth(veh, vHealth);
veh = GetPlayerVehicleID(p);
if(WarnCH[p] > 13 || vHealth < 880)return LosseRace(p);
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;
}
Reply


Messages In This Thread
Help with GetVehicleHealth - by giorgosdim12 - 08.05.2015, 18:08
Re: Help with GetVehicleHealth - by Konstantinos - 08.05.2015, 18:10
Re: Help with GetVehicleHealth - by giorgosdim12 - 08.05.2015, 18:12
Re: Help with GetVehicleHealth - by giorgosdim12 - 08.05.2015, 18:16
Re: Help with GetVehicleHealth - by MP2 - 08.05.2015, 18:23
Re: Help with GetVehicleHealth - by giorgosdim12 - 08.05.2015, 18:29
Re: Help with GetVehicleHealth - by MP2 - 08.05.2015, 18:30
Re: Help with GetVehicleHealth - by giorgosdim12 - 08.05.2015, 18:32

Forum Jump:


Users browsing this thread: 1 Guest(s)