I will ask more questions cuse i have in my mind a new Gamemode
so ... im sure you will understand from this:
InVehicle isn't IsPlayerInAnyVehicle or IsPlayerInVehicle . Is just a variable.
public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger) :[pawn]if(vehicleid > 142) {
if(InVehicle[playerid] == 0) {
SetVehicleLights(vehicleid,1);
SetTimer("KillEngine", 1000, false);
}
}[/pawn]
The Public:[pawn]public KillEngine()
{
for(new i = 0; i <= MAX_PLAYERS; i++) {
if(IsPlayerInAnyVehicle(i)) {
new veh = GetPlayerVehicleID(i);
KillVehicleEngine(veh);
}
}
}[/pawn]