Cerere 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
User avatar
lazlo1234
Membru, skill +1
Membru, skill +1
Posts: 390
Joined: 09 Jul 2012, 23:08
Detinator Steam: Da
CS Status: MISCA MISCA DIN BURIC
Detinator server CS: DA
SteamID: nu am
Location: localhost
Has thanked: 114 times
Been thanked: 7 times
Contact:

28 Jul 2012, 17:47

Salut vreau si eu pluginu acela cand scri /admins /who sa iti apara in motd gradele si admini care sunt ON

gradele si accesele astea le vreau

Code: Select all

"--- Owner ---",
"--- Co-Owner---",
"--- God ---",
"--- V.I.P ---",
"--- Moderator ---",
"--- Administrator ---",
"--- Helper ---",
"--- SloT ---" 

"abcdefghijklmnopqrstuqx",
"bcdefghijklmnopqrstu",
"bcdefghijlmnopqr",
"bcdefghijlmn",
"bcdefghijpqr",
"bcdefhijst",
"bcefij",
"b"


Ms Frumos !
User avatar
h4wk
Fost moderator
Fost moderator
Posts: 3806
Joined: 22 Sep 2009, 12:10
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Nume anterior : DaZ , zimpe , Dan eXtream
Location: Iasi
Has thanked: 305 times
Been thanked: 320 times
Contact:

28 Jul 2012, 18:02

Code: Select all

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

#define motd_msg        "Admin's Online"

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

new GroupNames[GROUPS_NAME][] = 
{
    "---=== Owner ===---",
    "---=== Co Owner ===---",
    "---=== God ===---",
    "---=== V.I.P ===---",
    "---=== Modrator ===---",
    "---=== Administrator ===---",
    "---=== Helper ===---",
    "---=== Slot ===---"
}

new GroupFlags[GROUPS_ACCESS][] = 
{
	"abcdefghijklmnopqrstuqx",
	"bcdefghijklmnopqrstu",
	"bcdefghijlmnopqr",
	"bcdefghijlmn",
	"bcdefghijpqr",
	"bcdefhijst",
	"bcefij",
	"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
}

Code: Select all

"Daca ai culoare nu inseamna ca esti mai presus ca un utilizator. Culoare e un fel de "rasplata" pentru ca te implici in "ridicarea" acestei comunitati.
Unii nu realizeaza ca daca ai culoare nu inseamna ca esti smecher." -- by Alexey
:troll :troll

Spui ceva,dar faci altceva !
User avatar
lazlo1234
Membru, skill +1
Membru, skill +1
Posts: 390
Joined: 09 Jul 2012, 23:08
Detinator Steam: Da
CS Status: MISCA MISCA DIN BURIC
Detinator server CS: DA
SteamID: nu am
Location: localhost
Has thanked: 114 times
Been thanked: 7 times
Contact:

28 Jul 2012, 18:11

da eroara la compilare
User avatar
K1d0x
Fost moderator
Fost moderator
Posts: 800
Joined: 26 Feb 2012, 15:57
Detinator Steam: Da
CS Status: We Build Together ;3 RedFear
Detinator server CS: PuB.RedFear.Ro
SteamID: k1dox
Reputatie: Fost moderator ajutator
Location: Reșița
Been thanked: 152 times
Contact:

28 Jul 2012, 18:21

| 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",
    "FF0000",
    "0000FF",
    "FF0000",
    "0000FF"
}

new GroupNames[GROUPS_NAME][] =
{
    "---=== Owner ===---",
    "---=== Co Owner ===---",
    "---=== God ===---",
    "---=== V.I.P ===---",
    "---=== Modrator ===---",
    "---=== Administrator ===---",
    "---=== Helper ===---",
    "---=== Slot ===---"
}

new GroupFlags[GROUPS_ACCESS][] =
{
   "abcdefghijklmnopqrstuqx",
   "bcdefghijklmnopqrstu",
   "bcdefghijlmnopqr",
   "bcdefghijlmn",
   "bcdefghijpqr",
   "bcdefhijst",
   "bcefij",
   "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
}
Image
32slots.net - Sursa ta de încredere de KIT-uri CS 1.6
RedFear.Ro România - | Afiseaza codul
Vă aştept cu un Register pe Forum
- Suntem în căutare de Dezvoltatori & Administratori :
HTML
PHP
MYSQL
C++
Ofer Server CS spre administrare | Afiseaza codul
Condiții : 
- Să dispui de timp liber
- Să ai cunoștințe AMXX & HLDS
Boostul este asigurat de către Mine (PM pentru. detalii)
ik1d0x@redfear.ro
User avatar
lazlo1234
Membru, skill +1
Membru, skill +1
Posts: 390
Joined: 09 Jul 2012, 23:08
Detinator Steam: Da
CS Status: MISCA MISCA DIN BURIC
Detinator server CS: DA
SteamID: nu am
Location: localhost
Has thanked: 114 times
Been thanked: 7 times
Contact:

28 Jul 2012, 18:41

Hai ca merge :> ms
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests