Raised This Month: $51 Target: $400
 12% 

Solved Help CSGO - Kick Player if he is using custom player model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
raj kaul
Senior Member
Join Date: Mar 2018
Location: www.lotgaming.xyz
Old 12-18-2022 , 15:07   Help CSGO - Kick Player if he is using custom player model
Reply With Quote #1

title, is there any plugin or can anyone make a plugin like this

what is custom model - https://csgostash.com/agents

i got this - [ https://forums.alliedmods.net/showthread.php?t=332961 ] its remove/reset the custom model to default, but i just want to kick that player from the server with a message that he is using the custom model
__________________

Last edited by raj kaul; 12-21-2022 at 09:35.
raj kaul is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-19-2022 , 04:22   Re: Help CSGO - Kick Player if he is using custom player model
Reply With Quote #2

https://github.com/sazonische/disabl..._models.sp#L17

Edit this line 17:
Code:
 	if(!IsClientInKickQueue(client)) KickClient(client, "Your kick message here");
__________________
Do not Private Message @me
Bacardi is offline
raj kaul
Senior Member
Join Date: Mar 2018
Location: www.lotgaming.xyz
Old 12-19-2022 , 06:55   Re: Help CSGO - Kick Player if he is using custom player model
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
https://github.com/sazonische/disabl..._models.sp#L17

Edit this line 17:
Code:
 	if(!IsClientInKickQueue(client)) KickClient(client, "Your kick message here");
i think this plugin is heavy and i dont want to use this, is there any way to create light plugin which can just detect and kick that player ?
__________________
raj kaul is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-19-2022 , 07:24   Re: Help CSGO - Kick Player if he is using custom player model
Reply With Quote #4

Ok. Second way is, look player model after 2 sec when spawn in team.
And find that model from csgo kv file items_game.txt (or what was that file name?)
Look has model "legacy" value "0".

I can try look later. I'm at work now.
__________________
Do not Private Message @me
Bacardi is offline
raj kaul
Senior Member
Join Date: Mar 2018
Location: www.lotgaming.xyz
Old 12-19-2022 , 12:56   Re: Help CSGO - Kick Player if he is using custom player model
Reply With Quote #5

thank you Bacardi for your help
so i tested that kick version which you commented earlier, i have one issue, its kicking the player after half time if the player using agent on the other side which make sense its work like that only ( you can check what i am saying )

but I don't think it's a good idea to kick any player in a live game. Can we do like this, kick player on join only and if they are already in-game, then just notify them chat with a message?
example - Player kancha using the custom agent model, please remove and join the server again
__________________
raj kaul is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-20-2022 , 20:32   Re: Help CSGO - Kick Player if he is using custom player model
Reply With Quote #6

Here is version what I mention before.
And it also kick player after spawn in team.

There could be a way to check player T or CT model beforehand when joined into server.
But it's difficult for me to find that.


Also, I was figthing long time with in-game translation file until I noticed it is UTF-16 format.
Lucky I found nice addition here.
[ANY] Localizer.inc | API | Using intrinsic Valve in-game translation #phrases
- CSGO disconnect message window would not show all models names "nice & clean", it tries escape some special characters.

zip have source+plugin+inc

Click image for larger version

Name:	Desktop Screenshot 2022.12.21 - 03.29.15.39.jpg
Views:	145
Size:	36.0 KB
ID:	198600
Attached Files
File Type: zip csgo_kick_customplayer.zip (35.7 KB, 82 views)
__________________
Do not Private Message @me

Last edited by Bacardi; 12-20-2022 at 20:35.
Bacardi is offline
raj kaul
Senior Member
Join Date: Mar 2018
Location: www.lotgaming.xyz
Old 12-20-2022 , 23:30   Re: Help CSGO - Kick Player if he is using custom player model
Reply With Quote #7

Thank you i tested this, but there is heavy lag when someone gets kicked, you can check this video - https://youtu.be/017tq_au_8Q ( i was testing colors that's why its red )
The last thing can you tell me where and what should i change to disable the kick and just notify them in chat?
just like this - Player kancha using the custom agent model, please remove and join the server again
__________________
raj kaul is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-21-2022 , 01:50   Re: Help CSGO - Kick Player if he is using custom player model
Reply With Quote #8

Ok, thanks for info. It's that translator.
It use sql to convert text.

Need to translate model names on plugin start.
I fix that soon.

*edit
- This version translate model names on OnPluginStart() ready.
- Chat colored warning message to all, what repeat message 5x after player spawn.
- Replace single quote ' to backtick `
Attached Files
File Type: zip csgo_kick_customplayer.zip (37.1 KB, 54 views)
__________________
Do not Private Message @me

Last edited by Bacardi; 12-21-2022 at 04:01.
Bacardi is offline
raj kaul
Senior Member
Join Date: Mar 2018
Location: www.lotgaming.xyz
Old 12-21-2022 , 09:35   Re: Help CSGO - Kick Player if he is using custom player model
Reply With Quote #9

@Bacardi Thank you so much <3
This is perfect
__________________
raj kaul is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-21-2022 , 14:57   Re: Help CSGO - Kick Player if he is using custom player model
Reply With Quote #10

Make a video
Bacardi is offline
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 18:13.


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