Raised This Month: $32 Target: $400
 8% 

Country Nick Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
zaviier
Senior Member
Join Date: Aug 2017
Location: Indonesia
Old 08-19-2022 , 17:09   Re: Country Nick Plugin
Reply With Quote #161

Quote:
Originally Posted by Grey83 View Post
zaviier, this
perfect. thanks..
zaviier is offline
kimonl
Junior Member
Join Date: Nov 2022
Old 07-09-2023 , 11:30   Re: Country Nick Plugin
Reply With Quote #162

Quote:
Originally Posted by Grey83 View Post
dumb SM1.11 compiler
How to remove [--] dude ?
kimonl is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 07-09-2023 , 12:07   Re: Country Nick Plugin
Reply With Quote #163

Quote:
Originally Posted by kimonl View Post
How to remove [--] dude ?
PHP Code:
stock void SetNewName(int clientchar[] name)
{
    static 
char ip[16];
    if(!
GetClientIP(clientipsizeof(ip)))
        return;

    static 
char code3[4], code2[3];
    if(!(
bLongTag GeoipCode3(ipcode3) : GeoipCode2(ipcode2)))
    {
        
FormatEx(code3sizeof(code3), "-?-");
        
FormatEx(code2sizeof(code2), "--");
    }

    
Format(nameMAX_NAME_LENGTH"%c%s%c%s"HOOKS[0], bLongTag code3 code2HOOKS[1], name[GetPos(name)]);
    
SetClientInfo(client"name"name);

==>
PHP Code:
stock void SetNewName(int clientchar[] name)
{
    static 
char ip[16];
    if(!
GetClientIP(clientipsizeof(ip)))
        return;

    static 
char code3[4], code2[3];
    if(!(
bLongTag GeoipCode3(ipcode3) : GeoipCode2(ipcode2)))
    {
        
Format(nameMAX_NAME_LENGTH"%s"name[GetPos(name)]);
        
SetClientInfo(client"name"name);
        return;
    }

    
Format(nameMAX_NAME_LENGTH"%c%s%c%s"HOOKS[0], bLongTag code3 code2HOOKS[1], name[GetPos(name)]);
    
SetClientInfo(client"name"name);

__________________
Grey83 is offline
kimonl
Junior Member
Join Date: Nov 2022
Old 07-12-2023 , 12:07   Re: Country Nick Plugin
Reply With Quote #164

Quote:
Originally Posted by Grey83 View Post
PHP Code:
stock void SetNewName(int clientchar[] name)
{
    static 
char ip[16];
    if(!
GetClientIP(clientipsizeof(ip)))
        return;

    static 
char code3[4], code2[3];
    if(!(
bLongTag GeoipCode3(ipcode3) : GeoipCode2(ipcode2)))
    {
        
FormatEx(code3sizeof(code3), "-?-");
        
FormatEx(code2sizeof(code2), "--");
    }

    
Format(nameMAX_NAME_LENGTH"%c%s%c%s"HOOKS[0], bLongTag code3 code2HOOKS[1], name[GetPos(name)]);
    
SetClientInfo(client"name"name);

==>
PHP Code:
stock void SetNewName(int clientchar[] name)
{
    static 
char ip[16];
    if(!
GetClientIP(clientipsizeof(ip)))
        return;

    static 
char code3[4], code2[3];
    if(!(
bLongTag GeoipCode3(ipcode3) : GeoipCode2(ipcode2)))
    {
        
Format(nameMAX_NAME_LENGTH"%s"name[GetPos(name)]);
        
SetClientInfo(client"name"name);
        return;
    }

    
Format(nameMAX_NAME_LENGTH"%c%s%c%s"HOOKS[0], bLongTag code3 code2HOOKS[1], name[GetPos(name)]);
    
SetClientInfo(client"name"name);

Awesome, many tks dude <3
kimonl is offline
Picola
Junior Member
Join Date: Mar 2024
Old 03-10-2024 , 16:48   Re: Country Nick Plugin
Reply With Quote #165

Quote:
Originally Posted by Grey83 View Post
dumb SM1.11 compiler
Hello, I'm using admin tag in the front of my nickname, so I wonder how to make this country tag works for non-admin only?

I mean every admins flag from a to z won't have this country tag in their name. Thank you !
Picola is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 03-11-2024 , 14:54   Re: Country Nick Plugin
Reply With Quote #166

Changes 1.2.4 ==> 1.2.5 [2024/03/11]:
  • Added cvars:
    • sm_countrynick_space - Whether to add a space between tag and name
      (request in message #159)
    • sm_countrynick_unknown - Whether to add a tag for a player whose country is unknown
      (request in message #162)
    • sm_countrynick_flags - The plugin will ignore players with any of these flags
      (request in message #165)
Attached Files
File Type: sp Get Plugin or Get Source (countrynick 1.2.5_11.03.2024.sp - 56 views - 6.3 KB)
__________________
Grey83 is offline
Picola
Junior Member
Join Date: Mar 2024
Old 03-11-2024 , 17:23   Re: Country Nick Plugin
Reply With Quote #167

Quote:
Originally Posted by Grey83 View Post
Changes 1.2.4 ==> 1.2.5 [2024/03/11]:
  • Added cvars:
    • sm_countrynick_space - Whether to add a space between tag and name
      (request in message #159)
    • sm_countrynick_unknown - Whether to add a tag for a player whose country is unknown
      (request in message #162)
    • sm_countrynick_flags - The plugin will ignore players with any of these flags
      (request in message #165)
Tested it and Perfect !. Thank you so much !
Picola is offline
Hafabex
New Member
Join Date: Mar 2024
Old 03-17-2024 , 20:31   Re: Country Nick Plugin
Reply With Quote #168

I installed the plugin correctly, but for me and others the plugin shows the nickname as follows: [-?-]player name

How to solve this problem?
Hafabex is offline
DNA.styx
Junior Member
Join Date: Dec 2023
Old 03-18-2024 , 11:33   Re: Country Nick Plugin
Reply With Quote #169

Quote:
Originally Posted by Hafabex View Post
I installed the plugin correctly, but for me and others the plugin shows the nickname as follows: [-?-]player name

How to solve this problem?
Make sure you are running the latest version (currently 1.2.4) from here, the same link also talks about how to troubleshoot the [-?-] issue
__________________
DNA.styx is offline
Hafabex
New Member
Join Date: Mar 2024
Old 03-20-2024 , 18:03   Re: Country Nick Plugin
Reply With Quote #170

I installed version 1.2.4 and it didn't solve the problem.
Hafabex 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 03:21.


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