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

No chat plugin


Post New Thread Reply   
 
Thread Tools Display Modes
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 12-16-2010 , 18:18   Re: No chat plugin
Reply With Quote #11

Thanks
dj_freeze is offline
Send a message via Skype™ to dj_freeze
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 12-17-2010 , 07:44   Re: No chat plugin
Reply With Quote #12

:S Wait.. It is working on my home server but it doesn't work on hosted one :S It has the same plugins I have and people can still type in chat.
dj_freeze is offline
Send a message via Skype™ to dj_freeze
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-17-2010 , 09:33   Re: No chat plugin
Reply With Quote #13

Felt like changing stats[] to static.
Code:
#include <amxmodx> #include <amxmisc> #include <csx>   public plugin_init() {         register_clcmd("say", "Say");         register_clcmd("say_team", "Say"); }   public Say(id) {         if (is_user_admin(id))                 return PLUGIN_CONTINUE;           static stats[8];           return get_user_stats(id, stats, stats) <= 2 ? PLUGIN_CONTINUE : PLUGIN_HANDLED; }
__________________
hleV is offline
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 12-17-2010 , 11:38   Re: No chat plugin
Reply With Quote #14

Sorry ! Now its working ! Thank you.. And can there be added cvars for <= 2 ? And one more thing.. If admins are in top2 i need the plugin to ignore them and give ability to chat first 2 players.

Last edited by dj_freeze; 12-17-2010 at 11:47.
dj_freeze is offline
Send a message via Skype™ to dj_freeze
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-17-2010 , 11:43   Re: No chat plugin
Reply With Quote #15

Code:
#include <amxmodx> #include <amxmisc> #include <csx>   new Top;   public plugin_init() {         register_plugin("No Chat", "1.2", "hleV");           Top = register_cvar("nochat_top", "2");           register_clcmd("say", "Say");         register_clcmd("say_team", "Say"); }   public Say(id) {         if (is_user_admin(id))                 return PLUGIN_CONTINUE;           static stats[8];           return get_user_stats(id, stats, stats) <= get_pcvar_num(Top) ? PLUGIN_CONTINUE : PLUGIN_HANDLED; }
__________________
hleV is offline
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 12-17-2010 , 11:52   Re: No chat plugin
Reply With Quote #16

Sorry for disturbing hleV.. Can you edit a plugin so it will ignore top2 players if they are admins? And another + so that plugin will reset top every X days (cvar)
dj_freeze is offline
Send a message via Skype™ to dj_freeze
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-17-2010 , 12:05   Re: No chat plugin
Reply With Quote #17

Well, the plugin first checks if player is admin. If yes, top isn't checked.
And the other request is not related to this plugin and I can't help you with it.
__________________
hleV is offline
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 12-17-2010 , 12:07   Re: No chat plugin
Reply With Quote #18

Example: If there are 2 admins in top2 will the plugin allow players at top3 and top4 chat?
I need it to be so.
dj_freeze is offline
Send a message via Skype™ to dj_freeze
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-17-2010 , 12:12   Re: No chat plugin
Reply With Quote #19

I can't check if player in top is admin if he's offline.
__________________
hleV is offline
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 12-17-2010 , 12:14   Re: No chat plugin
Reply With Quote #20

ok.. Thanks
dj_freeze is offline
Send a message via Skype™ to dj_freeze
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 04:07.


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