| robby007 a întrebat:

Cine imi compiliaza si mie un fisier.sma in. amxx? code:

// Copyright © 2009 Echipa SudZoNe!
// www.csromania.com

#include
#include
#define MAX_GROUPS 10
new g_groupNames[MAX_GROUPS][] = {
"---< Fondator >---",
"---< Manager >---",
"---< Owner >---",
"---< Co-Owner >---",
"---< God >---",
"---< Semi-God >---",
"---< Moderator >---",
"---< Administrator >---",
"---< Helper >---",
"---< Slot >---"
}
new g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstux",
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrst",
"abcdefghijlmnopqrst",
"bcdefghijlmnopqrs",
"bcdefgijmnopqr",
"bdcefijmno",
"bcefijm",
"bcefi",
"b",

}
new g_groupFlagsValue[MAX_GROUPS]
public plugin_init() {
register_plugin("Amx Who", "2.0", "PANZER*")
register_concmd("amx_who", "cmdWho", 0)
register_concmd("admin_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, "===| Staff ProCs.EciLa.Ro |===")
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, "===| Forum: ProCs.EciLa.Ro/forum |===")
return PLUGIN_HANDLED
}