Eroare ultimate_who

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
dDx
Membru, skill +1
Membru, skill +1
Posts: 209
Joined: 20 Nov 2013, 23:16
Detinator Steam: Da
CS Status: Combinatii :)
Detinator server CS: Furien.Drogatii.Ro
SteamID: george3vale
Location: Pitesti
Has thanked: 4 times
Been thanked: 6 times
Contact:

30 Nov 2013, 17:20

Salut ! Spunetimi si mie de ce acest plugin nu imi merge pe serverul meu de furien? Pe serverul de test merge perfect :|
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

#define PLUGIN            "ULTIMATE WHO"
#define VERSION            "1.1"
#define AUTHOR            "P1P"

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

#define GROUPS_NAME   12
#define GROUPS_ACCESS 12

#define motd_msg        "Furien.Drogatii.Ro"

new color[][] =
{
    "3399FF",
    "FF0000",
    "6699FF",
    "FFFF33"
}

new GroupNames[GROUPS_NAME][] =
{
    ".::<<[DETINATOR]>>::.",
    ".::<<[Owner + V.I.P]>>::.",
    ".::<<[Co-Owner + V.I.P]>>::.",
    ".::<<[Co-Owner]>>::.",
    ".::<<[God + V.I.P]>>::.",
    ".::<<[God]>>::.",
    ".::<<[Moderator + V.I.P]>>::.",
    ".::<<[Moderator]>>::.",
    ".::<<[V.I.P]>>::.",
    ".::<<[Administrator + V.I.P]>>::.",
    ".::<<[Administrator]>>::.",
    ".::<<[SLOT]>>::."
}

new GroupFlags[GROUPS_ACCESS][] =
{
    "abcdefghijklmnopqrstu",
    "abcdefghijkmnopqrstu",
    "abcdefgijkmnopqrstu",
    "abcdefgijkmnopqrsu",
    "bcdefgijikmnopqrst",
    "bcdefgijikmnopqrs",
    "bcdefgijkmnopqrst",
    "bcdefgijkmnopqrs",
    "bct",
    "bcdefgijmnopqrt",
    "bcdefgijmnopqr",
    "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=^"yellow^">%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
}
Rapidserver
User avatar
ViciousVixen
Membru, skill +1
Membru, skill +1
Posts: 153
Joined: 13 Mar 2012, 04:11
Detinator Steam: Da
CS Status: House...
Detinator server CS: cs.ilogicgroup.ro
SteamID: ariki666
Has thanked: 3 times
Been thanked: 22 times
Contact:

30 Nov 2013, 17:23

Code: Select all

    "abcdefghijklmnopqrstu",
    "abcdefghijkmnopqrstu",
    "abcdefgijkmnopqrstu",
    "abcdefgijkmnopqrsu",
    "bcdefgijikmnopqrst",
    "bcdefgijikmnopqrs",
    "bcdefgijkmnopqrst",
    "bcdefgijkmnopqrs",
    "bct",
    "bcdefgijmnopqrt",
    "bcdefgijmnopqr",
    "b"
Punele in ordine descrescatoare :) Adica:

Code: Select all

    "abcdefghijklmnopqrstu",
    "abcdefghijkmnopqrstu",
    "abcdefgijkmnopqrstu",
    "abcdefgijkmnopqrsu",
    "bcdefgijikmnopqrst",
    "bcdefgijkmnopqrst",
    "bcdefgijikmnopqrs",
    "bcdefgijkmnopqrs",
    "bcdefgijmnopqrt",
    "bcdefgijmnopqr",
    "bct",
    "b"
Image
Image
Image
User avatar
dDx
Membru, skill +1
Membru, skill +1
Posts: 209
Joined: 20 Nov 2013, 23:16
Detinator Steam: Da
CS Status: Combinatii :)
Detinator server CS: Furien.Drogatii.Ro
SteamID: george3vale
Location: Pitesti
Has thanked: 4 times
Been thanked: 6 times
Contact:

30 Nov 2013, 17:35

ViciousVixen wrote:

Code: Select all

    "abcdefghijklmnopqrstu",
    "abcdefghijkmnopqrstu",
    "abcdefgijkmnopqrstu",
    "abcdefgijkmnopqrsu",
    "bcdefgijikmnopqrst",
    "bcdefgijikmnopqrs",
    "bcdefgijkmnopqrst",
    "bcdefgijkmnopqrs",
    "bct",
    "bcdefgijmnopqrt",
    "bcdefgijmnopqr",
    "b"
Punele in ordine descrescatoare :) Adica:

Code: Select all

    "abcdefghijklmnopqrstu",
    "abcdefghijkmnopqrstu",
    "abcdefgijkmnopqrstu",
    "abcdefgijkmnopqrsu",
    "bcdefgijikmnopqrst",
    "bcdefgijkmnopqrst",
    "bcdefgijikmnopqrs",
    "bcdefgijkmnopqrs",
    "bcdefgijmnopqrt",
    "bcdefgijmnopqr",
    "bct",
    "b"
Am incercat tot nu imi merge
User avatar
DaNNe.
Fost moderator
Fost moderator
Posts: 2808
Joined: 08 Nov 2013, 20:43
Detinator Steam: Da
CS Status: Activitate scăzută
SteamID: /id/FurienMaster
Reputatie: Nick anterior: DnD. Gold, Emrys
0.5/3
Fost moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Has thanked: 230 times
Been thanked: 128 times
Contact:

30 Nov 2013, 17:44

Probabil mai ai un plugin de genul si deaia....
SAU nu ai acelasi users.ini ca pe cel de teste
Contact: Activitate scazuta.
User avatar
ViciousVixen
Membru, skill +1
Membru, skill +1
Posts: 153
Joined: 13 Mar 2012, 04:11
Detinator Steam: Da
CS Status: House...
Detinator server CS: cs.ilogicgroup.ro
SteamID: ariki666
Has thanked: 3 times
Been thanked: 22 times
Contact:

30 Nov 2013, 18:15

Ce anume nu iti functioneaza? Comanda amx_who? Daca "da", atunci pune pluginul primul in lista din plugins.ini
Image
Image
Image
User avatar
dDx
Membru, skill +1
Membru, skill +1
Posts: 209
Joined: 20 Nov 2013, 23:16
Detinator Steam: Da
CS Status: Combinatii :)
Detinator server CS: Furien.Drogatii.Ro
SteamID: george3vale
Location: Pitesti
Has thanked: 4 times
Been thanked: 6 times
Contact:

30 Nov 2013, 18:25

ViciousVixen wrote:Ce anume nu iti functioneaza? Comanda amx_who? Daca "da", atunci pune pluginul primul in lista din plugins.ini
E facut pentru chat cu /admin /who etc nu apare nimic cand scriu /admin /who :|
Post Reply

Return to “Cereri”

  • Information