16.07.2015, 06:05
No manin acabei de arrumar o meu agorinha passei um tempinho mais funcionou
Код:
stock Respawn_Go() { GameTextForAll("~g~Veiculos do server resetados!", 5000, 3); for(new i; i < MAX_VEHICLES; i++) { if(!IsVehicleInUse(i)) SetVehicleToRespawn(i); } return 1; } stock IsVehicleInUse(vehicleid) { new Veiculo; for(new i; i < MAX_PLAYERS; i++) { if(GetPlayerVehicleID(i) == vehicleid) Veiculo = vehicleid; if(GetVehicleTrailer(GetPlayerVehicleID(i)) == vehicleid) Veiculo = vehicleid; new norespawn = CarroDosPlayers[PlayerInfo[i][pID]]; if(norespawn == vehicleid) Veiculo = vehicleid; } return Veiculo; }