Jump to content

[Plugin-RF] Simple Name Change


LondoN eXtream

Recommended Posts

Descriere: Acest plugin detecteaza daca numele jucatorului este unul din lista pusa de voi sau daca are in nume reclame gen .ro / .com / .net etc si le schimba numele automat in cel setat de voi

 

Download:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN_NAME     "[PGL] Simple Name Changer"
#define PLUGIN_VERSION  "1.0"

new g_szDefaultName[] = "name PGL.RANGFORT.RO"

new const szNameList[] = {
    "Player",
    "SM-Player",
    "PRO-Player-FL",
    "Player[www.resursecs.com",
}

new const szContain[] = {
    ".ro",
    ".com",
    ".net",
    ":27015",
    ":27015",
    "connect",
    "www."
}

public plugin_init() {
    register_plugin(PLUGIN_NAME, PLUGIN_VERSION, "dK^aLeX @ PGL.RANGFORT.RO")
    
    register_cvar("pgl_name_change_tag", "Simple Name Changer")
}

public client_connect(id) {
    new sName[32]
    get_user_name(id, sName, charsmax(sName))
    
    for(new i = 0; i < sizeof szNameList; i++) {
        if(equal(sName, szNameList)) {
            client_cmd(id, g_szDefaultName)
        }
    }
    for(new x = 0; x < sizeof szContain; x++) {
        if(containi(sName, szContain[x])) {
            client_cmd(id, g_szDefaultName)
        }
    }
    new tag[20]
    get_cvar_string("pgl_name_change_tag", tag, charsmax(tag))
    client_print(0, print_chat, "[^x04%s^x03] Jucatorul ^x04%s^x03 are un nume neadecvad!", tag, sName)
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...