Raised This Month: $ Target: $400
 0% 

i need a plagin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tusubasa
Member
Join Date: Nov 2011
Old 12-08-2011 , 14:09   i need a plagin
Reply With Quote #1

i need a plagin

and it called CHATBAN PLUGIN not GAG plugin

plz
tusubasa is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 12-08-2011 , 15:27   Re: i need a plagin
Reply With Quote #2

Quote:
Originally Posted by tusubasa View Post
i need a plagin

and it called CHATBAN PLUGIN not GAG plugin

plz
What's the difference between Chat ban and Gag?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-08-2011 , 15:41   Re: i need a plagin
Reply With Quote #3

Code:
#include < amxmodx > #include < amxmisc > #define ADMIN_COMMAND   ADMIN_KICK new bool:bChatBanned[ 33 ] public plugin_init( ) {     register_plugin( "ChatBan" , "0.0.1" , "Devil" )         register_clcmd( "say" , "hookChat" )     register_clcmd( "say_team" , "hookChat" )         register_clcmd( "amx_chatban" , "chatBan" ) } public hookChat( id ) {     if( is_user_chatban( id ) )         return PLUGIN_HANDLED             return PLUGIN_CONTINUE } public chatBan( id ) {     if( ~get_user_flags( id ) & ADMIN_COMMAND )         return PLUGIN_HANDLED             new sArg[ 32 ]     read_argv( 1 , sArg , charsmax( sArg ) )         new iPlayer = cmd_target( id , sArg , charsmax( sArg ) )         if( is_user_connected( iPlayer ) )     {         if( is_user_chatban( iPlayer ) )         {             UnBan( iPlayer )         }             else         {             Ban( iPlayer )         }     }         return PLUGIN_HANDLED } Ban( index ) {     bChatBanned[ index ] = true } UnBan( index ) {     bChatBanned[ index ] = false } is_user_chatban( index ) {     return bChatBanned[ index ] }

Usage :

amx_chatban <name>

if chatbanned : unbanned
if not chatbanned : banned

Untested.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
tusubasa
Member
Join Date: Nov 2011
Old 12-15-2011 , 14:27   Re: i need a plagin
Reply With Quote #4

thank you but were to put the code *am noob* so be gentle with me
tusubasa is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-15-2011 , 14:35   Re: i need a plagin
Reply With Quote #5

Quote:
Originally Posted by tusubasa View Post
thank you but were to put the code *am noob* so be gentle with me
Copy the code that he posted above into the large box on this page. Then, enter a "plugin short name" and click "Compile". It will give you a link to download the compiled version which you then put in your /addons/amxmodx/plugins/ folder and you activate it like any other plugin.

EDIT:

Here is a more customizable version because you can change the access required for the amx_chatban command without changing the source code of the plugin (using cmdaccess.ini). All you have to do to get this one is click the link "Get Plugin").
Attached Files
File Type: sma Get Plugin or Get Source (chatban.sma - 562 views - 1.2 KB)
__________________

Last edited by fysiks; 12-16-2011 at 14:37.
fysiks is offline
tusubasa
Member
Join Date: Nov 2011
Old 12-15-2011 , 14:51   Re: i need a plagin
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
Copy the code that he posted above into the large box on this page. Then, enter a "plugin short name" and click "Compile". It will give you a link to download the compiled version which you then put in your /addons/amxmodx/plugins/ folder and you activate it like any other plugin.

EDIT:

Here is a more customizable version because you can change the access required for the amx_chatban command without changing the source code of the plugin (using cmdaccess.ini). All you have to do to get this one is click the link "Get Plugin").
thank you very much but the plugin didnt work
tusubasa is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-15-2011 , 14:53   Re: i need a plagin
Reply With Quote #7

Quote:
Originally Posted by tusubasa View Post
thank you very much but the plugin didnt work
I found another issue, try it again (I updated it above).

Make sure the person you are trying it on does not have immunity.
__________________

Last edited by fysiks; 12-15-2011 at 14:54.
fysiks is offline
tusubasa
Member
Join Date: Nov 2011
Old 12-15-2011 , 14:57   Re: i need a plagin
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
I found another issue, try it again (I updated it above).

Make sure the person you are trying it on does not have immunity.

i write in consle ... amx_chatban my name

and doesnt work is the command wrong or the problem in the plugin
tusubasa is offline
tusubasa
Member
Join Date: Nov 2011
Old 12-16-2011 , 09:16   Re: i need a plagin
Reply With Quote #9

thank you it work but there should be a something shows when i chat ban him

like when i kick a player its says admin tusubasa kicked player

and i want to this comes
admin tusubasa chatbanned player
tusubasa is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-16-2011 , 14:37   Re: i need a plagin
Reply With Quote #10

Quote:
Originally Posted by tusubasa View Post
and i want to this comes
admin tusubasa chatbanned player
Ok, added.
__________________
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 20:59.


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