Daca ai ajuns sa vezi acest mesaj inseamna ca nu esti INREGISTRAT sau CONECTAT pe forum! Aceasta este comunitatea noastra!

Iti multumim ca ne-ai ales!
Cu stima, World-Zone
Navigare
Ultimele subiecte
» codurile
Sam Iul 30, 2011 9:39 pm Scris de proxxy

» Servere Deathrun Gata Facut
Mar Iul 26, 2011 2:26 am Scris de Vizitator

» Cfg K1d !!
Lun Iul 11, 2011 6:54 am Scris de Vizitator

» datimi si mie coduri
Dum Apr 24, 2011 3:49 am Scris de Vizitator

» Cel ce Ajunge la nr 13 e Ghinionist
Mier Apr 06, 2011 11:45 pm Scris de Grizzly

» Coduri MT2
Lun Apr 04, 2011 7:37 pm Scris de Daniel

» Recrutam Server
Sam Mar 19, 2011 11:22 pm Scris de Vipera

» Cerere Parteneriat!
Sam Mar 19, 2011 11:16 pm Scris de Vipera

» Cerere in Clan
Sam Mar 19, 2011 11:11 pm Scris de Alexandra


Toate comenzile Colorate

In jos

Toate comenzile Colorate

Mesaj  Grizzly la data de Mier Oct 27, 2010 1:49 am

Nume Plugin: admincmds colored
Autor Plugin: AMXX DEV TEAM & k0smin
Versiune Plugin: Idei FsTyle
Versiune Plugin: 1.0

Descriere:

Deci am vazut ca toata lumea cauta un admincmd colorat si perfect fara buguri sau doar colorat, deci cu ideile lui FsTyle si cunostintele mele am creeat un plugin admincmds colorat pentru a veadea exemple uitati-va la imagini.

Instalare:

Pluginul admincmds-new.sma il puneti in addons/amxmodx/scripting
Pluginul admincmds-new.amxx il puneti in addons/amxmodx/plugins
Intrati in folderul addons/amxmodx/configs/plugins.ini si adaugati la urma:

Cod:
admincmds-new.amxx
Module:
amxmodx
amxmisc

Comenzi:

  • admin_nume [nume sau userid] [nume nou][/*Ⓜpq9fhiku]
  • admin_kick [nume sau userid] [reason][/*Ⓜpq9fhiku]
  • admin_unban [auThid] [ip][/*Ⓜpq9fhiku]
  • admin_addban[auThid] [ip] [minuTe] [reason][/*Ⓜpq9fhiku]
  • admin_who LisTa adminilor care sunT pe server![/*Ⓜpq9fhiku]
  • admin_rcon comanda][/*Ⓜpq9fhiku]
  • admin_showrcon [linie de comanda][/*Ⓜpq9fhiku]
  • admin_module LisTa cu modulurile serverului![/*Ⓜpq9fhiku]
  • admin_plugins LisTa cu pluginurie serverului![/*Ⓜpq9fhiku]
  • admin_map [Nume harTa][/*Ⓜpq9fhiku]
  • admin_slap [nume sau userid] [ViaTa][/*Ⓜpq9fhiku]
  • admin_slay [nume sau userid] [reason][/*Ⓜpq9fhiku]
  • admin_ban [nume sau userid] [minuTe] [reason][/*Ⓜpq9fhiku]
  • admin_banip [nume sau userid] [minuTe] [reason][/*Ⓜpq9fhiku]


Imagini:



Plugin:

Cod:
#include <amxmodx>
#include <amxmisc>

new PLUGIN[]="admincmds colored"
new AUTHOR[]=" AMXX DEV TEAM & k0smin - idei -FsTyle"
new VERSION[]="1.0"

#define MAXSLOTS 32
#define ACCESS ADMIN_KICK
new rcon_password;

enum Color
{
    YELLOW = 1, // Yellow
    GREEN, // Green Color
    TEAM_COLOR, // Red, grey, blue
    GREY, // grey
    RED, // Red
    BLUE, // Blue
}
new TeamInfo;
new SayText;
new MaxSlots;

new bool:IsConnected[MAXSLOTS + 1];

new TeamName[][] =
{
    "",
    "TERRORIST",
    "CT",
    "SPECTATOR"
}
public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_concmd("admin_nume", "cmdNick", ADMIN_SLAY, "[nume sau userid] [nume nou]")
    register_concmd("admin_kick", "cmdKick", ADMIN_SLAY, "[nume sau userid] [reason]")
    register_concmd("admin_unban", "cmdUnban", ADMIN_BAN, "[auThid] [ip]")
    register_concmd("admin_addban", "cmdAddBan", ADMIN_RCON, "[auThid] [ip] [minuTe] [reason]")
    register_concmd("admin_who", "cmdWho", ADMIN_SLAY, "LisTa adminilor care sunT pe server!")
    register_concmd("admin_rcon", "cmdRcon", ADMIN_RCON, "[comanda]")
    register_concmd("admin_showrcon", "cmdShowRcon", ADMIN_RCON, "[linie de comanda]")
    register_concmd("admin_module", "cmdModules", ADMIN_ADMIN, "LisTa cu modulurile serverului!")
    register_concmd("admin_plugins", "cmdPlugins", ADMIN_ADMIN, "LisTa cu pluginurie serverului!")
    register_concmd("admin_map", "cmdMap", ADMIN_MAP, "[Nume harTa]")
    register_concmd("admin_slap", "cmdSlap", ADMIN_SLAY, "[nume sau userid] [ViaTa]")
    register_concmd("admin_slay", "cmdSlay", ADMIN_SLAY, "[nume sau userid] [reason]")
    register_concmd("admin_ban", "cmdBan", ADMIN_BAN, "[nume sau userid] [minuTe] [reason]")
    register_concmd("admin_banip", "cmdBanIP", ADMIN_BAN, "[nume sau userid] [minuTe] [reason]")
   
    TeamInfo = get_user_msgid("TeamInfo");
    SayText = get_user_msgid("SayText");
    MaxSlots = get_maxplayers();
}

public cmdNick(id, level, cid)
{
    if (!cmd_access(id, level, cid, 3))
        return PLUGIN_HANDLED

    new arg1[32], arg2[32], authid[32], name[32], authid2[32], name2[32]

    read_argv(1, arg1, 31)
    read_argv(2, arg2, 31)

    new player = cmd_target(id, arg1, 1)
   
    if (!player)
        return PLUGIN_HANDLED

    get_user_authid(id, authid, 31)
    get_user_name(id, name, 31)
    get_user_authid(player, authid2, 31)
    get_user_name(player, name2, 31)

    client_cmd(player, "name ^"%s^"", arg2)

    log_amx("Cmd: ^"%s<%d><%s><>^" modificare nume in ^"%s^" ^"%s<%d><%s><>^"", name, get_user_userid(id), authid, arg2, name2, get_user_userid(player), authid2)

    switch (get_cvar_num("amx_show_activity"))
    {
        case 2: ColorChat(0, GREEN, "[admin %s]^x01:^x01 Task command admin_nume ^x03%s^x01", name, name2)
        case 1: ColorChat(0, GREEN, "[admin %s]^x01:^x01 Task command admin_nume ^x03%s^x01", name, name2)
    }
    console_print(id, "I-a skimbaT numele lui %s in %s", name2, arg2)
    return PLUGIN_HANDLED
}

public client_putinserver(player)
{
    IsConnected[player] = true;
}

public client_disconnect(player)
{
    IsConnected[player] = false;
}

public ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
{
    static message[256];

    switch(type)
    {
        case YELLOW: // Yellow
        {
            message[0] = 0x01;
        }
        case GREEN: // Green
        {
            message[0] = 0x04;
        }
        default: // White, Red, Blue
        {
            message[0] = 0x03;
        }
    }

    vformat(message[1], 251, msg, 4);

    // Make sure message is not longer than 192 character. Will crash the server.
    message[192] = '^0';

    new team, ColorChange, index, MSG_Type;
   
    if(!id)
    {
        index = FindPlayer();
        MSG_Type = MSG_ALL;
   
    } else {
        MSG_Type = MSG_ONE;
        index = id;
    }
   
    team = get_user_team(index);   
    ColorChange = ColorSelection(index, MSG_Type, type);

    ShowColorMessage(index, MSG_Type, message);
       
    if(ColorChange)
    {
        Team_Info(index, MSG_Type, TeamName[team]);
    }
}

ShowColorMessage(id, type, message[])
{
    emessage_begin(type, SayText, _, id);
    ewrite_byte(id)       
    ewrite_string(message);
    emessage_end();   
}

Team_Info(id, type, team[])
{
    emessage_begin(type, TeamInfo, _, id);
    ewrite_byte(id);
    ewrite_string(team);
    emessage_end();

    return 1;
}

ColorSelection(index, type, Color:Type)
{
    switch(Type)
    {
        case RED:
        {
            return Team_Info(index, type, TeamName[1]);
        }
        case BLUE:
        {
            return Team_Info(index, type, TeamName[2]);
        }
        case GREY:
        {
            return Team_Info(index, type, TeamName[0]);
        }
    }

    return 0;
}

FindPlayer()
{
    new i = -1;

    while(i <= MaxSlots)
    {
        if(IsConnected[++i])
        {
            return i;
        }
    }

    return -1;
}
public cmdKick(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED

    new arg[32]
    read_argv(1, arg, 31)
    new player = cmd_target(id, arg, 1)
   
    if (!player)
        return PLUGIN_HANDLED
   
    new authid[32], authid2[32], name2[32], name[32], userid2, reason[32]
   
    get_user_authid(id, authid, 31)
    get_user_authid(player, authid2, 31)
    get_user_name(player, name2, 31)
    get_user_name(id, name, 31)
    userid2 = get_user_userid(player)
    read_argv(2, reason, 31)
    remove_quotes(reason)
   
   
    switch (get_cvar_num("amx_show_activity"))
    {
                case 2: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_kick ^x03%s^x01", name, name2)
                case 1: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_kick ^x03%s^x01", name, name2)
    }

    if (is_user_bot(player))
        server_cmd("kick #%d", userid2)
    else
    {
        if (reason[0])
            server_cmd("kick #%d ^"%s^"", userid2, reason)
        else
            server_cmd("kick #%d", userid2)
    }
   
    console_print(id, "JucaTorul ^"%s^" a primiT kick", name2)
   
    return PLUGIN_HANDLED
}
public cmdUnban(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED
   
    new arg[32], authid[32], name[32]
   
    read_argv(1, arg, 31)
   
    if (contain(arg, ".") != -1)
    {
        server_cmd("removeip ^"%s^";writeip", arg)
        console_print(id, "Ip %s sTers din lisTa banurilor", arg)
    } else {
        server_cmd("removeid %s;writeid", arg)
        console_print(id, "Numele %s sTers din lisTa banurilor", arg)
    }

    get_user_name(id, name, 31)
   
    switch (get_cvar_num("amx_show_activity"))
    {
                case 2: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_unban ^x03%s^x01", name, arg)
        case 1: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_unban ^x03%s^x01", name, arg)
    }

    get_user_authid(id, authid, 31)
    log_amx("Cmd: ^"%s<%d><%s><>^" unban ^"%s^"", name, get_user_userid(id), authid, arg)
   
    return PLUGIN_HANDLED
}
public cmdAddBan(id, level, cid)
{
    if (!cmd_access(id, level, cid, 3))
        return PLUGIN_HANDLED

    new arg[32], authid[32], name[32], minutes[32], reason[32]
   
    read_argv(1, arg, 31)
    read_argv(2, minutes, 31)
    read_argv(3, reason, 31)
   
    if (contain(arg, ".") != -1)
    {
        server_cmd("addip ^"%s^" ^"%s^";wait;writeip", minutes, arg)
        console_print(id, "Ip-ul ^"%s^" a FosT adaugaT la lisTa de banuri", arg)
    } else {
        server_cmd("banid ^"%s^" ^"%s^";wait;writeid", minutes, arg)
        console_print(id, "auThid-ul ^"%s^" a FosT adaugaT la lisTa de banuri", arg)
    }

    get_user_name(id, name, 31)

   
    switch (get_cvar_num("amx_show_activity"))
    {
                case 2: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_addban ^x03%s^x01", name, arg)
                case 1: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_addban ^x03%s^x01", name, arg)
    }

    get_user_authid(id, authid, 31)
    log_amx("Cmd: ^"%s<%d><%s><>^" ban ^"%s^" [minuTe ^"%s^"] [moTiv ^"%s^"]", name, get_user_userid(id), authid, arg, minutes, reason)

   

    return PLUGIN_HANDLED
}
public cmdWho(id, level, cid)
{
    if (!cmd_access(id, level, cid, 1))
        return PLUGIN_HANDLED

    new players[32], inum, cl_on_server[64], authid[32], name[32], flags, sflags[32]
    new lImm[16], lRes[16], lAccess[16], lYes[16], lNo[16]
   
    format(lImm, 15, "imm")
    format(lRes, 15, "Rezer")
    format(lAccess, 15, "Acces")
    format(lYes, 15, "Da")
    format(lNo, 15, "Nu")
   
    get_players(players, inum)
    format(cl_on_server, 63, "JucaTori pe server")
    console_print(id, "^n%s:^n #  %-16.15s %-20s %-8s %-4.3s %-4.3s %s", cl_on_server, "nick", "authid", "userid", lImm, lRes, lAccess)
   
    for (new a = 0; a < inum; ++a)
    {
        get_user_authid(players[a], authid, 31)
        get_user_name(players[a], name, 31)
        flags = get_user_flags(players[a])
        get_flags(flags, sflags, 31)
        console_print(id, "%2d  %-16.15s %-20s %-8d %-6.5s %-6.5s %s", players[a], name, authid,
        get_user_userid(players[a]), (flags&ADMIN_IMMUNITY) ? lYes : lNo, (flags&ADMIN_RESERVATION) ? lYes : lNo, sflags)
    }
   
    console_print(id, "ToTal %d", inum)
    get_user_authid(id, authid, 31)
    get_user_name(id, name, 31)
    log_amx("Cmd: ^"%s<%d><%s><>^" a ceruT lisTa cu jcuaTori", name, get_user_userid(id), authid)
   
    return PLUGIN_HANDLED
}
public cmdRcon(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED
   
    new arg[128], authid[32], name[32]
   
    read_args(arg, 127)
    get_user_authid(id, authid, 31)
    get_user_name(id, name, 31)
   
    log_amx("Cmd: ^"%s<%d><%s><>^" server console [cmdline ^"%s^"]", name, get_user_userid(id), authid, arg)
   
    console_print(id, "Commanda %s a FosT Trimisa caTre consola serverului", arg)
    server_cmd("%s", arg)
   
    return PLUGIN_HANDLED
}
public cmdShowRcon(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED
       
    new password[64]
   
    get_pcvar_string(rcon_password, password, 63)
   
    if (!password[0])
    {
        cmdRcon(id, level, cid)
    } else {
        new args[128]
       
        read_args(args, 127)
        client_cmd(id, "rcon_password %s", password)
        client_cmd(id, "rcon %s", args)
    }
   
    return PLUGIN_HANDLED
}
public cmdModules(id, level, cid)
{
    if (!cmd_access(id, level, cid, 1))
        return PLUGIN_HANDLED

    new name[32], version[32], author[32], status, sStatus[16]
    new lName[32], lVersion[32], lAuthor[32], lStatus[32];

    format(lName, 31, "Numa")
    format(lVersion, 31, "Versiune")
    format(lAuthor, 31, "auTor")
    format(lStatus, charsmax(lStatus), "sTaTus")

    new num = get_modulesnum()
   
    console_print(id, "Module incarcaTe")
    console_print(id, "%-23.22s %-11.10s %-20.19s %-11.10s", lName, lVersion, lAuthor, lStatus)
   
    for (new i = 0; i < num; i++)
    {
        get_module(i, name, 31, author, 31, version, 31, status)
       
        switch (status)
        {
            case module_loaded: copy(sStatus, 15, "running")
            default:
            {
                copy(sStatus, 15, "bad load");
                copy(name, charsmax(name), "unknown");
                copy(author, charsmax(author), "unknown");
                copy(version, charsmax(version), "unknown");
            }
        }
       
        console_print(id, "%-23.22s %-11.10s %-20.19s %-11.10s", name, version, author, sStatus)
    }
    console_print(id, "%d module", num)

    return PLUGIN_HANDLED
}
public cmdPlugins(id, level, cid)
{
    if (!cmd_access(id, level, cid, 1))
        return PLUGIN_HANDLED
       
    if (id==0)
    {
        server_cmd("amxx plugins");
        server_exec();
        return PLUGIN_HANDLED;
    }

    new name[32], version[32], author[32], filename[32], status[32]
    new lName[32], lVersion[32], lAuthor[32], lFile[32], lStatus[32]

    format(lName, 31, "Nume")
    format(lVersion, 31, "Versiune")
    format(lAuthor, 31, "auTor")
    format(lFile, 31, "Fila")
    format(lStatus, 31, "sTaTus")

    new StartPLID=0;
    new EndPLID;

    new Temp[96]

    new num = get_pluginsnum()
   
    if (read_argc() > 1)
    {
        read_argv(1,Temp,sizeof(Temp)-1);
        StartPLID=str_to_num(Temp)-1; // zero-based
    }

    EndPLID=min(StartPLID + 10, num);
   
    new running = 0
   
    console_print(id, "Pluginuri incarcaTe!")
    console_print(id, "%-18.17s %-11.10s %-17.16s %-16.15s %-9.8s", lName, lVersion, lAuthor, lFile, lStatus)

    new i=StartPLID;
    while (i <EndPLID)
    {
        get_plugin(i++, filename, 31, name, 31, version, 31, author, 31, status, 31)
        console_print(id, "%-18.17s %-11.10s %-17.16s %-16.15s %-9.8s", name, version, author, filename, status)
       
        if (status[0]=='d' || status[0]=='r') // "debug" or "running"
            running++
    }
    console_print(id, "[%d] pluginuri, [%d] FuncTionabile", EndPLID-StartPLID, running)
    console_print(id, "InTrari %d - %d din %d",StartPLID + 1,EndPLID,num);
   
    if (EndPLID < num)
    {
        formatex(Temp,sizeof(Temp)-1,"uTilizeaza 'admin_help %d' penTru a vedea mai mulTe!", EndPLID + 1);
        replace_all(Temp,sizeof(Temp)-1,"amx_help","amx_plugins");
        console_print(id,"%s",Temp);
    }
    else
    {
        formatex(Temp,sizeof(Temp)-1," uTilizeaza 'admin_help 1' pentru incepuT");
        replace_all(Temp,sizeof(Temp)-1,"amx_help","amx_plugins");
        console_print(id,"%s",Temp);
    }

    return PLUGIN_HANDLED
}
public chMap(map[])
{
    server_cmd("changelevel %s", map)
}
public cmdMap(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED

    new arg[32]
    new arglen = read_argv(1, arg, 31)
   
    if (!is_map_valid(arg))
    {
        console_print(id, "HarTa cu acesT nume nu exisTa sau nu a-Ti scris corecT!")
        return PLUGIN_HANDLED
    }

    new authid[32], name[32]
   
    get_user_authid(id, authid, 31)
    get_user_name(id, name, 31)
    switch (get_cvar_num("amx_show_activity"))
    {
        case 2: ColorChat(0, GREEN, "[admin %s]^x01:^x01 Task command admin_map ^x03%s^x01",name,arg)
        case 1: ColorChat(0, GREEN, "[admin %s]^x01:^x01 Task command admin_map ^x03%s^x01",name,arg)
    }
   
    log_amx("Cmd: ^"%s<%d><%s><>^" changelevel ^"%s^"", name, get_user_userid(id), authid, arg)
   
    new _modName[10]
    get_modname(_modName, 9)
   
    if (!equal(_modName, "zp"))
    {
        message_begin(MSG_ALL, SVC_INTERMISSION)
        message_end()
    }
   
    set_task(2.0, "chMap", 0, arg, arglen + 1)
   
    return PLUGIN_HANDLED
}

stock bool:onlyRcon(const name[])
{
    new ptr=get_cvar_pointer(name);
    if (ptr && get_pcvar_flags(ptr) & FCVAR_PROTECTED)
    {
        return true;
    }
    return false;
}
public cmdSlap(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED

    new arg[32]
   
    read_argv(1, arg, 31)
    new player = cmd_target(id, arg, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF | CMDTARGET_ONLY_ALIVE)
   
    if (!player)
        return PLUGIN_HANDLED

    new spower[32], authid[32], name2[32], authid2[32], name[32]
   
    read_argv(2, spower, 31)
   
    new damage = str_to_num(spower)
   
    user_slap(player, damage)
   
    get_user_authid(id, authid, 31)
    get_user_name(id, name, 31)
    get_user_authid(player, authid2, 31)
    get_user_name(player, name2, 31)
   
    log_amx("Cmd: ^"%s<%d><%s><>^" slap with %d damage ^"%s<%d><%s><>^"", name, get_user_userid(id), authid, damage, name2, get_user_userid(player), authid2)
    switch (get_cvar_num("amx_show_activity"))
    {
        case 2: ColorChat(0, GREEN, "[admin %s]^x01:^x01 Task command admin_slap ^x03%s^x01 cu ^x03[%d]^x01 dmg",name, name2, damage)
        case 1: ColorChat(0, GREEN, "[admin %s]^x01:^x01 Task command admin_slap ^x03%s^x01 cu ^x03[%d]^x01 dmg",name, name2, damage)
        }
    console_print(id, "JucaTorul %s a primiT slap cu %d damage", name2, damage)
   
    return PLUGIN_HANDLED
}
public cmdSlay(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED
   
    new arg[32]
   
    read_argv(1, arg, 31)
   
    new player = cmd_target(id, arg, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF | CMDTARGET_ONLY_ALIVE)
   
    if (!player)
        return PLUGIN_HANDLED
   
    user_kill(player)
   
    new authid[32], name2[32], authid2[32], name[32]
   
    get_user_authid(id, authid, 31)
    get_user_name(id, name, 31)
    get_user_authid(player, authid2, 31)
    get_user_name(player, name2, 31)
   
    log_amx("Cmd: ^"%s<%d><%s><>^" slay ^"%s<%d><%s><>^"", name, get_user_userid(id), authid, name2, get_user_userid(player), authid2)   
    switch (get_cvar_num("amx_show_activity"))
    {
        case 2: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_slay ^x03%s^x01",name, name2)
        case 1: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_slay ^x03%s^x01", name, name2)
    }
    console_print(id, "JucaTorul %s a primiT slay", name2)
   
    return PLUGIN_HANDLED
}
public cmdBanIP(id, level, cid)
{
    if (!cmd_access(id, level, cid, 3))
        return PLUGIN_HANDLED
   
    new target[32], minutes[8], reason[64]
   
    read_argv(1, target, 31)
    read_argv(2, minutes, 7)
    read_argv(3, reason, 63)
   
    new player = cmd_target(id, target, 9)
   
    if (!player)
        return PLUGIN_HANDLED
   
    new authid[32], name2[32], authid2[32], name[32]
    new userid2 = get_user_userid(player)
   
    get_user_authid(player, authid2, 31)
    get_user_authid(id, authid, 31)
    get_user_name(player, name2, 31)
    get_user_name(id, name, 31)
   
   
    new temp[64], banned[16], nNum = str_to_num(minutes)
    if (nNum)
        format(temp, 63, "ai primiT ban PenTru %s minuTe", minutes)
    else
        format(temp, 63, "ai primiT ban permanenT PermanenT!", player, "PERM")
    format(banned, 15, "", player, "BANNED")

    new address[32]
    get_user_ip(player, address, 31, 1)

    if (reason[0])
        server_cmd("kick #%d ^"%s (%s %s)^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, reason, banned, temp, minutes, address)
    else
        server_cmd("kick #%d ^"%s %s^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, banned, temp, minutes, address)

    new pl[32];
    get_user_name(player, pl, 31)
    ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_banip ^x03 %s^x01 penTru %s^x01 minuTe!", name, pl, minutes)   
    client_cmd(player, "wait;snapshot;wait");
       
    new activity = get_cvar_num("amx_show_activity")
    if (activity != 0)
    {

    }
    console_print(id, "JucaTorul %s a FosT banaT!", name2)
   
    return PLUGIN_HANDLED
}
public cmdBan(id, level, cid)
{
    if (!cmd_access(id, level, cid, 3))
        return PLUGIN_HANDLED
   
    new target[32], minutes[8], reason[64]
   
    read_argv(1, target, 31)
    read_argv(2, minutes, 7)
    read_argv(3, reason, 63)
   
    new player = cmd_target(id, target, 9)
   
    if (!player)
        return PLUGIN_HANDLED
   
    new authid[32], name2[32], authid2[32], name[32]
    new userid2 = get_user_userid(player)
   
    get_user_authid(player, authid2, 31)
    get_user_authid(id, authid, 31)
    get_user_name(player, name2, 31)
    get_user_name(id, name, 31)
   
   
    new temp[64], banned[16], nNum = str_to_num(minutes)
    if (nNum)
        format(temp, 63, "ai primiT ban PenTru %s minuTe", minutes)
    else
        format(temp, 63, "ai primiT ban permanenT PermanenT!", player, "PERM")
    format(banned, 15, "", player, "BANNED")

    new address[32]
    get_user_ip(player, address, 31, 1)

    if (reason[0])
        server_cmd("kick #%d ^"%s (%s %s)^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, reason, banned, temp, minutes, address)
    else
        server_cmd("kick #%d ^"%s %s^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, banned, temp, minutes, address)

    new pl[32];
    get_user_name(player, pl, 31)
    ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_ban ^x03 %s^x01 penTru %s^x01 minuTe!", name, pl, minutes)   
    client_cmd(player, "wait;snapshot;wait");
       
    new activity = get_cvar_num("amx_show_activity")
    if (activity != 0)
    {

    }
    console_print(id, "JucaTorul %s a FosT banaT!", name2)
   
    return PLUGIN_HANDLED
}[/PHP]Sau daca nu este totul in ordine folositi asta cu incluide data lang ;) :->

[PHP]#include <amxmodx>
#include <amxmisc>

new PLUGIN[]="admincmds colored"
new AUTHOR[]=" AMXX DEV TEAM & k0smin - idei -FsTyle"
new VERSION[]="1.0"

#define MAXSLOTS 32
#define ACCESS ADMIN_KICK
new rcon_password;

enum Color
{
    YELLOW = 1, // Yellow
    GREEN, // Green Color
    TEAM_COLOR, // Red, grey, blue
    GREY, // grey
    RED, // Red
    BLUE, // Blue
}
new TeamInfo;
new SayText;
new MaxSlots;

new bool:IsConnected[MAXSLOTS + 1];

new TeamName[][] =
{
    "",
    "TERRORIST",
    "CT",
    "SPECTATOR"
}
public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_dictionary("admincmds-colored.TxT")
    register_concmd("admin_nume", "cmdNick", ADMIN_SLAY, "[nume sau userid] [nume nou]")
    register_concmd("admin_kick", "cmdKick", ADMIN_SLAY, "[nume sau userid] [reason]")
    register_concmd("admin_unban", "cmdUnban", ADMIN_BAN, "[auThid] [ip]")
    register_concmd("admin_addban", "cmdAddBan", ADMIN_RCON, "[auThid] [ip] [minuTe] [reason]")
    register_concmd("admin_who", "cmdWho", ADMIN_SLAY, "LisTa adminilor care sunT pe server!")
    register_concmd("admin_rcon", "cmdRcon", ADMIN_RCON, "[comanda]")
    register_concmd("admin_showrcon", "cmdShowRcon", ADMIN_RCON, "[linie de comanda]")
    register_concmd("admin_module", "cmdModules", ADMIN_ADMIN, "LisTa cu modulurile serverului!")
    register_concmd("admin_plugins", "cmdPlugins", ADMIN_ADMIN, "LisTa cu pluginurie serverului!")
    register_concmd("admin_map", "cmdMap", ADMIN_MAP, "[Nume harTa]")
    register_concmd("admin_slap", "cmdSlap", ADMIN_SLAY, "[nume sau userid] [ViaTa]")
    register_concmd("admin_slay", "cmdSlay", ADMIN_SLAY, "[nume sau userid] [reason]")
    register_concmd("admin_ban", "cmdBan", ADMIN_BAN, "[nume sau userid] [minuTe] [reason]")
    register_concmd("admin_banip", "cmdBanIP", ADMIN_BAN, "[nume sau userid] [minuTe] [reason]")
   
    TeamInfo = get_user_msgid("TeamInfo");
    SayText = get_user_msgid("SayText");
    MaxSlots = get_maxplayers();
}

public cmdNick(id, level, cid)
{
    if (!cmd_access(id, level, cid, 3))
        return PLUGIN_HANDLED

    new arg1[32], arg2[32], authid[32], name[32], authid2[32], name2[32]

    read_argv(1, arg1, 31)
    read_argv(2, arg2, 31)

    new player = cmd_target(id, arg1, 1)
   
    if (!player)
        return PLUGIN_HANDLED

    get_user_authid(id, authid, 31)
    get_user_name(id, name, 31)
    get_user_authid(player, authid2, 31)
    get_user_name(player, name2, 31)

    client_cmd(player, "name ^"%s^"", arg2)

    log_amx("Cmd: ^"%s<%d><%s><>^" modificare nume in ^"%s^" ^"%s<%d><%s><>^"", name, get_user_userid(id), authid, arg2, name2, get_user_userid(player), authid2)

    switch (get_cvar_num("amx_show_activity"))
    {
        case 2: ColorChat(0, GREEN, "[admin %s]^x01:^x01 Task command admin_nume ^x03%s^x01", name, name2)
        case 1: ColorChat(0, GREEN, "[admin %s]^x01:^x01 Task command admin_nume ^x03%s^x01", name, name2)
    }
    console_print(id, "I-a skimbaT numele lui %s in %s", name2, arg2)
    return PLUGIN_HANDLED
}

public client_putinserver(player)
{
    IsConnected[player] = true;
}

public client_disconnect(player)
{
    IsConnected[player] = false;
}

public ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
{
    static message[256];

    switch(type)
    {
        case YELLOW: // Yellow
        {
            message[0] = 0x01;
        }
        case GREEN: // Green
        {
            message[0] = 0x04;
        }
        default: // White, Red, Blue
        {
            message[0] = 0x03;
        }
    }

    vformat(message[1], 251, msg, 4);

    // Make sure message is not longer than 192 character. Will crash the server.
    message[192] = '^0';

    new team, ColorChange, index, MSG_Type;
   
    if(!id)
    {
        index = FindPlayer();
        MSG_Type = MSG_ALL;
   
    } else {
        MSG_Type = MSG_ONE;
        index = id;
    }
   
    team = get_user_team(index);   
    ColorChange = ColorSelection(index, MSG_Type, type);

    ShowColorMessage(index, MSG_Type, message);
       
    if(ColorChange)
    {
        Team_Info(index, MSG_Type, TeamName[team]);
    }
}

ShowColorMessage(id, type, message[])
{
    emessage_begin(type, SayText, _, id);
    ewrite_byte(id)       
    ewrite_string(message);
    emessage_end();   
}

Team_Info(id, type, team[])
{
    emessage_begin(type, TeamInfo, _, id);
    ewrite_byte(id);
    ewrite_string(team);
    emessage_end();

    return 1;
}

ColorSelection(index, type, Color:Type)
{
    switch(Type)
    {
        case RED:
        {
            return Team_Info(index, type, TeamName[1]);
        }
        case BLUE:
        {
            return Team_Info(index, type, TeamName[2]);
        }
        case GREY:
        {
            return Team_Info(index, type, TeamName[0]);
        }
    }

    return 0;
}

FindPlayer()
{
    new i = -1;

    while(i <= MaxSlots)
    {
        if(IsConnected[++i])
        {
            return i;
        }
    }

    return -1;
}
public cmdKick(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED

    new arg[32]
    read_argv(1, arg, 31)
    new player = cmd_target(id, arg, 1)
   
    if (!player)
        return PLUGIN_HANDLED
   
    new authid[32], authid2[32], name2[32], name[32], userid2, reason[32]
   
    get_user_authid(id, authid, 31)
    get_user_authid(player, authid2, 31)
    get_user_name(player, name2, 31)
    get_user_name(id, name, 31)
    userid2 = get_user_userid(player)
    read_argv(2, reason, 31)
    remove_quotes(reason)
   
   
    switch (get_cvar_num("amx_show_activity"))
    {
                case 2: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_kick ^x03%s^x01", name, name2)
                case 1: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_kick ^x03%s^x01", name, name2)
    }

    if (is_user_bot(player))
        server_cmd("kick #%d", userid2)
    else
    {
        if (reason[0])
            server_cmd("kick #%d ^"%s^"", userid2, reason)
        else
            server_cmd("kick #%d", userid2)
    }
   
    console_print(id, "JucaTorul ^"%s^" a primiT kick", name2)
   
    return PLUGIN_HANDLED
}
public cmdUnban(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED
   
    new arg[32], authid[32], name[32]
   
    read_argv(1, arg, 31)
   
    if (contain(arg, ".") != -1)
    {
        server_cmd("removeip ^"%s^";writeip", arg)
        console_print(id, "Ip %s sTers din lisTa banurilor", arg)
    } else {
        server_cmd("removeid %s;writeid", arg)
        console_print(id, "Numele %s sTers din lisTa banurilor", arg)
    }

    get_user_name(id, name, 31)
   
    switch (get_cvar_num("amx_show_activity"))
    {
                case 2: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_unban ^x03%s^x01", name, arg)
        case 1: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_unban ^x03%s^x01", name, arg)
    }

    get_user_authid(id, authid, 31)
    log_amx("Cmd: ^"%s<%d><%s><>^" unban ^"%s^"", name, get_user_userid(id), authid, arg)
   
    return PLUGIN_HANDLED
}
public cmdAddBan(id, level, cid)
{
    if (!cmd_access(id, level, cid, 3))
        return PLUGIN_HANDLED

    new arg[32], authid[32], name[32], minutes[32], reason[32]
   
    read_argv(1, arg, 31)
    read_argv(2, minutes, 31)
    read_argv(3, reason, 31)
   
    if (contain(arg, ".") != -1)
    {
        server_cmd("addip ^"%s^" ^"%s^";wait;writeip", minutes, arg)
        console_print(id, "Ip-ul ^"%s^" a FosT adaugaT la lisTa de banuri", arg)
    } else {
        server_cmd("banid ^"%s^" ^"%s^";wait;writeid", minutes, arg)
        console_print(id, "auThid-ul ^"%s^" a FosT adaugaT la lisTa de banuri", arg)
    }

    get_user_name(id, name, 31)

   
    switch (get_cvar_num("amx_show_activity"))
    {
                case 2: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_addban ^x03%s^x01", name, arg)
                case 1: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_addban ^x03%s^x01", name, arg)
    }

    get_user_authid(id, authid, 31)
    log_amx("Cmd: ^"%s<%d><%s><>^" ban ^"%s^" [minuTe ^"%s^"] [moTiv ^"%s^"]", name, get_user_userid(id), authid, arg, minutes, reason)

   

    return PLUGIN_HANDLED
}
public cmdWho(id, level, cid)
{
    if (!cmd_access(id, level, cid, 1))
        return PLUGIN_HANDLED

    new players[32], inum, cl_on_server[64], authid[32], name[32], flags, sflags[32]
    new lImm[16], lRes[16], lAccess[16], lYes[16], lNo[16]
   
    format(lImm, 15, "imm")
    format(lRes, 15, "Rezer")
    format(lAccess, 15, "Acces")
    format(lYes, 15, "Da")
    format(lNo, 15, "Nu")
   
    get_players(players, inum)
    format(cl_on_server, 63, "JucaTori pe server")
    console_print(id, "^n%s:^n #  %-16.15s %-20s %-8s %-4.3s %-4.3s %s", cl_on_server, "nick", "authid", "userid", lImm, lRes, lAccess)
   
    for (new a = 0; a < inum; ++a)
    {
        get_user_authid(players[a], authid, 31)
        get_user_name(players[a], name, 31)
        flags = get_user_flags(players[a])
        get_flags(flags, sflags, 31)
        console_print(id, "%2d  %-16.15s %-20s %-8d %-6.5s %-6.5s %s", players[a], name, authid,
        get_user_userid(players[a]), (flags&ADMIN_IMMUNITY) ? lYes : lNo, (flags&ADMIN_RESERVATION) ? lYes : lNo, sflags)
    }
   
    console_print(id, "ToTal %d", inum)
    get_user_authid(id, authid, 31)
    get_user_name(id, name, 31)
    log_amx("Cmd: ^"%s<%d><%s><>^" a ceruT lisTa cu jcuaTori", name, get_user_userid(id), authid)
   
    return PLUGIN_HANDLED
}
public cmdRcon(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED
   
    new arg[128], authid[32], name[32]
   
    read_args(arg, 127)
    get_user_authid(id, authid, 31)
    get_user_name(id, name, 31)
   
    log_amx("Cmd: ^"%s<%d><%s><>^" server console [cmdline ^"%s^"]", name, get_user_userid(id), authid, arg)
   
    console_print(id, "Commanda %s a FosT Trimisa caTre consola serverului", arg)
    server_cmd("%s", arg)
   
    return PLUGIN_HANDLED
}
public cmdShowRcon(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED
       
    new password[64]
   
    get_pcvar_string(rcon_password, password, 63)
   
    if (!password[0])
    {
        cmdRcon(id, level, cid)
    } else {
        new args[128]
       
        read_args(args, 127)
        client_cmd(id, "rcon_password %s", password)
        client_cmd(id, "rcon %s", args)
    }
   
    return PLUGIN_HANDLED
}
public cmdModules(id, level, cid)
{
    if (!cmd_access(id, level, cid, 1))
        return PLUGIN_HANDLED

    new name[32], version[32], author[32], status, sStatus[16]
    new lName[32], lVersion[32], lAuthor[32], lStatus[32];

    format(lName, 31, "Numa")
    format(lVersion, 31, "Versiune")
    format(lAuthor, 31, "auTor")
    format(lStatus, charsmax(lStatus), "sTaTus")

    new num = get_modulesnum()
   
    console_print(id, "Module incarcaTe")
    console_print(id, "%-23.22s %-11.10s %-20.19s %-11.10s", lName, lVersion, lAuthor, lStatus)
   
    for (new i = 0; i < num; i++)
    {
        get_module(i, name, 31, author, 31, version, 31, status)
       
        switch (status)
        {
            case module_loaded: copy(sStatus, 15, "running")
            default:
            {
                copy(sStatus, 15, "bad load");
                copy(name, charsmax(name), "unknown");
                copy(author, charsmax(author), "unknown");
                copy(version, charsmax(version), "unknown");
            }
        }
       
        console_print(id, "%-23.22s %-11.10s %-20.19s %-11.10s", name, version, author, sStatus)
    }
    console_print(id, "%d module", num)

    return PLUGIN_HANDLED
}
public cmdPlugins(id, level, cid)
{
    if (!cmd_access(id, level, cid, 1))
        return PLUGIN_HANDLED
       
    if (id==0)
    {
        server_cmd("amxx plugins");
        server_exec();
        return PLUGIN_HANDLED;
    }

    new name[32], version[32], author[32], filename[32], status[32]
    new lName[32], lVersion[32], lAuthor[32], lFile[32], lStatus[32]

    format(lName, 31, "Nume")
    format(lVersion, 31, "Versiune")
    format(lAuthor, 31, "auTor")
    format(lFile, 31, "Fila")
    format(lStatus, 31, "sTaTus")

    new StartPLID=0;
    new EndPLID;

    new Temp[96]

    new num = get_pluginsnum()
   
    if (read_argc() > 1)
    {
        read_argv(1,Temp,sizeof(Temp)-1);
        StartPLID=str_to_num(Temp)-1; // zero-based
    }

    EndPLID=min(StartPLID + 10, num);
   
    new running = 0
   
    console_print(id, "Pluginuri incarcaTe!")
    console_print(id, "%-18.17s %-11.10s %-17.16s %-16.15s %-9.8s", lName, lVersion, lAuthor, lFile, lStatus)

    new i=StartPLID;
    while (i <EndPLID)
    {
        get_plugin(i++, filename, 31, name, 31, version, 31, author, 31, status, 31)
        console_print(id, "%-18.17s %-11.10s %-17.16s %-16.15s %-9.8s", name, version, author, filename, status)
       
        if (status[0]=='d' || status[0]=='r') // "debug" or "running"
            running++
    }
    console_print(id, "[%d] pluginuri, [%d] FuncTionabile", EndPLID-StartPLID, running)
    console_print(id, "InTrari %d - %d din %d",StartPLID + 1,EndPLID,num);
   
    if (EndPLID < num)
    {
        formatex(Temp,sizeof(Temp)-1,"uTilizeaza 'admin_help %d' penTru a vedea mai mulTe!", EndPLID + 1);
        replace_all(Temp,sizeof(Temp)-1,"amx_help","amx_plugins");
        console_print(id,"%s",Temp);
    }
    else
    {
        formatex(Temp,sizeof(Temp)-1," uTilizeaza 'admin_help 1' pentru incepuT");
        replace_all(Temp,sizeof(Temp)-1,"amx_help","amx_plugins");
        console_print(id,"%s",Temp);
    }

    return PLUGIN_HANDLED
}
public chMap(map[])
{
    server_cmd("changelevel %s", map)
}
public cmdMap(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED

    new arg[32]
    new arglen = read_argv(1, arg, 31)
   
    if (!is_map_valid(arg))
    {
        console_print(id, "HarTa cu acesT nume nu exisTa sau nu a-Ti scris corecT!")
        return PLUGIN_HANDLED
    }

    new authid[32], name[32]
   
    get_user_authid(id, authid, 31)
    get_user_name(id, name, 31)
    switch (get_cvar_num("amx_show_activity"))
    {
        case 2: ColorChat(0, GREEN, "[admin %s]^x01:^x01 Task command admin_map ^x03%s^x01",name,arg)
        case 1: ColorChat(0, GREEN, "[admin %s]^x01:^x01 Task command admin_map ^x03%s^x01",name,arg)
    }
   
    log_amx("Cmd: ^"%s<%d><%s><>^" changelevel ^"%s^"", name, get_user_userid(id), authid, arg)
   
    new _modName[10]
    get_modname(_modName, 9)
   
    if (!equal(_modName, "zp"))
    {
        message_begin(MSG_ALL, SVC_INTERMISSION)
        message_end()
    }
   
    set_task(2.0, "chMap", 0, arg, arglen + 1)
   
    return PLUGIN_HANDLED
}

stock bool:onlyRcon(const name[])
{
    new ptr=get_cvar_pointer(name);
    if (ptr && get_pcvar_flags(ptr) & FCVAR_PROTECTED)
    {
        return true;
    }
    return false;
}
public cmdSlap(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED

    new arg[32]
   
    read_argv(1, arg, 31)
    new player = cmd_target(id, arg, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF | CMDTARGET_ONLY_ALIVE)
   
    if (!player)
        return PLUGIN_HANDLED

    new spower[32], authid[32], name2[32], authid2[32], name[32]
   
    read_argv(2, spower, 31)
   
    new damage = str_to_num(spower)
   
    user_slap(player, damage)
   
    get_user_authid(id, authid, 31)
    get_user_name(id, name, 31)
    get_user_authid(player, authid2, 31)
    get_user_name(player, name2, 31)
   
    log_amx("Cmd: ^"%s<%d><%s><>^" slap with %d damage ^"%s<%d><%s><>^"", name, get_user_userid(id), authid, damage, name2, get_user_userid(player), authid2)
    switch (get_cvar_num("amx_show_activity"))
    {
        case 2: ColorChat(0, GREEN, "[admin %s]^x01:^x01 Task command admin_slap ^x03%s^x01 cu ^x03[%d]^x01 dmg",name, name2, damage)
        case 1: ColorChat(0, GREEN, "[admin %s]^x01:^x01 Task command admin_slap ^x03%s^x01 cu ^x03[%d]^x01 dmg",name, name2, damage)
        }
    console_print(id, "JucaTorul %s a primiT slap cu %d damage", name2, damage)
   
    return PLUGIN_HANDLED
}
public cmdSlay(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
        return PLUGIN_HANDLED
   
    new arg[32]
   
    read_argv(1, arg, 31)
   
    new player = cmd_target(id, arg, CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF | CMDTARGET_ONLY_ALIVE)
   
    if (!player)
        return PLUGIN_HANDLED
   
    user_kill(player)
   
    new authid[32], name2[32], authid2[32], name[32]
   
    get_user_authid(id, authid, 31)
    get_user_name(id, name, 31)
    get_user_authid(player, authid2, 31)
    get_user_name(player, name2, 31)
   
    log_amx("Cmd: ^"%s<%d><%s><>^" slay ^"%s<%d><%s><>^"", name, get_user_userid(id), authid, name2, get_user_userid(player), authid2)   
    switch (get_cvar_num("amx_show_activity"))
    {
        case 2: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_slay ^x03%s^x01",name, name2)
        case 1: ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_slay ^x03%s^x01", name, name2)
    }
    console_print(id, "JucaTorul %s a primiT slay", name2)
   
    return PLUGIN_HANDLED
}
public cmdBanIP(id, level, cid)
{
    if (!cmd_access(id, level, cid, 3))
        return PLUGIN_HANDLED
   
    new target[32], minutes[8], reason[64]
   
    read_argv(1, target, 31)
    read_argv(2, minutes, 7)
    read_argv(3, reason, 63)
   
    new player = cmd_target(id, target, 9)
   
    if (!player)
        return PLUGIN_HANDLED
   
    new authid[32], name2[32], authid2[32], name[32]
    new userid2 = get_user_userid(player)
   
    get_user_authid(player, authid2, 31)
    get_user_authid(id, authid, 31)
    get_user_name(player, name2, 31)
    get_user_name(id, name, 31)
   
   
    new temp[64], banned[16], nNum = str_to_num(minutes)
    if (nNum)
        format(temp, 63, "ai primiT ban PenTru %s minuTe", minutes)
    else
        format(temp, 63, "ai primiT ban permanenT PermanenT!", player, "PERM")
    format(banned, 15, "", player, "BANNED")

    new address[32]
    get_user_ip(player, address, 31, 1)

    if (reason[0])
        server_cmd("kick #%d ^"%s (%s %s)^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, reason, banned, temp, minutes, address)
    else
        server_cmd("kick #%d ^"%s %s^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, banned, temp, minutes, address)

    new pl[32];
    get_user_name(player, pl, 31)
    ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_banip ^x03 %s^x01 penTru %s^x01 minuTe!", name, pl, minutes)   
    client_cmd(player, "wait;snapshot;wait");
       
    new activity = get_cvar_num("amx_show_activity")
    if (activity != 0)
    {

    }
    console_print(id, "JucaTorul %s a FosT banaT!", name2)
   
    return PLUGIN_HANDLED
}
public cmdBan(id, level, cid)
{
    if (!cmd_access(id, level, cid, 3))
        return PLUGIN_HANDLED
   
    new target[32], minutes[8], reason[64]
   
    read_argv(1, target, 31)
    read_argv(2, minutes, 7)
    read_argv(3, reason, 63)
   
    new player = cmd_target(id, target, 9)
   
    if (!player)
        return PLUGIN_HANDLED
   
    new authid[32], name2[32], authid2[32], name[32]
    new userid2 = get_user_userid(player)
   
    get_user_authid(player, authid2, 31)
    get_user_authid(id, authid, 31)
    get_user_name(player, name2, 31)
    get_user_name(id, name, 31)
   
   
    new temp[64], banned[16], nNum = str_to_num(minutes)
    if (nNum)
        format(temp, 63, "ai primiT ban PenTru %s minuTe", minutes)
    else
        format(temp, 63, "ai primiT ban permanenT PermanenT!", player, "PERM")
    format(banned, 15, "", player, "BANNED")

    new address[32]
    get_user_ip(player, address, 31, 1)

    if (reason[0])
        server_cmd("kick #%d ^"%s (%s %s)^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, reason, banned, temp, minutes, address)
    else
        server_cmd("kick #%d ^"%s %s^";wait;addip ^"%s^" ^"%s^";wait;writeip", userid2, banned, temp, minutes, address)

    new pl[32];
    get_user_name(player, pl, 31)
    ColorChat(0, GREEN, "[admin %s]^x01: Task command admin_ban ^x03 %s^x01 penTru %s^x01 minuTe!", name, pl, minutes)   
    client_cmd(player, "wait;snapshot;wait");
       
    new activity = get_cvar_num("amx_show_activity")
    if (activity != 0)
    {

    }
    console_print(id, "JucaTorul %s a FosT banaT!", name2)
   
    return PLUGIN_HANDLED
}
Download Fisier: Click

Fisierul "admincmds-colored.TxT" il bagati in amxmodx/data/lang succes Wink
avatar
Grizzly
Administrator
Administrator

Posturi : 139
Inscris : 17/10/2010
Varsta : 23
Localizare : Undeva in World-Zone

Vezi profilul utilizatorului

Sus In jos

Re: Toate comenzile Colorate

Mesaj  InG[ERU] la data de Vin Oct 29, 2010 11:04 pm

Frumoase Poze


-Ba fraere...
-Taci ba ca am treaba.
-Ba esti prost?
-Taci ba ca am treaba.
-Ba tampitule ti-a luat foc casa.
-Taci ba ca am treaba.
-Da ce faci tu de esti asa ocupat?
-Am grija de foc sa nu se stinga.[/color]

avatar
InG[ERU]
Administrator
Administrator

Posturi : 51
Inscris : 29/10/2010
Varsta : 22

Vezi profilul utilizatorului

Sus In jos

Sus


 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum