Postado Vin 8 Noi 2013 - 8:39
Prima data avem.
Aceasta
Sper sa va fie de folos acest tutorial, daca exista nelamuriri nu evitati sa postati.
- Cod:
#include <amxmodx>
#include <amxmisc>
#define MAX_GROUPS 9
new g_groupNames[MAX_GROUPS][] = {
"--- [1]Owner ---",
"--- [2]Co-Owner ---",
"--- [3]Maresal ---",
"--- [4]General ---",
"--- [5]Colonel ---",
"--- [6]Maior ---",
"--- [7]Sergent ---",
"--- [8]Soldat ---",
"--- [9]V.I.P ---"
}
new g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrst",
"abcdefghijlmnopqrst",
"bcdefghijlmnopqrs",
"bcdefgijlmnopqr",
"bcdefgijmnop",
"bcdefgijmn",
"b",
"abeci"
}
new g_groupFlagsValue[MAX_GROUPS]
public plugin_init() {
register_plugin("Amx_who", "1.0", "LaLeagane.ro")
register_concmd("amx_who", "cmdWho", 0)
for(new i = 0; i < MAX_GROUPS; i++) {
g_groupFlagsValue[i] = read_flags(g_groupFlags[i])
}
}
public cmdWho(id) {
new players[32], inum, player, name[32], i, a
get_players(players, inum)
console_print(id, "Aici punem numele la server.")
for(i = 0; i < MAX_GROUPS; i++) {
console_print(id, "%s", g_groupNames[i])
for(a = 0; a < inum; ++a) {
player = players[a]
get_user_name(player, name, 31)
if(get_user_flags(player) == g_groupFlagsValue[i]) {
console_print(id, "%s", name)
}
}
}
console_print(id, "- BesT ADMINS -")
return PLUGIN_HANDLED
}
Aceasta
- Cod:
"--- [1]Owner ---",
"--- [2]Co-Owner ---",
"--- [3]Maresal ---",
"--- [4]General ---",
"--- [5]Colonel ---",
"--- [6]Maior ---",
"--- [7]Sergent ---",
"--- [8]Soldat ---",
"--- [9]V.I.P ---"
- Cod:
#define MAX_GROUPS 9
- Cod:
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrst",
"abcdefghijlmnopqrst",
"bcdefghijlmnopqrs",
"bcdefgijlmnopqr",
"bcdefgijmnop",
"bcdefgijmn",
"b",
"abeci"
- Cod:
console_print(id, "Aici punem numele serverului.")
- Cod:
console_print(id, "Si aici")
Sper sa va fie de folos acest tutorial, daca exista nelamuriri nu evitati sa postati.