amx_who

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 .
Post Reply
Ionutzzzzz
Membru, skill 0
Membru, skill 0
Posts: 12
Joined: 30 May 2012, 14:30
Detinator Steam: Da
CS Status: TALENTAT
Detinator server CS: Respawn.DeathWar.NeT
Contact:

29 Jul 2012, 23:10

salut am si eu o prb nu imi merge sa compliez amx_who ma puteti ajuta

Code: Select all

#include <amxmodx>
#include <amxmisc>
#define MAX_GROUPS 10
new g_groupNames[MAX_GROUPS][] = {
"->Owner^DeTinaTor^Boss<-",
"->Co-Owner<-",
"->Manager<-",
"->Moderator<-",
"->Administrator<-",
"->Helper<-",
"->Fresh Staff<-",
"->Vip<-",
"->Slot<-"
}
new g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrs",
"abcdefghijlmnopqrs",
"abcdefghijmnopq",
"abcdefgijmnopq",
"bcdefijmnop",
"bcdefijmn",
"bcdeijm",
"b"
}
new g_groupFlagsValue[MAX_GROUPS]
public plugin_init() {
register_plugin("Amx_who", "2.0", "By sunline")
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, "------Admini OnLine------")
for(i = 0; i < MAX_GROUPS; i++) {
console_print(id, "---[%d]%s---", i+1, 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, "AdugaTi Serverul la FavoriT")
return PLUGIN_HANDLED
}
eroarea amx_who.sma(5) : error 027: invalid character constant
Ionutzzzzz
Membru, skill 0
Membru, skill 0
Posts: 12
Joined: 30 May 2012, 14:30
Detinator Steam: Da
CS Status: TALENTAT
Detinator server CS: Respawn.DeathWar.NeT
Contact:

29 Jul 2012, 23:49

am rezolvat am gasit prb la owner^deti ....tc
User avatar
tre3fla
Membru eXtream
Membru eXtream
Posts: 5333
Joined: 27 May 2012, 10:15
Detinator Steam: Da
CS Status: Allah Akbar !
Detinator server CS: Nu
SteamID: /id/tre3fla_xxx
Has thanked: 14 times
Been thanked: 129 times

29 Jul 2012, 23:50

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

#define MAX_GROUPS 9

new g_groupNames[MAX_GROUPS][] = {
"->Owner DeTinaTor Boss<-",
"->Co-Owner<-",
"->Manager<-",
"->Moderator<-",
"->Administrator<-",
"->Helper<-",
"->Fresh Staff<-",
"->Vip<-",
"->Slot<-"
}

new g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrs",
"abcdefghijlmnopqrs",
"abcdefghijmnopq",
"abcdefgijmnopq",
"bcdefijmnop",
"bcdefijmn",
"bcdeijm",
"b"
}

new g_groupFlagsValue[MAX_GROUPS]

public plugin_init() {
register_plugin("amx_who Plugin", "1.2", "tre3fla")
register_concmd("amx_who", "cmdWho", 0)
for(new i = 0; i < MAX_GROUPS; i++) {
g_groupFlagsValue = read_flags(g_groupFlags)
}
}

public cmdWho(id) {
new players[32], inum, player, name[32], i, a
get_players(players, inum)
console_print(id, "==========")
for(i = 0; i < MAX_GROUPS; i++) {
console_print(id, "-----[%d]%s-----", i+1, g_groupNames)
for(a = 0; a < inum; ++a) {
player = players[a]
get_user_name(player, name, 31)
if(get_user_flags(player) == g_groupFlagsValue) {
console_print(id, "%s", name)
}
}
}
console_print(id, "------")
return PLUGIN_HANDLED


}


Poftim, ti l-am refacut eu, gradele nu trebuie sa contina "^" deoarece poate fi asociat unei comenzi :)
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests