03.12.2016, 19:02
i have this code to respawn unocupied vehicles in the server
the prob is when i use this the trailer that is attacthed to truck also will respawn
how to fix it ??
PHP код:
stock IsVehicleOccupied(vehicleid)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerInVehicle (i,vehicleid)) return 1;
}
return 0;
}
how to fix it ??