Checking weither server or admin is kicking
Hi,
I need to know a way how to check if the server is kicking a player or when an admin kicks someone. |
Re: Checking weither server or admin is kicking
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. |
Re: Checking weither server or admin is kicking
What are you actually trying to do?
|
Re: Checking weither server or admin is kicking
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. |
Re: Checking weither server or admin is kicking
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. |
Re: Checking weither server or admin is kicking
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 |
| All times are GMT -4. The time now is 04:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.