Jump to content

Cerere Resurse


ReaL Low Head

Recommended Posts

Nume :vip admin . admin nume


Versiune :


Descriere detaliata :Apare ca VIP in score-tab (merge atat pentru tero cat si pentru CT)


                              Mesaj la connectare, atunci cand se connecteaza va aparea un mesaj colorat de genul : "[ATENTIE] *VIP* X s-a connectat

  • Like 1
Link to comment
Share on other sites

 

#include <amxmodx>
#include <amxmisc>

//#define AUTHOR "londoN JM3KeruL"
#define FLAGS    "ab" // flagurile de la vip

public client_connect(id)
{
    if(get_user_flags(id) & read_flags(FLAGS))
    {
        new name[32]
        
        get_user_name(id, name, charsmax(name))
        
        ColorChat(0, "!x04[AMXX] !x03VIP-ul !x04%s !x03s-a conectat pe server", name)
    }
    
    return PLUGIN_CONTINUE;
}

stock ColorChat(const id, const input[], any:...) {
    new count = 1, players[32];
    static msg[191];
    vformat(msg, 190, input, 3);
    
    replace_all(msg, 190, "!x04", "^4");
    replace_all(msg, 190, "!x03", "^3");
    
    if(id) players[0] = id;
    else get_players(players, count, "ch"); {
        for(new i = 0; i < count; i++) {
            if(is_user_connected(players)) {
                message_begin(MSG_ONE_UNRELIABLE, g_msgSayText, _, players);
                write_byte(players);
                write_string(msg);
                message_end();
            }
        }
    }
}

 

Edited by LoNNNDoNNN^
Link to comment
Share on other sites

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