View Single Post
Author Message
AK978
Senior Member
Join Date: Jun 2018
Old 02-24-2019 , 12:10   [Any]returns to the last map.
Reply With Quote #1

服務器開啟並返回上一個遊戲地圖。
server turn on , returns to the last map.
如果你不想返回上一個遊戲地圖,刪除 data\save_map.txt
If you don't want to go back to the previous game map, delete data\save_map.txt



說明:
地圖開始,保存地圖名稱 (data\save_map.txt)
第二次重啟,返回上一個遊戲地圖,若遊戲的地圖名稱與保存的地圖名稱相同則寫入預設 地圖
第三次重啟,返回預設地圖 (避免伺服器連續崩潰)
Description:
Start the map and save the map name (data\save_map.txt)
The second restart, return to the previous game map, if the map name of the game is the same as the saved map name, write the preset map
The third reboot, return to the default map (Avoid continuous server crashes)



Cvar:
sm_default_map "c1m1_hotel"
(you can change your default map, cfg\save_map.cfg)



version:
v1.0 new plugins
v1.1 use ForceChangeLevel



My plugins
Attached Files
File Type: sp Get Plugin or Get Source (savemap.sp - 533 views - 1.6 KB)

Last edited by AK978; 11-28-2020 at 04:55.
AK978 is offline