Respawn only unused vehicles
#1

Hello everyone, can someone tell me how to respawn only unused vehicles?

Here's my function:
Код:
        if(IsPlayerConnected(playerid))
        {
			if(PlayerInfo[playerid][pRank] == 6 && PlayerInfo[playerid][pMember] == TEAM_GROVE)
            {
                for(new cars=0; cars<19; cars++)
                {
                    if(!VehicleOccupied(cars))
                    {
                        SetVehicleToRespawn(grovecars[cars]);
                    }
                }
                format(string, sizeof(string), "All vehicles has been respawned by %s(%d)", PlayerName(playerid),playerid);
                SendFactionMessage(TEAM_GROVE, COLOR_LIGHTBLUE, string);
			}
		}
Reply


Messages In This Thread
Respawn only unused vehicles - by iWaYz - 24.09.2013, 19:01
Re: Respawn only unused vehicles - by TonyII - 24.09.2013, 20:55
Re: Respawn only unused vehicles - by iWaYz - 24.09.2013, 21:03
Re: Respawn only unused vehicles - by TonyII - 24.09.2013, 21:07
Re: Respawn only unused vehicles - by Patrick - 24.09.2013, 21:10
Re: Respawn only unused vehicles - by TonyII - 24.09.2013, 21:18

Forum Jump:


Users browsing this thread: 2 Guest(s)