Cerere copilare plugin!

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
BoSsCS
Membru, skill +1
Membru, skill +1
Posts: 315
Joined: 30 Jan 2013, 10:06
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: FURIEN.DEVIL.RO
SteamID: blade_cs1
Location: Botosani
Has thanked: 85 times
Been thanked: 4 times
Contact:

03 Mar 2013, 19:39

Salutare din nou, va rog sa imi copilati si mie sma-ul acesta: http://www.girlshare.ro/32258843.1 , am incercat si eu dar imi da 3 errori, si nu stiu cum sa scap de ele, nu prea ma pricep!!
PLESE HELP! :(
MULTUMESC!
RoyalServer 2
User avatar
eNd.
Membru, skill +1
Membru, skill +1
Posts: 236
Joined: 19 Jan 2013, 21:18
Detinator Steam: Da
CS Status: Whoa...
SteamID: skitaila03
Has thanked: 18 times
Been thanked: 79 times

03 Mar 2013, 19:43

Vezi asa...
| 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        8
#define GROUPS_ACCESS      8

#define motd_msg        "Admin's Online"

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

new GroupNames[GROUPS_NAME][] = 
{
    "---=== Detinator ===---",
    "---=== Owner ===---",
    "---=== God  ===---",
    "---=== Super Moderator ===---",
    "---=== Moderator ===---",
    "---=== Administrator ===---",
    "---=== Helper ===---",
    "---=== Slot ===---"
}

new GroupFlags[GROUPS_ACCESS][] = 
{
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrst",
"bcdefghijklmnopqrst",
"bcdefghijlmnopqrst",
"bcdefghijmnopqrst",
"bcdefghijmnqrst",
"bcdefghijmnst",
"bcefijt"
}

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
}
Image
ImageImage
BoSsCS
Membru, skill +1
Membru, skill +1
Posts: 315
Joined: 30 Jan 2013, 10:06
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: FURIEN.DEVIL.RO
SteamID: blade_cs1
Location: Botosani
Has thanked: 85 times
Been thanked: 4 times
Contact:

03 Mar 2013, 20:03

Iti multumesc mult, dar as mai avea o rugaminte la tine, mi imi apare culoarea la ranguri cu roz si numele adminilor cu verde, uite: http://s3.postimage.org/bo1tcykib/who.jpg Eu vreau sa fie culoarea la ranguri cu verde (verdele din imagine), iar numele adminlor cu rosu!! Te rog frumos :* MULTUMESC!
munir
Membru eXtream
Membru eXtream
Posts: 3193
Joined: 30 Aug 2012, 22:16
Detinator Steam: Da
CS Status: Fost scripter
Detinator server CS: Nu
SteamID: -
Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
Location: Bucuresti
Has thanked: 342 times
Been thanked: 571 times
Contact:

03 Mar 2013, 21:04

| 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        8
#define GROUPS_ACCESS      8

#define motd_msg        "Admin's Online"

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

new GroupNames[GROUPS_NAME][] = 
{
    "---=== Detinator ===---",
    "---=== Owner ===---",
    "---=== God  ===---",
    "---=== Super Moderator ===---",
    "---=== Moderator ===---",
    "---=== Administrator ===---",
    "---=== Helper ===---",
    "---=== Slot ===---"
}

new GroupFlags[GROUPS_ACCESS][] = 
{
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrst",
"bcdefghijklmnopqrst",
"bcdefghijlmnopqrst",
"bcdefghijmnopqrst",
"bcdefghijmnqrst",
"bcdefghijmnst",
"bcefijt"
}

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=^"green^">%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=^"red^">%s^n</center></font>", color[p_of_pw], sName)
            }
        }        
    }
    
    show_motd(id, sBuffer, motd_msg)
    return PLUGIN_CONTINUE
}
Retras
BoSsCS
Membru, skill +1
Membru, skill +1
Posts: 315
Joined: 30 Jan 2013, 10:06
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: FURIEN.DEVIL.RO
SteamID: blade_cs1
Location: Botosani
Has thanked: 85 times
Been thanked: 4 times
Contact:

03 Mar 2013, 21:33

Asa, multumesc mult; dar am o problema, am pus tot cum trebuie , dar cand intru pe server si scriu oricare comanda /admin/ /who/ etc nu imi apare nimic! :( DE CE:|
munir
Membru eXtream
Membru eXtream
Posts: 3193
Joined: 30 Aug 2012, 22:16
Detinator Steam: Da
CS Status: Fost scripter
Detinator server CS: Nu
SteamID: -
Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
Location: Bucuresti
Has thanked: 342 times
Been thanked: 571 times
Contact:

03 Mar 2013, 21:37

BoSsCS wrote:Asa, multumesc mult; dar am o problema, am pus tot cum trebuie , dar cand intru pe server si scriu oricare comanda /admin/ /who/ etc nu imi apare nimic! :( DE CE:|
EDIT: Am citit la postul de mai sus.
| 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        8
#define GROUPS_ACCESS      8

#define motd_msg        "Admin's Online"

new GroupNames[GROUPS_NAME][] = 
{
    "---=== Detinator ===---",
    "---=== Owner ===---",
    "---=== God  ===---",
    "---=== Super Moderator ===---",
    "---=== Moderator ===---",
    "---=== Administrator ===---",
    "---=== Helper ===---",
    "---=== Slot ===---"
}

new GroupFlags[GROUPS_ACCESS][] = 
{
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrst",
"bcdefghijklmnopqrst",
"bcdefghijlmnopqrst",
"bcdefghijmnopqrst",
"bcdefghijmnqrst",
"bcdefghijmnst",
"bcefijt"
}

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=^"green^">%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=^"red^">%s^n</center></font>", sName)
            }
        }        
    }
    
    show_motd(id, sBuffer, motd_msg)
    return PLUGIN_CONTINUE
}

Retras
BoSsCS
Membru, skill +1
Membru, skill +1
Posts: 315
Joined: 30 Jan 2013, 10:06
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: FURIEN.DEVIL.RO
SteamID: blade_cs1
Location: Botosani
Has thanked: 85 times
Been thanked: 4 times
Contact:

03 Mar 2013, 22:40

Gata, merge, multumesc frumos!
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 33 guests