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

Some requests


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Just4FunHD
Junior Member
Join Date: Feb 2011
Old 02-08-2011 , 08:05   Some requests
Reply With Quote #1

Hope no1 will mind if i post a few requests. Ya i know i just registered and now i am asking for plugins but hope some1 will be so kind to help me.

1.I whant a plugin that will not allow you to change the name (i did a little reserch but i found some that allow you to change name in 30 secs. I whant one that when u enter will keep u that name,not allowing you to change it.)
2. A free weapons, ammo, grenades plugin (if it possible to set wich one are free.Something like in csdm to buy them and no buyzone)
Ty allot guys
Just4FunHD is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 02-08-2011 , 09:55   Re: Some requests
Reply With Quote #2

Quote:
Originally Posted by Just4FunHD View Post
2. A free weapons, ammo, grenades plugin (if it possible to set wich one are free.Something like in csdm to buy them and no buyzone)
Ty allot guys
this: Starting weapons ?
__________________
ANTICHRISTUS is offline
Just4FunHD
Junior Member
Join Date: Feb 2011
Old 02-08-2011 , 10:23   Re: Some requests
Reply With Quote #3

no that one i think it gives only wich weapon you chose. I whant one in wich they can pick any weapon and amo and grenades for free. To be able to chose. And if it posible to chose wich weapon to be on menu or not. Just like i said like in csdm when that menu apear .
Btw ty for reply
Just4FunHD is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 02-08-2011 , 10:46   Re: Some requests
Reply With Quote #4

you need some CSDM features in normal mods. I don't think that's possible without the main CSDM plugin.
otherwise you should post your request in the CSDM sub-forum, you'll find there a best help
__________________
ANTICHRISTUS is offline
Just4FunHD
Junior Member
Join Date: Feb 2011
Old 02-08-2011 , 11:29   Re: Some requests
Reply With Quote #5

ty alot for tips i will ask there 2 hoping some1 will help me hehe can u give me another tip for no name change 2?
I found a plugin name name management that in description says that has noname change but as i was reading the coments some1 told that the name can be changed when are u dead or something like that. If u have some cnolage about scripting can u modify it for me to be functional? i need only the no namechange part
Attached Files
File Type: sma Get Plugin or Get Source (name_management.sma - 659 views - 3.2 KB)
Just4FunHD is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 02-08-2011 , 11:54   Re: Some requests
Reply With Quote #6

firstly, I am not a scripter, I can't modify a code
also, I don't know such plugin, cause I don't like the idea to change something in the player's settings (slow-hacking)
sorry.
__________________
ANTICHRISTUS is offline
Just4FunHD
Junior Member
Join Date: Feb 2011
Old 02-08-2011 , 18:49   Re: Some requests
Reply With Quote #7

oki tks for helping hope some1 alse will be at least as kind as you to help me. The no name change i'lld use it for war3ft due the exp steal.Hope some1 can help me :-s
Just4FunHD is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 02-08-2011 , 19:05   Re: Some requests
Reply With Quote #8

I can show you a wonderful thread https://forums.alliedmods.net/showthread.php?t=64308
I found it by searching for another plugin (in google).
__________________
ANTICHRISTUS is offline
Just4FunHD
Junior Member
Join Date: Feb 2011
Old 02-08-2011 , 19:22   Re: Some requests
Reply With Quote #9

and i was hoping it was one of my requests lol ;))
Just4FunHD is offline
ImXinR
Member
Join Date: Dec 2010
Old 02-09-2011 , 03:00   Re: Some requests
Reply With Quote #10

Try??
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

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

enum CVARS {
    
    
CVAR_CHECKSYMBOLS 0,
    
CVAR_SYMBOLS,
    
CVAR_MINLENGTH,
    
CVAR_MAXLENGTH,
    
CVAR_RESTRICTNAME,
    
CVAR_NONAMECHANGE
}

new 
gPcvar[CVARS];

new 
gFile[64];

public 
plugin_init() {
    
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_dictionary("name_management.txt");
    
    
register_forward(FM_ClientUserInfoChanged"fwdClientUserInfoChanged")
    
    
gPcvar[CVAR_CHECKSYMBOLS] = register_cvar("amx_check_symbols""1");
    
gPcvar[CVAR_SYMBOLS] = register_cvar("amx_name_symbols""!@#$%^"&*~`");
    gPcvar[CVAR_MINLENGTH] = register_cvar("amx_name_minlength", "3");
    gPcvar[CVAR_MAXLENGTH] = register_cvar("amx_name_maxlength", "18");
    gPcvar[CVAR_RESTRICTNAME] = register_cvar("amx_name_restrict", "1");
    gPcvar[CVAR_NONAMECHANGE] = register_cvar("amx_nonamechange", "1");
}

public plugin_cfg()
{
    new sConfigsDir[64];
    get_configsdir(sConfigsDir, sizeof sConfigsDir - 1);
    
    formatex(gFile, sizeof gFile - 1, "%s/restricted_names.ini", sConfigsDir);
    
    if(!file_exists(gFile))
    {
        write_file(gFile, "", -1);
        server_print("%L", LANG_SERVER, "FILE_CREATED");
    }
}

public client_connect(id)
{
    static sName[32];
    get_user_name(id, sName, sizeof sName - 1);
    
    if(get_pcvar_num(gPcvar[CVAR_CHECKSYMBOLS]))
    {
        static sChars[32];
        get_pcvar_string(gPcvar[CVAR_SYMBOLS], sChars, sizeof sChars - 1);
        
        for(new i = 0 ; i < strlen(sName) ; i++)
        {
            for(new j = 0 ; j < strlen(sChars) ; j++)
            {
                if(sName[i] == sChars[j])
                {
                    server_cmd("kick #%d ^"%L^"", get_user_userid(id), LANG_PLAYER, "INVALID_CHAR");
                    break;
                }
            }
        }
    }
    if(get_pcvar_num(gPcvar[CVAR_MINLENGTH]) || get_pcvar_num(gPcvar[CVAR_MAXLENGTH]))
    {
        new iLen;
        
        while(!equali(sName[iLen], "^0"))
            iLen++;
        
        if(iLen < get_pcvar_num(gPcvar[CVAR_MINLENGTH]))
            server_cmd("kick #%i ^"%L^"", get_user_userid(id), LANG_PLAYER, "SHORT_NAME");
        else if(iLen > get_pcvar_num(gPcvar[CVAR_MAXLENGTH]))
            server_cmd("kick #%i ^"%L^"", get_user_userid(id), LANG_PLAYER, "LONG_NAME");
    }
    if(get_pcvar_num(gPcvar[CVAR_RESTRICTNAME]))
    {
        if(is_string_in_file(sName))
            server_cmd("kick #%i ^"%L^"", get_user_userid(id), LANG_PLAYER, "NAME_RESTRICTED");
    }
}

public fwdClientUserInfoChanged(id, buffer)
{
    if(!is_user_connected(id))
        return FMRES_IGNORED;
    
    static szName[32], szVal[32]
    get_user_name(id, szName, sizeof szName - 1)
    engfunc(EngFunc_InfoKeyValue, buffer, "name", szVal, sizeof szVal - 1)
    
    if(equal(szVal, szName))
        return FMRES_IGNORED;
    
    if(get_pcvar_num(gPcvar[CVAR_NONAMECHANGE]))
    {
        engfunc(EngFunc_SetClientKeyValue, id, buffer, "name", szName);
        
        client_cmd(id, "name ^"%s^"; setinfo name ^"%s^"", szName, szName);
        
        client_print(id, print_console, "%L", LANG_PLAYER, "NONAME_CHANGE");
        
        return FMRES_SUPERCEDE;
    }
    client_connect(id);
    
    return FMRES_SUPERCEDE;
}

stock bool:is_string_in_file(const String[])
{
    new iFile = fopen(gFile, "rt");
    
    if(!iFile)
        return false;
    
    static sBuffer[32];
    
    while(!feof(iFile))
    {
        fgets(iFile, sBuffer, sizeof sBuffer - 1);
        
        if(!sBuffer[0] || sBuffer[0] == ';')
            continue;
        
        if(equali(sBuffer, String, strlen(String)))
            return true;
    }
    fclose(iFile);
    
    return false;

__________________
Sometimes , Life Sucks .. Don't You Agree? But ,
Listening To Music Make Us Feel Better
ImXinR 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 07:03.


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