Raised This Month: $ Target: $400
 0% 

disabling say or say_team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-22-2006 , 23:16  
Reply With Quote #1

Variables.
Code:
#include <amxmodx> new bool:cant_type[33]; public plugin_init() {   register_clcmd("say" , "hook_say");   register_clcmd("say_team" , "hook_say"); } public client_connect(id) {   cant_type[id] = false; } public hook_say(id) {   if(cant_type[id]) {     return PLUGIN_HANDLED;   }   return PLUGIN_CONTINUE; }

Now somewhere along the line you want to set cant_type[index] = true.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 16:29.


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