Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
Problema amx_who
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Fixed issues
Author
Message
6444
DhaAlekz
[Brain Damaged]
Status: Offline
(since 10-09-2018 19:28)
Joined: 03 Apr 2013
Posts: 2445
,
Topics: 107
Location:
Pe net
Reputation:
78.9
Votes
: 82
Posted: 27-10-2013, 00:06:52
| Translate post to:
... (
Click for more languages
)
Salut, am o problema cu un plugin de amx_who (facut cu krond solutions amx_who generator). Daca scriu in consola admin_who, totul merge de minune (imi arata fiecare acces unde trebuie), dar daca scriu amx_who, imi arata ceva in genul asta:
Code:
Clients on server:
# nick authid userid imm res access
1 hateu STEAM_0:0:459418849 10513 No No z
2 KGB Player STEAM_0:0:624028198 10516 No No z
3 _boza STEAM_0:0:2143165103 10517 No No z
4 Prebac_igram_be STEAM_0:0:547828636 10528 Yes Yes abcdefgijnopqrstu
6 MoJeImEjEuBiCa- STEAM_0:0:1443755087 10524 No N
Aici e .sma-ul de la plugin:
Code:
#include <amxmodx>
#include <amxmisc>
#define MAX_GROUPS 7
new g_groupNames[MAX_GROUPS][] = {
"Detinator",
"God",
"Moderator",
"Administrator",
"Helper",
"V.I.P.",
"Slot"
}
new g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstu",
"abcdefjimnopqrst",
"bcdefjimoprst",
"bcdefjimo",
"bij",
"bit",
"b"
}
new g_groupFlagsValue[MAX_GROUPS];
public plugin_init() {
register_plugin("Lista admini (amx_who)", "1.0", "Krond Solutions SRL")
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) {
// Verificam daca userul este online, daca nu... ne oprim din executie
if(!is_user_connected(id)) { return PLUGIN_HANDLED; }
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[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, "==============================")
return PLUGIN_HANDLED
}
Asta am in cmdacces.ini (referitor la amx_who):
Code:
"amx_who" "" ; admincmd.amxx
"admin_who" "" ; amx_who.amxx
Si asta am in plugins.ini:
Code:
; Custom - Add 3rd party plugins here
dp_test.amxx ; A part of dproto_EF 0.9.87
amx_who.amxx
resetscore.amxx
std_admin_color_chat.amxx
welcome.amxx
tfts_transfer.amxx
GHW_Message_Disp.amxx
multijump.amxx
result.amxx
last_maps.amxx
no_team_flash.amxx
amx_show_ip.amxx
amx_destroy.amxx
admin_freelook.amxx
afkbomb.amxx
amx_gag.amxx
bcd_hudtimer.amxx
amx_exec.amxx
amx_toggleimmune.amxx
auto_restart_vl.amxx
VIP.amxx
rien_protection.amxx
amx_leavegame.amxx
amx_fuzy.amxx
amx_hack.amxx
Ma poate ajuta cineva va rog?
Best War3FT server:
war7.freakz.ro
0
0
Back to top
Happy =]]
[I'm in your mind !]
Status: Offline
(since 02-05-2020 11:17)
Joined: 17 Mar 2012
Posts: 10538
,
Topics: 450
Location:
In mintea ta !
Reputation:
553
Votes
: 204
Posted: 27-10-2013, 00:34:48
| Translate post to:
... (
Click for more languages
)
Pune in cmdacces.ini :
Code:
"amx_who" "" ; amx_who.amxx
"admin_who" "" ; amx_who.amxx
Pentru orice problema PM.
Nu ofer asistenta in privat.
0
0
Back to top
DhaAlekz
[Brain Damaged]
Status: Offline
(since 10-09-2018 19:28)
Joined: 03 Apr 2013
Posts: 2445
,
Topics: 107
Location:
Pe net
Reputation:
78.9
Votes
: 82
Posted: 27-10-2013, 01:30:24
| Translate post to:
... (
Click for more languages
)
Happy =]] wrote:
Pune in cmdacces.ini :
Code:
"amx_who" "" ; amx_who.amxx
"admin_who" "" ; amx_who.amxx
Am pus, tot degeaba.
Best War3FT server:
war7.freakz.ro
0
0
Back to top
CSDM
[Nebun dezlegat !]
Status: Offline
(since 02-04-2019 07:40)
Joined: 13 Mar 2013
Posts: 534
,
Topics: 66
Location:
Romania
Reputation:
129.3
Votes
: 10
Posted: 27-10-2013, 07:47:18
| Translate post to:
... (
Click for more languages
)
Intra in scripting , deschide fisierul.sma numit admincmd , cauta comanda amx_who , o sa iti apara asa:
Code:
register_concmd("amx_slap", "cmdSlap", ADMIN_SLAY, "<name or #userid> [power]")
register_concmd("amx_leave", "cmdLeave", ADMIN_KICK, "<tag> [tag] [tag] [tag]")
register_concmd("amx_pause", "cmdPause", ADMIN_CVAR, "- pause or unpause the game")
register_concmd("amx_who", "cmdWho", ADMIN_ADMIN, "- displays who is on server")
Dezactiveaza amx_who din admincmd , adica asa:
register_concmd("amx_slap", "cmdSlap", ADMIN_SLAY, "<name or #userid> [power]")
register_concmd("amx_leave", "cmdLeave", ADMIN_KICK, "<tag> [tag] [tag] [tag]")
register_concmd("amx_pause", "cmdPause", ADMIN_CVAR, "- pause or unpause the game")
//
register_concmd("amx_who", "cmdWho", ADMIN_ADMIN, "- displays who is on server")
Apoi , salvezi si copilezi fisieru modificat.
Deci tu trebuie sa dezactivezi comanda default a serverului pentru amx_who si sa o pui pe a ta.
0
0
Back to top
DhaAlekz
[Brain Damaged]
Status: Offline
(since 10-09-2018 19:28)
Joined: 03 Apr 2013
Posts: 2445
,
Topics: 107
Location:
Pe net
Reputation:
78.9
Votes
: 82
Posted: 27-10-2013, 09:13:17
| Translate post to:
... (
Click for more languages
)
M-am gandit si eu la varianta asta, dar n-am stiut cum s-o fac. Incerc acum si revin cu rezultatul.
Edit: Multumesc mult, a mers.
Best War3FT server:
war7.freakz.ro
0
0
Back to top
D a n g e R
[AimeR]
Status: Offline
(since 21-01-2024 10:36)
Joined: 28 Nov 2012
Posts: 5292
,
Topics: 577
Location:
Maramures
Reputation:
787.6
Votes
: 607
Posted: 27-10-2013, 09:40:47
| Translate post to:
... (
Click for more languages
)
Multumim CSDM...
Merge
Casuta vocala:
DangeR
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
Happy =]]
, 27 October 2013 12:16
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Fixed issues
The time now is 24-04-2024, 18:09:38
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details