Clanul ghost ofera: Serverele de Counter-Strike, tutoriale, muzica, filme, jocuri etc
 
AcasaPortalCalendarGalerieFAQCautareMembriGrupuriInregistrareStartConectare

Distribuiti | 
 

 admin_chat_colors_admintag reparat! bun vs 1.0

Vezi subiectul anterior Vezi subiectul urmator In jos 
AutorMesaj
Sniper32
Moderator Counter-Strike
Moderator Counter-Strike


Mesaje : 175
Data de inscriere : 20/06/2010
Varsta : 27
Localizare : Baia Mare

MesajSubiect: admin_chat_colors_admintag reparat! bun vs 1.0   Dum Iul 25, 2010 9:00 pm

#include
#include
#define PLUGIN "New AMXX Who"
#define VERSION "1.0"
#define AUTHOR "Sniper32"
#define CharsMax(%1) sizeof %1 - 1
#define MAX_GROUPS 9
new g_groupNames[MAX_GROUPS][] = {
"OWNER",
"Suprem GHOST",
"FOUNDER",
"GOD-ADMIN",
"Admin+Slot",
"Admin",
"helper",
"SloT",
"Onorific"
}
new g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrst",
"bcdefghijklmnopqr",
"abcdefghijkmnopqrst",
"bcdefghijknopqrst",
"cdefijkopqrst",
"cefij",
"b",
"cdefijkopqrs"
}
new g_groupFlagsValue[MAX_GROUPS];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
for(new i = 0 ; i < MAX_GROUPS ; i++)
g_groupFlagsValue[i] = read_flags(g_groupFlags[i]);
register_clcmd("amx_whos", "cmdWho", -1, "");
register_clcmd("say /who", "cmdWho", -1, "");
register_clcmd("say /admins", "cmdWho", -1, "");
}

public cmdWho(id)
{
static sPlayers[32], iNum, iPlayer;
static sName[32], sBuffer[1024];
static iLen;
iLen = formatex(sBuffer, sizeof sBuffer - 1, "
");
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen,"

Admins Online

^n^n");
get_players(sPlayers, iNum, "ch");
for(new i = 0; i < MAX_GROUPS ; i++)
{
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "
..::%s::..^n
", g_groupNames[i]);
for(new x = 0; x < iNum ; x++)
{
iPlayer = sPlayers[x];
if(get_user_flags(iPlayer) == g_groupFlagsValue[i])
{
get_user_name(iPlayer, sName, sizeof sName - 1);
iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "
%s^n
", sName);
}
}
}
show_motd(id, sBuffer, "AMXX Who");
return 0;
}

_________________
Semnatura mea este foarte scumpa.
Sus In jos
Vezi profilul utilizatorului http://cs-ghost.forumer.ro
 
admin_chat_colors_admintag reparat! bun vs 1.0
Vezi subiectul anterior Vezi subiectul urmator Sus 
Pagina 1 din 1

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
CS-GhosT :: Serverele GhosT :: Optiunile serverelor :: Tutoriale CS-GHOST-
Mergi direct la: