Problem playerid
#4

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;
}
Example: Wouldn't work though!
Reply


Messages In This Thread
Problem playerid - by RatHack - 16.07.2011, 13:44
Re: Problem playerid - by Lorenc_ - 16.07.2011, 14:32
Respuesta: Problem playerid - by RatHack - 16.07.2011, 14:35
Re: Problem playerid - by Lorenc_ - 16.07.2011, 14:50
Respuesta: Problem playerid - by RatHack - 16.07.2011, 15:04

Forum Jump:


Users browsing this thread: 2 Guest(s)