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

Some requests


Post New Thread Reply   
 
Thread Tools Display Modes
Just4FunHD
Junior Member
Join Date: Feb 2011
Old 02-09-2011 , 04:55   Re: Some requests
Reply With Quote #11

Ty very much ImXinR. It works perfectly but the only problem is that it has obtion to kicks players with long, short and symbols names hehe. And when i type name "Name" in console it says ML_NOTFOUND: NONAME_CHANGE if you are so kind to put just a line in wich says Namechange not allowed or something like that i will be grateful. Ty alot again
Just4FunHD is offline
ImXinR
Member
Join Date: Dec 2010
Old 02-09-2011 , 05:26   Re: Some requests
Reply With Quote #12

Umm I did nth much though.. lawl. merely changed cvar
Quote:
gPcvar[CVAR_NONAMECHANGE] = register_cvar("amx_nonamechange", "0");
to
Quote:
gPcvar[CVAR_NONAMECHANGE] = register_cvar("amx_nonamechange", "1");
And as for the Error not found message , Download the txt file . From where you find the plugin name_management.amxx . And edit the txt file to the message you wanted .
__________________
Sometimes , Life Sucks .. Don't You Agree? But ,
Listening To Music Make Us Feel Better

Last edited by ImXinR; 02-09-2011 at 05:29.
ImXinR is offline
Just4FunHD
Junior Member
Join Date: Feb 2011
Old 02-09-2011 , 05:31   Re: Some requests
Reply With Quote #13

i think u missunderstood me
It's working but i don;t whanna the symbols and min/max lengh future
And i don;t need a text file couse i know it can be implemeted in plugin. Am i mistaking?
So why to dld another file when a new line can be added and telling that name change is not allowed

Edit
i think i got it with the message in console i had to change only the
Quote:
client_print(id, print_console, "%L", LANG_PLAYER, "NONAME_CHANGE");
to
Quote:
client_print(id , print_console , "Name change not allowed on this server.");

Last edited by Just4FunHD; 02-09-2011 at 05:43. Reason: to not do double post
Just4FunHD is offline
Old 02-09-2011, 05:41
Just4FunHD
This message has been deleted by Just4FunHD. Reason: double post
ImXinR
Member
Join Date: Dec 2010
Old 02-09-2011 , 06:17   Re: Some requests
Reply With Quote #14

Oh Ok . Here , Try this . Compiles fine . But dono whether work anot.
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define PLUGIN "Name Management"
#define VERSION "1.0"
#define AUTHOR "Alka"

enum CVARS {
    
    
CVAR_NONAMECHANGE
}

new 
gPcvar[CVARS];

public 
plugin_init() {
    
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_forward(FM_ClientUserInfoChanged"fwdClientUserInfoChanged")
;
    
gPcvar[CVAR_NONAMECHANGE] = register_cvar("amx_nonamechange""1")
}
public 
fwdClientUserInfoChanged(idbuffer)
{
    if(!
is_user_connected(id))
        return 
FMRES_IGNORED;
    
    static 
szName[32], szVal[32]
    
get_user_name(idszNamesizeof szName 1)
    
engfunc(EngFunc_InfoKeyValuebuffer"name"szValsizeof szVal 1)
    
    if(
equal(szValszName))
        return 
FMRES_IGNORED;
    
    if(
get_pcvar_num(gPcvar[CVAR_NONAMECHANGE]))
    {
        
engfunc(EngFunc_SetClientKeyValueidbuffer"name"szName);
        
        
client_cmd(id"name ^"%s^"; setinfo name ^"%s^""szNameszName);
        
        
client_print(idprint_console"Changing Of Name Is Not Allowed In This Server.");
    }
    
    return 
FMRES_SUPERCEDE;

__________________
Sometimes , Life Sucks .. Don't You Agree? But ,
Listening To Music Make Us Feel Better
ImXinR is offline
Just4FunHD
Junior Member
Join Date: Feb 2011
Old 02-09-2011 , 11:05   Re: Some requests
Reply With Quote #15

well i did something without knowlage and compiled it and now it works, i just need that menu for buy free intems and to not allow them to buy from buymenu. Ty alot for helping
Just4FunHD is offline
Reply


Thread Tools
Display Modes

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 04:46.


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