24.09.2013, 19:01
Hello everyone, can someone tell me how to respawn only unused vehicles?
Here's my function:
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);
}
}


