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

[TF2][REQ] autokick anyone who types "sm_votemenu"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ph
AlliedModders Donor
Join Date: Mar 2006
Old 05-20-2022 , 17:45   [TF2][REQ] autokick anyone who types "sm_votemenu"
Reply With Quote #1

Can someone compile a simple plugin that ...

autokick anyone who types sm_votemenu


I hope someone is able to do this for me.
__________________
ph is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 05-20-2022 , 19:06   Re: [TF2][REQ] autokick anyone who types "sm_votemenu"
Reply With Quote #2

Code:
public Action OnClientCommand(int client, int args) {
	char sCommand[32];
	GetCmdArg(0, sCommand, sizeof(sCommand));

	if (StrEqual(sCommand, "sm_votemenu", false) && !CheckCommandAccess(client, "", ADMFLAG_VOTE, true)) {
		KickClient(client, "sus");
	}
}
ye?

Last edited by Drixevel; 05-20-2022 at 19:07.
Drixevel is offline
ph
AlliedModders Donor
Join Date: Mar 2006
Old 05-20-2022 , 19:11   Re: [TF2][REQ] autokick anyone who types "sm_votemenu"
Reply With Quote #3

Thank you.
__________________
ph is offline
Reply


Thread Tools
Display Modes

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 14:03.


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