Unused cars / rep +1
#4

You mean ro respawn all unused cars?

Code:
if(strcmp(cmd, "/respawncars", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        new vehcount = 0;
	        for(new i = 0; i < sizeof(Cars); i++)
			{
				if(CreatedCars[i] != INVALID_VEHICLE_ID)
				{
				    vehcount++;
				    gDestroyVehicles[Cars[i]] = 1;
					SetVehiclesToRespawn(Cars[i]);
					Cars[i] = INVALID_VEHICLE_ID;
				}
			}
	        return 1;
		}
		return 1;
	}
Reply


Messages In This Thread
Unused cars / rep +1 - by arcade2705 - 02.01.2012, 14:12
Re: Unused cars / rep +1 - by Syntax - 02.01.2012, 14:13
Re: Unused cars / rep +1 - by arcade2705 - 02.01.2012, 14:33
Re: Unused cars / rep +1 - by Leo_Johnson - 02.01.2012, 14:39
Re: Unused cars / rep +1 - by Leo_Johnson - 02.01.2012, 14:42

Forum Jump:


Users browsing this thread: 1 Guest(s)