RSSy MYGO.pl Opublikowano Luty 19, 2017 o 20:54 RSSy Udostępnij Opublikowano Luty 19, 2017 o 20:54 CT Bans Plugin: I created this plugin because it was requested by a friend and he was happy to have it released publicly. This hasn't been tested a crazy amount but it has been running on an active server for a while now with no complaints. Bans are handled through a MySQL database where each ban has a new row. It should support any game but it has only been tested on CS:GO. I am looking for more ideas and features to incorporate into this plugin and possibly a web panel coming soon to edit and display the bans. For now this requires this include to compile but will be removed soonSupport from MyJailbreak will be added as soon as shanapu comes online: https://github.com/shanapu/MyJailbreak/issues/180Install: Place ctbans.smx in the plugins folder Place ctbans_reasons.txt in the configs folder Create an entry for "ctbans" in databases.cfg Load the plugin Edit ctbans.cfg in cfg/sourcemod/ Done! Cvars: Code: // Sound to play to player when denied CT entry (Default included in CS:GO) // - // Default: "buttons/button11.wav" ctbans_block_sound "buttons/button11.wav" // Chat prefix to use for all messages (Include space at end) // - // Default: "[SM] " ctbans_chat_prefix "[SM] " // Amount of minutes to keep a player in the rage ct ban menu // - // Default: "10" ctbans_rage_length "10" Commands: sm_isbanned !isbanned !isbanned <player> sm_ctban *NOTE* Time can be accepted as 1s, 2m, 3h, 4d, 5w, ect !ctban (Result: Menu with player, time, and reason) !ctban <player> (Result: Menu with time and reason) !ctban <player> <time> (Result: Menu with reason) !ctban <player> <time> <reason> sm_unctban !unctban <player> sm_offlinectban !offlinectban sm_ragectban !ragectban Include File (For Developers): Code: /********************************************************* * returns if client is CT Banned * * @param client The client to run the check on * @true on banned, false if not *********************************************************/ native CTBans_IsCTBanned(int client); Let me know if you want any more natives addedTODO: Translation Support Credits: My friend for the idea databomb for the original plugin (Thread) Download:ZIP | Source Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się