Respawning Vehs
#4

1. If I'm looping through the players, it's good sense that I check if the current id is connected.

2. I may have misinterpreted what you said. I thought you wanted to destroy the spawned vehicles even if they're occupied.

PHP код:
for(new GetPlayerPoolSize(); > -1; --p) { 
    if(
IsPlayerConnected(p)) { 
        if(
IsValidVehicle(PlayerInfo[p][pSpawnVehicle])) {
            if(!
VehicleOccupied(PlayerInfo[p][pSpawnVehicle])) {
                
DestroyVehicle(PlayerInfo[p][pSpawnVehicle]); 
            }
        } 
    } 

Reply


Messages In This Thread
Respawning Vehs - by zamaleksc - 26.12.2015, 22:46
Re: Respawning Vehs - by zPain - 26.12.2015, 22:50
Re: Respawning Vehs - by zamaleksc - 26.12.2015, 22:53
Re: Respawning Vehs - by zPain - 26.12.2015, 23:00
Re: Respawning Vehs - by zamaleksc - 26.12.2015, 23:10

Forum Jump:


Users browsing this thread: 1 Guest(s)