AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help say / say_team (https://forums.alliedmods.net/showthread.php?t=230305)

Corner 11-23-2013 05:43

Help say / say_team
 
Hey.
i want to make a plugin wen i say anything in chat /team chat its look like this "[you tag] Corner : hey" something like that
only for admins ...

Blizzard_87 11-27-2013 06:14

Re: Help say / say_team
 
Quote:

Originally Posted by Corner (Post 2064355)
Hey.
i want to make a plugin wen i say anything in chat /team chat its look like this "[you tag] Corner : hey" something like that
only for admins ...

explain more?

Corner 11-27-2013 07:02

Re: Help say / say_team
 
Quote:

Originally Posted by Blizzard_87 (Post 2065886)
explain more?

Ex. wen a admin type in chat / team chat he get a "name, logo, tag" before hes name it something like this
"[Admin] Corner : Hello world" i want it possible to change the "admin tag" to what ever like
"[Hello] Corner : Hello World"
Ex picture http://i1010.photobucket.com/albums/...pscbc0d978.png

wickedd 11-27-2013 07:27

Re: Help say / say_team
 
There are several plugins on the forum that does this, just look at them and see how they do it.

Corner 11-27-2013 07:32

Re: Help say / say_team
 
i have but its dont get what to do .. :/

fysiks 11-27-2013 13:36

Re: Help say / say_team
 
Quote:

Originally Posted by Corner (Post 2065910)
i have but its dont get what to do .. :/

What? Just use an existing plugin.

Corner 12-07-2013 05:48

Re: Help say / say_team
 
No i dont find one.
bump?

BlueGaming 12-07-2013 06:39

Re: Help say / say_team
 
try this :
PHP Code:

#include < amxmodx >
#include < colorchat >
#include < amxmisc >



#define PLUGIN "Read argument chat"
#define VERSION "0.1"


public plugin_init( )
{
    
register_pluginPLUGINVERSION"BlueGaming" );
    
    
register_clcmd"say""Func_Say" );
    
register_clcmd"say_team""Func_Say" );
}

public 
Func_Sayid )
{
    new 
szSaid192 ], szName[35];
    
read_argsszSaidsizeofszSaid ) -);
    
get_user_name(idszName34);
    
    
remove_quotesszSaid );
    
    if(
is_user_admin(id))
    {
        
ColorChat(0RED"^4Noob_Admin ^3%s ^4: ^3%s",szName,szSaid);
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE



fysiks 12-07-2013 16:08

Re: Help say / say_team
 
Quote:

Originally Posted by Corner (Post 2069484)
No i dont find one.
bump?

You just said you have found at least one.


All times are GMT -4. The time now is 23:14.

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