16.07.2011, 14:50
pawn Code:
new vID = GetPlayerVehicleID(playerid);
new gVehicleFuel[MAX_VEHICLES] = 100;
public FuelTimer()
{
for(new i, g_m = GetMaxPlayers(); i < g_m; i++) if(IsPlayerConnected(i))
{
if(gVehicleFuel[vID] <= 0) {
SetVehicleHealth(mycar7, 150.0);
GameTextForPlayer(i,"CAR WITHOUT FUEL", 5000, 3);
SendClientMessage(i,COLOR_LIGHTBLUE,"NO FUEL FOR THIS CAR");
}
}
return 1;
}