AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   i need a plagin (https://forums.alliedmods.net/showthread.php?t=173658)

tusubasa 12-08-2011 14:09

i need a plagin
 
i need a plagin

and it called CHATBAN PLUGIN not GAG plugin

plz

wickedd 12-08-2011 15:27

Re: i need a plagin
 
Quote:

Originally Posted by tusubasa (Post 1609867)
i need a plagin

and it called CHATBAN PLUGIN not GAG plugin

plz

What's the difference between Chat ban and Gag?

Devil259 12-08-2011 15:41

Re: i need a plagin
 
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. :3

tusubasa 12-15-2011 14:27

Re: i need a plagin
 
thank you but were to put the code *am noob* so be gentle with me

fysiks 12-15-2011 14:35

Re: i need a plagin
 
6 Attachment(s)
Quote:

Originally Posted by tusubasa (Post 1613695)
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").

tusubasa 12-15-2011 14:51

Re: i need a plagin
 
Quote:

Originally Posted by fysiks (Post 1613703)
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 :cry::cry::cry:

fysiks 12-15-2011 14:53

Re: i need a plagin
 
Quote:

Originally Posted by tusubasa (Post 1613713)
thank you very much but the plugin didnt work :cry::cry::cry:

I found another issue, try it again (I updated it above).

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

tusubasa 12-15-2011 14:57

Re: i need a plagin
 
Quote:

Originally Posted by fysiks (Post 1613715)
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

fysiks 12-15-2011 15:04

Re: i need a plagin
 
Quote:

Originally Posted by tusubasa (Post 1613722)
i write in consle ... amx_chatban my name

and doesnt work is the command wrong or the problem in the plugin

Oh, you can't use it on yourself either. I can change it so that you can.

EDIT: I edited so you can now use it on yourself.

tusubasa 12-15-2011 15:17

Re: i need a plagin
 
Quote:

Originally Posted by fysiks (Post 1613729)
Oh, you can't use it on yourself either. I can change it so that you can.

EDIT: I edited so you can now use it on yourself.


not working

( sry for annoying ) :oops::oops:


All times are GMT -4. The time now is 20:59.

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