Raised This Month: $32 Target: $400
 8% 

Solved Checking weither server or admin is kicking


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-27-2018 , 13:12   Checking weither server or admin is kicking
Reply With Quote #1

Hi,

I need to know a way how to check if the server is kicking a player or when an admin kicks someone.
__________________

Last edited by Napoleon_be; 05-27-2018 at 17:18.
Napoleon_be is online now
Send a message via Skype™ to Napoleon_be
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 05-27-2018 , 14:27   Re: Checking weither server or admin is kicking
Reply With Quote #2

The most unsure way is to check their drop message.
If the reason contains words kicked/banned stuff n things.
-
You can create a CreateMultiForward & set specific args to catch.
So on main admincmd script file you create a forward which is sticked at kick/ban function.
Inside the forward you can catch admin id, victim id & a bool to detect before kick/ban or after.
After this is done you use this forward in any plugin and that will call itself as soon as amx_kick/ban functions is called.
__________________
Relaxing is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-27-2018 , 15:08   Re: Checking weither server or admin is kicking
Reply With Quote #3

What are you actually trying to do?
__________________
fysiks is offline
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 05-27-2018 , 15:12   Re: Checking weither server or admin is kicking
Reply With Quote #4

The thing we're trying to do is to change the servername. Basically you probably know when a player gets kicked there's something like > ADMIN name: kick PLAYERNAME [reason:123], same for the server > ADMIN servername: kick PLAYERNAME [reason:123].

The thing I'm trying to achieve is that we change the "ADMIN servername" part to something else like Server AntiCheat: kick PLAYERNAME [reason:123]. I hope thats clear enough.
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-27-2018 , 15:21   Re: Checking weither server or admin is kicking
Reply With Quote #5

So, it sounds like you are saying that the server isn't actually kicking them and that it's some "anti-cheat" plugin doing it. If the server was actually kicking someone then it would just say "kicked" afaik.

In this case, you need to modify the function that is actually kicking the player where you want a different reason displayed to the user.
__________________
fysiks is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-27-2018 , 17:17   Re: Checking weither server or admin is kicking
Reply With Quote #6

it's already been fixed. We used a check to see if id == 0 (which is the server), and modify a message within that check.

thanks for all the replies
__________________
Napoleon_be is online now
Send a message via Skype™ to Napoleon_be
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode