RSSy MYGO.pl Opublikowano Styczeń 21, 2024 o 00:55 RSSy Udostępnij Opublikowano Styczeń 21, 2024 o 00:55 maptierGet surf map tier from database (chat/console)Usage PHP Code: # In chat: !tier / !tier <mapname> # In console sm_tier / sm_tier <mapname> # [Server] surf_nyx map is tier 1! RequirementsSourcemod and Metamod MySQL Database connected to the server (sourcemod/configs/databases.cfg) morecolors.inc (For compiling the plugin only) SetupDownloadGrab the latest release from the release page or download from this post Code: git clone https://github.com/noillt/maptier.git Prepare the databaseCreate a new database or choose the one you're already using Import surf map tiers into the database: PHP Code: mysql -u username -p database < maplist.sql Plugin installationPlace plugins and translations into addons/sourcemod/ Set maptier-db in addons/sourcemod/configs/databases.cfg PHP Code: "maptier-db" { "driver" "mysql" "host" "127.0.0.1" "database" "" "user" "" "pass" "" } Restart the server or type sm plugins load maptier in the console to load the plugin. ConfigurationYou can modify the phrases in addons/sourcemod/translations/maptier.phrases.txt Change which database is used in addons/sourcemod/configs/databases.cfg (maptier-db) Noticemaplist.sql is a direct replica of OuiSURF/Surf_Maps maintained spreadsheet of all the maps. We will be updating maplist.sql regurarily to match it. Current map count: 819 Changelogv0.0.7 - 2023-12-10Added new maps to maplist.sql Current map count: 819 v0.0.6 - 2023-06-16Added surf_seaside maplist.sql Changed DROP TABLE IF EXISTS for easier update Changed surf_assail, surf_intra, surf_undergrowth tiers fixed v0.0.5 - 2023-06-15Fixed Invalid query Handle 0 (error: 4) Attached Files maptier-master.zip (32.5 KB) maptier.smx (11.0 KB) Get Plugin or Get Source (maptier.sp - 3.0 KB) maptier.phrases.txt (315 Bytes) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi