Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. public OnGameModeExit()
  2. {
  3. #if Debug
  4. print("OnGameModeExit()");
  5. #endif
  6. Audio_DestroyTCPServer();
  7. DOF2_Exit();
  8. FadeExit();
  9. #if mapandreas
  10. MapAndreas_Unload();
  11. #endif
  12. KillTimer(Setting(setting_globtimer));
  13. KillTimer(Setting(setting_opttimer));
  14. #if OFFICIAL
  15. for(new carid; carid != MAX_VEHICLES; carid++)
  16. {
  17. if(!Vehicle(carid, vehicle_uid)) continue;
  18. if(Vehicle(carid, vehicle_vehID) == INVALID_VEHICLE_ID) continue;
  19. UnSpawnVeh(carid);
  20. }
  21. foreach(Server_Doors, doorid)
  22. {
  23. SaveDoor(doorid);
  24. }
  25. #endif
  26. foreach(Player, playerid)
  27. {
  28. Player(playerid, player_spawned) = false;
  29. OnPlayerLoginOut(playerid);
  30. }
  31. return 1;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement