Vip la fondator [modificare /who]

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
DeViLllll
Membru, skill 0
Membru, skill 0
Posts: 40
Joined: 13 Sep 2020, 12:30
Detinator Steam: Nu
CS Status: Hlewllel
Fond eXtream: 0
Has thanked: 4 times
Been thanked: 1 time

27 Feb 2021, 16:57

Vreau ca si grad-ul king sa aibe vip si toti care au vip sa apara in tab ca vip + toti vipi din sma sa aibe acces la un meniu /vmenu cu urmatoarele :
Viteza 1200
Deagle + M4a1
HP + 100
1 Respawn [ 1 per runda ]
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

#define PLUGIN            "ULTIMATE WHO"
#define VERSION            "1.1"
#define AUTHOR            "P.Of.Pw"

#define CharsMax(%1)        sizeof %1 - 1
#define time_shower        1.0

#define GROUPS_NAME        13
#define GROUPS_ACCESS        13

#define motd_msg        "Admini ON"

new color[][] =
{
    "00FF00",
    "FF0000",
    "0000FF",
    "545454"
}

new GroupNames[GROUPS_NAME][] = 
{
    "---=== KING [ Detinator ] ===---",
    "---=== Owner + Vip ===---",
    "---=== Owner ===---",
    "---=== Co-Owner + Vip ===---",
    "---=== Moderator + Vip ===---",
    "---=== Moderator ===---",
    "---=== Administrator + Vip ===---",
    "---=== Administrator ===---",
    "---=== Helper + Vip ===---",
    "---=== Helper ===---",
    "---=== Admin in Proba ===---",
    "---=== V.I.P ===---",
    "---=== Slot ===---"
}

new GroupFlags[GROUPS_ACCESS][] =
 {
    "abcdefghijklmnopqrstu",
    "abcdefghijklmnopqrst",
    "bcdefijmnopqrsu",
    "bcdefijmnopqt",
    "bcdefijmnopt",
    "bcdefijmnop",
    "bcdefijmnt",
    "bcdefijmn",
    "bceft",
    "bcef",
    "bef",
    "bit",
    "b"
}

new GroupFlagsValue[GROUPS_NAME]

public plugin_init() 
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
   
    for(new p_of_pw = 0 ; p_of_pw < GROUPS_NAME ; p_of_pw++)
        GroupFlagsValue[p_of_pw] = read_flags(GroupFlags[p_of_pw])
   
    register_clcmd("say", "cmdSay")
    register_clcmd("say_team", "cmdSay")
}

public cmdSay(id)
{
    new say[8]
    read_args(say, 7)
    
    if ((containi(say, "who") != -1 
    || containi(say, "admin") != -1 
    || containi(say, "admins") != -1  
    || contain(say, "/who") != -1 
    || contain(say, "/admin") != -1 
    || contain(say, "/admins") != -1))
        who_motd(id)
    
    return PLUGIN_CONTINUE
}

who_motd(id)
{
    new sPlayers[32], iNum, iPlayer
    new sName[32], sBuffer[1024]
    new iLen
    
    iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>")
   
    get_players(sPlayers, iNum, "ch")
   
    for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
    {   
        iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h5><font color=^"violet^">%s^n</font></h5></center>", GroupNames[p_of_pw])
     
        for(new a = 0; a < iNum ; a++)
        {   
            iPlayer = sPlayers[a]
         
            if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
            {
                get_user_name(iPlayer, sName, sizeof sName - 1)
                iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><font color=^"%s^">%s^n</center></font>", color[p_of_pw], sName)
            }
        }        
    }
    
    show_motd(id, sBuffer, motd_msg)
    return PLUGIN_CONTINUE
}
RoyalServer 2
User avatar
kidd0x
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 1054
Joined: 06 Oct 2018, 14:41
Detinator Steam: Da
SteamID: /id/kidd0x/
Reputatie: Utilizator neserios (tepar!)
Fond eXtream: 0
Location: Constangeles
Discord: kidd0x
Has thanked: 172 times
Been thanked: 81 times

27 Feb 2021, 17:39

Mane , daca tot ai rezolvat cum mi-ai zis pe discord , de ce dmnz nu lasi si tu un reply cu rezolvat ca sa nu isi mai bata lumea capu ?
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests