[CS:GO] Ban opon game reason
Hay! So I came up with this cool idea, I got some help with it here before on this thread: https://forums.alliedmods.net/showthread.php?t=318291
But now I also want to convert teamdamage bans (the ban you get when you teamkill in the start or deal to much damage to teammates) into a Sourceban ban. But I'm having some issues to find the reason for each ban. So here is what I need help with: In the code on the thread I showed, the plugin checks for the reason 'Kicked by Console', but all kind of kick reasons (votekicked, to much damage, damage on start of round) has the reason 'Kicked by Console' so I want to get a more specified reason on each reason to get kicked. I tried this... PHP Code:
This is the console outputs when you get kicked for each way to get kicked: Votekicked: Code:
Dropped Player from server: Kicked by Console : You have been voted off Code:
Dropped Player from server: Kicked by Console : For doing too much team damage Code:
Dropped Player from server: Kicked by Console : For killing a teammate at round start To sum it up: How do i specify these three kick reasons so I can set different length and reasons? Thanks in advance |
Re: [CS:GO] Ban opon game reason
Code:
PHP Code:
|
Re: [CS:GO] Ban opon game reason
Quote:
Code:
L 09/16/2019 - 19:06:57: [SM] Exception reported: Invalid field "params"[0] for message "CCSUsrMsg_TextMsg" |
Re: [CS:GO] Ban opon game reason
You should test the code, avoid using directly in your plugin.
TextMsg doesn't trigger the message of players disconnecting, not even SayText or SayText2. Check for spawn kills and team damage in a custom plugin and kick/ban players. |
Re: [CS:GO] Ban opon game reason
Quote:
|
All times are GMT -4. The time now is 00:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.