Amx_Who Plugin Generator v1.1
-
- Membru, skill 0
- Posts: 17
- Joined: 13 Jan 2014, 14:49
- Detinator Steam: Da
- CS Status: Citesc forumul eXtreamCS.com...!
- SteamID: tiby_stefan
- Location: New York
- Contact:
frumos ar fi de ar aparea si in hud adminii prin comanda /who
-
- Membru, skill 0
- Posts: 7
- Joined: 23 Jun 2014, 04:22
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Contact:
- shut.theart
- Membru, skill +3
- Posts: 1230
- Joined: 10 Aug 2012, 13:04
- Detinator Steam: Da
- Has thanked: 52 times
- Been thanked: 20 times
- Contact:
Frumoasă ideia însă era frumos și să funcționeze...
Mă rog..
Mă rog..
-
- Membru, skill 0
- Posts: 1
- Joined: 28 Sep 2015, 15:51
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Contact:
Scuzati-ma ca postez aiurea aici, dar am nevoie urgenta de un ajutor. Vreau un amx_who bun, si am luat de aici de la cineva ce postase. Un amx_who #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"
}
new GroupNames[GROUPS_NAME][] =
{
"---=== Fondator ===---",
"---=== Manager ===---",
"---=== Owner ===---",
"---=== Co-owner ===---"
} "---=== Administrator ===---"
"---=== Super-Moderator ===---"
"---=== Moderator ===---"
"---=== Admin ===---"
"---=== Slot ===---"
new GroupFlags[GROUPS_ACCESS][] =
{
"abcdefghijklmnopqrstu"
"abcdegfhijmnopqrs"
"bcdefijmnopqrs"
"bcdefijmnopqr"
"bcdefijmnopq"
"bcdefijmno"
"bcefijmno"
"bcefojm"
"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
} In locul acelor grade pe care eu le-am adaugat erau Assasin, etc gen furien. Si l-am modificat, cand am incercat sa-l compliez, mi-a aratat o eroare cu sma-ul , token nu stiu cum ")" si inca unu jos cu ";" Daca puteti sa ma ajutati sa imi faceti si mie unul bun, va rog eu mult cu aceste grade. Va multumesc. =================================
Fondator "password" "abcdefghijklmnopqrstu" "a"
=================================
=================================
Manager "password" "abcdegfhijmnopqrs" "a"
=================================
=================================
Owner "password" "bcdefijmnopqrs" "a"
=================================
=================================
Co-Owner "password" "bcdefijmnopqr" "a"
=================================
=================================
Administrator "password " "bcdefijmnopq" "a"
=================================
=================================
Super-Moderator "password" "bcdefijmno" "a"
=================================
=================================
Moderator "password" "bcefijmno" "a"
=================================
=================================
Admin "password" "bcefojm" "a"
=================================
=================================
Slot "password" "b" "a"
=================================
: :meme
#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"
}
new GroupNames[GROUPS_NAME][] =
{
"---=== Fondator ===---",
"---=== Manager ===---",
"---=== Owner ===---",
"---=== Co-owner ===---"
} "---=== Administrator ===---"
"---=== Super-Moderator ===---"
"---=== Moderator ===---"
"---=== Admin ===---"
"---=== Slot ===---"
new GroupFlags[GROUPS_ACCESS][] =
{
"abcdefghijklmnopqrstu"
"abcdegfhijmnopqrs"
"bcdefijmnopqrs"
"bcdefijmnopqr"
"bcdefijmnopq"
"bcdefijmno"
"bcefijmno"
"bcefojm"
"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
} In locul acelor grade pe care eu le-am adaugat erau Assasin, etc gen furien. Si l-am modificat, cand am incercat sa-l compliez, mi-a aratat o eroare cu sma-ul , token nu stiu cum ")" si inca unu jos cu ";" Daca puteti sa ma ajutati sa imi faceti si mie unul bun, va rog eu mult cu aceste grade. Va multumesc. =================================
Fondator "password" "abcdefghijklmnopqrstu" "a"
=================================
=================================
Manager "password" "abcdegfhijmnopqrs" "a"
=================================
=================================
Owner "password" "bcdefijmnopqrs" "a"
=================================
=================================
Co-Owner "password" "bcdefijmnopqr" "a"
=================================
=================================
Administrator "password " "bcdefijmnopq" "a"
=================================
=================================
Super-Moderator "password" "bcdefijmno" "a"
=================================
=================================
Moderator "password" "bcefijmno" "a"
=================================
=================================
Admin "password" "bcefojm" "a"
=================================
=================================
Slot "password" "b" "a"
=================================
: :meme
- EraderS.
- Membru, skill +1
- Posts: 125
- Joined: 22 Mar 2018, 10:46
- Detinator Steam: Da
- CS Status: Adormit ")
- Detinator server CS: Da
- SteamID: Norocel94
- Fond eXtream: 0
- Location: Republica Dominicana
- Contact:
Chiar aveam nevoie de un compilator bun.