AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Country On Name (https://forums.alliedmods.net/showthread.php?t=184677)

bboygrun 05-07-2012 14:09

Country On Name
 
3 Attachment(s)
PLUGIN : Country On Name


: | Description | :



This plugin show your country in your name, example ( if my pseudo is : Bboy Grun )

[FR] Bboy Grun ( if i'm from France )
[DE] Bboy Grun ( if i'm from Germany )
[BE] Bboy Grun ( if i'm from Belgium )
[??] Bboy Grun ( if plugin wasn't able to cath my country )

This plugin uses Geoip module.

: | Cvars | :


bot_tag (DEFAULT = 0) :
0 --> Show [??]
1 --> Show [BOT]
2 --> Show [LAN]

lan_tag (DEFAULT = 0) :
0 --> [??]
1 --> [LAN] if ip is LAN, else [??]

( Didn't find it in AlliedMods, so, why not post it :d )

EDIT : If the player leaves the server, the country will not stay on his name ;)

I let the first plugin which only do [??] or [COUNTRY], if you just want these features.

stiffmast3r 05-07-2012 14:22

Re: Country On Name
 
installed on my servers, nice work m8, i really like it :)

bboygrun 05-07-2012 14:31

Re: Country On Name
 
Thanks ^^.

Well, plugin edited :d :

PHP Code:

public client_infochangedid )
{
    new 
newname32 ];
    
get_user_infoid"name"newnamecharsmaxnewname ) );
        
    if( 
g_countryid ][ ] && !has_good_namenewname ) )
    {
        
formatnewnamecharsmaxnewname ), "%s %s"g_countryid ], newname );
        
set_user_infoid"name"newname );
            
        return 
PLUGIN_HANDLED;
    }
        
    return 
PLUGIN_CONTINUE;


to :arrow:

PHP Code:

public client_infochangedid )
{
    if( 
g_countryid ][ ] )
    {
        new 
newname32 ];
        
get_user_infoid"name"newnamecharsmaxnewname ) );
        
        if( !
has_good_namenewname ) )
        {
            
formatnewnamecharsmaxnewname ), "%s %s"g_countryid ], newname );
            
set_user_infoid"name"newname );
            
            return 
PLUGIN_HANDLED;
        }
    }
        
    return 
PLUGIN_CONTINUE;



Aooka 05-07-2012 14:40

Re: Country On Name
 
Good Job !

Niak 05-07-2012 14:52

Re: Country On Name
 
Good idea, thx.

Kidev 05-08-2012 04:11

Re: Country On Name
 
Simple but usefull, nice! And what about [BOT] for bots?

bboygrun 05-08-2012 08:06

Re: Country On Name
 
Some people use PodBots and they don't want that [BOT] appear on their name, so [??] just appear, but i can add it with a cvar, that's not a problem.

bLacK-bLooD 05-08-2012 08:14

Re: Country On Name
 
The plugin will only modify my name on scoreboard or my name in chat too ?

bboygrun 05-08-2012 08:48

Re: Country On Name
 
Name on scoreboard, name in chat, name on killing ( hud ) ...

kiki33hun 05-10-2012 01:14

Re: Country On Name
 
Quote:

Originally Posted by bboygrun (Post 1704807)
Name on scoreboard, name in chat, name on killing ( hud ) ...


Yes using:
PHP Code:

make_deathmsg 



All times are GMT -4. The time now is 10:07.

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