Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
Modificare Plugin
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
Author
Message
684
uNkd
[Mentally Stable]
Status: Offline
(since 16-04-2013 13:01)
Joined: 17 Oct 2009
Posts: 10
,
Topics: 4
Location:
Romania
Reputation:
83.7
Votes
: 4
Posted: 03-12-2009, 21:25:12
| Translate post to:
... (
Click for more languages
)
As dori modificarea acestui plugin
Code:
#include <amxmodx>
#include <amxmisc>
#define MAX_GROUPS 11
#define WHOISX ADMIN_RESERVATION
new g_groupNames[MAX_GROUPS][] = {
"Detinatori Server Onesti",
"Owner",
"God",
"Semi-God",
"Moderator",
"Administrator",
"Upgrade Helper",
"Slot Demonstrativ",
"Name & IM",
"Shopped Owner",
"Shopped God"
}
new g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstu",
"abcdefghijlmnopqrstu",
"abcdefghijklmnopstu",
"abcdefghijlmnostu",
"abcdefghijkmnstu",
"abcdefghijmnstu",
"abcefij",
"abci",
"ab",
"abcdefghijlmnopqrstu",
"abcdefghijklmnopstu"
}
new g_groupFlagsValue[MAX_GROUPS]
public plugin_init() {
register_plugin("Amx Who by eXtream", "1.0", "eXtreamCS.com")
register_concmd("amx_who", "cmdWho", WHOISX)
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, "Onesti Server Staff")
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, "Onesti Server Staff")
return PLUGIN_HANDLED
}
As dori daca stiti ca acest plugin sa abia urmatoarele chestii ...
1. Cand userii fara acces pe server scriu in consola amx_who sa le apara ca nu au acces la aceasta comanda
2. Doar adminii sa aiba acces la ea
Ma puteti ajuta?
0
0
Back to top
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
The time now is 13-08-2025, 21:02:42
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