03-08-2026, 08:45 AM
(05-15-2016, 10:08 AM)Esk-Llapi Wrote: hej a mun nja kush me ma gjet 1plugins p.sh kur te shkrun nja player /admin me ja qit sa admina jon ne Serve online si ne KPS qe osht ?
Plugin qe ti po kerkon esht :Admin Check
Ja ku e ke .Sma
Code:
#include <amxmodx>
new const PLUGIN[] = "AMX Super"
new const VERSION[] = "4.2"
new const AUTHOR[] = "Bmann_420"
#define ADMIN_CHECK ADMIN_KICK
static const COLOR[] = "^x04"
new admincheck, sv_contact, maxplayers, gmsgSayText
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /admins", "show_admins")
register_clcmd("say /admin", "show_admins")
admincheck = register_cvar("amx_admin_check", "1")
maxplayers = get_maxplayers()
gmsgSayText = get_user_msgid("SayText")
}
public plugin_cfg()
sv_contact = get_cvar_pointer("sv_contact")
public show_admins(user)
{
new message[256]
if(get_pcvar_num(admincheck))
{
new adminnames[33][32]
new contactinfo[256], contact[112]
new id, count, x, len
for(id = 1 ; id <= maxplayers ; id++)
if(is_user_connected(id))
if(get_user_flags(id) & ADMIN_CHECK)
get_user_name(id, adminnames[count++], 31)
len = format(message, 255, "%s ADMINS ONLINE: ",COLOR)
if(count > 0) {
for(x = 0 ; x < count ; x++) {
len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
if(len > 96 ) {
print_message(user, message)
len = format(message, 255, "%s ",COLOR)
}
}
print_message(user, message)
}
else {
len += format(message[len], 255-len, "No admins online.")
print_message(user, message)
}
get_pcvar_string(sv_contact, contact, 63)
if(contact[0]) {
format(contactinfo, 111, "%s Contact Server Admin -- %s", COLOR, contact)
print_message(user, contactinfo)
}
}
else
{
formatex(message, 255, "^x04 Admin Check is currently DISABLED.")
print_message(user, message)
}
}
print_message(id, msg[]) {
message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}Dhe ja ku e ke .amxx
PHP Code:
https://www.sendspace.com/file/kq9lws


![[Image: 1iWaOBA.gif]](http://i.imgur.com/1iWaOBA.gif)
