01.06.2012, 17:37
do i have to do ongamemodeinitlastcarid at ALL the cars in ongamemode init? or just the last one?
EDIT: i now have this, but how to check if there is NOONE in teh car?
or does it automatically checks that?
EDIT: i now have this, but how to check if there is NOONE in teh car?
pawn Код:
public OnVehicleSpawn(vehicleid)
{
if(vehicleid > OnGameModeInitLastCarID)
{
for (new i = 0; i != MAX_PLAYERS; ++i)
{
if(vehicleid != newcar[i])
{
DestroyVehicle(vehicleid);
return 1;
}
}
}
return 1;
}

