PLuign admins online

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 .
Reptile
Membru, skill +1
Membru, skill +1
Posts: 245
Joined: 12 Nov 2008, 14:11
Detinator Steam: Nu
Reputatie: Fost manager
Been thanked: 23 times

26 Aug 2010, 18:10

Babica wrote:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New AMXX Who"
#define VERSION "1.0"
#define AUTHOR "Alka"

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

#define MAX_GROUPS 5

new g_groupNames[MAX_GROUPS][] = {

"----------[1] Capo Di Tutti Capi [1]----------",
"----------[2]Moderatori Globali[2]----------",
"----------[3]Moderatori[3]----------",
"----------[4]Admin server[4]---------",
"----------[5]Slot[5]----------"
}

new g_groupFlags[MAX_GROUPS][] = {

"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrst",
"bcdefghijklmnopqrst",
"bcdefgijkmnopu",
"b"
}

new g_groupFlagsValue[MAX_GROUPS];

public plugin_init() {

register_plugin(PLUGIN, VERSION, AUTHOR);

for(new i = 0 ; i < MAX_GROUPS ; i++)
g_groupFlagsValue = read_flags(g_groupFlags);

register_clcmd("amx_who", "cmdWho", -1, "");
register_clcmd("say /who", "cmdWho", -1, "");
register_clcmd("say /admins", "cmdWho", -1, "");
register_clcmd("say /admin", "cmdWho", -1, "");
register_clcmd("say admins", "cmdWho", -1, "");
register_clcmd("say admin", "cmdWho", -1, "");
}


public cmdWho(id)
{
static sPlayers[32], iNum, iPlayer;
static sName[32], sBuffer[1024];

static iLen;
iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body background=^"http://img836.imageshack.us/img836/3020 ... pg^"><font color=#7b68ee><pre>");
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen,"<center><h2><font color=^"red^"><B>.:: Admini OnLine ::.</B></font></h2></center>^n^n");

get_players(sPlayers, iNum, "ch");

for(new i = 0; i < MAX_GROUPS ; i++)
{
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h5><font color=^"violet^">.:: <B>%s</B> ::.^n</font></h5></center>", g_groupNames);

for(new x = 0; x < iNum ; x++)
{
iPlayer = sPlayers[x];

if(get_user_flags(iPlayer) == g_groupFlagsValue)
{
get_user_name(iPlayer, sName, sizeof sName - 1);
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center>%s^n</center>", sName);
}
}
}
show_motd(id, sBuffer, "Nume server");
return 0;
}
ASTA E CE-AI CERUT... A LU REPTLA NU ERA BUN

Ce nu era bun, batman?
Babica
Membru, skill 0
Membru, skill 0
Posts: 83
Joined: 09 Sep 2009, 13:32
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Has thanked: 4 times
Been thanked: 11 times

27 Aug 2010, 01:33

ma refeream ca nu ai pus numele si gradele cum le-a cerut el..
Reptile
Membru, skill +1
Membru, skill +1
Posts: 245
Joined: 12 Nov 2008, 14:11
Detinator Steam: Nu
Reputatie: Fost manager
Been thanked: 23 times

27 Aug 2010, 21:01

Babica wrote:ma refeream ca nu ai pus numele si gradele cum le-a cerut el..
Nu vad nicio diferenta.
gogoaxel
Membru, skill 0
Membru, skill 0
Posts: 10
Joined: 24 Aug 2010, 18:26
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com!
Has thanked: 5 times
Contact:

31 Aug 2010, 15:21

ma eu vreau nu backround sa apara sus dedesupt la Nume Server
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests