13.03.2015, 03:36
shut down:
and start the car?? +rep
pawn Код:
for(new i=0;i<MAX_PLAYERS;i++) {
if (isrefuelling[i]) continue;
new vid = GetPlayerVehicleID(i);
if (GetPlayerVehicleSeat(i) == 0) {
fuel[vid] = fuel[vid] -1;
if (fuel[vid]<1)
{
fuel[vid] = 0;
SetVehicleParamsEx(vid,0,0,0,0,1,1,0); //change this to watever you like
GameTextForPlayer(i,"~b~Fuel~y~ Ende~p~d",5000,4); //show text
}
}
new string[125];format(string,sizeof string,"Fuel: ~r~%i~g~",fuel[vid]);
TextDrawSetString(td_fuel[i],string);
}