16.07.2015, 02:10
PHP код:
new bool:VeiculoOcupado[MAX_VEHICLES];
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
VeiculoOcupado[vehicleid] = true;
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
VeiculoOcupado[vehicleid] = false;
return 1;
}
CMD:respawn(playerid)
{
for(new c = 0; c < MAX_VEHICLES; c++)
{
if(VeiculoOcupado[c] == false)
{
SetVehicleToRespawn(c);
}
}
return 1;
}