Raised This Month: $ Target: $400
 0% 

Solved Block event/forward default procedure


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-06-2022 , 22:37   Re: Block event/forward default procedure
Reply With Quote #1

I think you'd be better off trying to block the jointeam command sent from the client rather than trying to block some random thing that has "team" in the name since there is a high likelihood that you'll mess with some larger more complex operation.

EDIT:

I just tested registering "jointeam" with register_clcmd() and then returning PLUGIN_HANDLED if I want to block joining teams and PLUGIN_CONTINUE if I don't want to block it. I used a global variable to control which return value was used and toggles that value with a chat command for testing.
__________________

Last edited by fysiks; 01-07-2022 at 00:24.
fysiks 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 11:36.


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