Posts: 75
Threads: 7
Joined: Dec 2014
Reputation:
0
Posts: 47
Threads: 1
Joined: Feb 2012
Reputation:
0
Posts: 77
Threads: 2
Joined: Sep 2012
Reputation:
0
Bence bu işini görür
editleme tamamen bana aittir.
[/HR]
Code:
#include <amxmodx>
/*---------------EDIT ME------------------*/
#define ADMIN_CHECK ADMIN_KICK
static const COLOR[] = "^x04" //green
static const CONTACT[] = ""
/*----------------------------------------*/
new maxplayers
new gmsgSayText
public plugin_init() {
register_plugin("Admin Check", "1.5", "OneEyed")
maxplayers = get_maxplayers()
gmsgSayText = get_user_msgid("SayText")
register_clcmd("say", "handle_say")
register_cvar("sv_contact", CONTACT, FCVAR_SERVER)
}
public handle_say(id) {
new said[192]
read_args(said,192)
if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/admin") != -1 )
set_task(0.1,"print_adminlist",id)
return PLUGIN_CONTINUE
}
public print_adminlist(user)
{
new adminnames[33][32]
new message[256]
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 Oyundaki Adminler : ",COLOR)
if(count > 0) {
for(x = 0 ; x < count ; x++) {
len += format(message, 255-len, "^3%s%s ", adminnames, x < (count-1) ? ", ":"")
if(len > 96 ) {
print_message(user, message)
len = format(message, 255, "%s ",COLOR)
}
}
print_message(user, message)
}
else {
len += format(message, 255-len, "^3Oyunda Admin Bulunmamaktadir.")
print_message(user, message)
}
get_cvar_string("sv_contact", contact, 63)
if(contact[0]) {
format(contactinfo, 111, "%s Server Yetkilisi ~ : ^3%s", COLOR, contact)
print_message(user, contactinfo)
}
}
print_message(id, msg[]) {
message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
stock chat_color(const id, const input[], any:...) {
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!t", "^3")
replace_all(msg, 190, "!team2", "^0")
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players)
write_byte(players);
write_string(msg);
message_end();
}
}
}
}
Attached Files
9Vrsb8.png (Size: 10.54 KB / Downloads: 155)
WVpyaP.png (Size: 12.53 KB / Downloads: 148)
Posts: 77
Threads: 2
Joined: Sep 2012
Reputation:
0
Arkadaşlar bu atacağım biraz daha iyi bunu tercih edebilirsiniz.
BÜTÜN EDİTLEME TAMAMEN BANA AİTTİR.
[/HR]
Say Komutları ;
- /admin
[/HR]
Cvar Ayarları ;
amx_cvar sv_contact [email protected]
[/HR]
Resimler ;
T deyken ;
CT deyken ;
[/HR]
Tabiki smayı kendi reklamınıza göre editleyebilirsiniz.
Arkadaş öyle gösterdiği için [MGA] yaptım kendiniz değiştirebilirisiniz.
Eğer AMXX e çeviremesseniz konuya mesaj atabilirsiniz.
[/HR]
SMA ;
Code:
#include <amxmodx>
/*---------------EDIT ME------------------*/
#define ADMIN_CHECK ADMIN_KICK
static const COLOR[] = "^x04" //green
static const CONTACT[] = ""
/*----------------------------------------*/
new maxplayers
new gmsgSayText
public plugin_init() {
register_plugin("Admin Check", "1.8", "One Eyed ~ [Edit_pandora158]")
maxplayers = get_maxplayers()
gmsgSayText = get_user_msgid("SayText")
register_clcmd("say", "handle_say")
register_cvar("sv_contact", CONTACT, FCVAR_SERVER)
}
public handle_say(id) {
new said[192]
read_args(said,192)
if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/admin") != -1 )
set_task(0.1,"print_adminlist",id)
return PLUGIN_CONTINUE
}
public print_adminlist(user)
{
new adminnames[33][32]
new message[256]
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, "^1%s Oyundaki Adminler : ",COLOR)
if(count > 0) {
for(x = 0 ; x < count ; x++) {
len += format(message, 255-len, "^3%s%s ", adminnames, x < (count-1) ? ", ":"")
if(len > 96 ) {
print_message(user, message)
len = format(message, 255, "%s ",COLOR)
}
}
print_message(user, message)
}
else {
len += format(message, 255-len, "^3Oyunda Admin Bulunmamaktadir.")
print_message(user, message)
}
get_cvar_string("sv_contact", contact, 63)
if(contact[0]) {
format(contactinfo, 111, "%sServer Yetkilisi ~ : ^3%s", COLOR, contact)
print_message(user, contactinfo)
}
}
print_message(id, msg[]) {
message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
stock chat_color(const id, const input[], any:...) {
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!t", "^3")
replace_all(msg, 190, "!team2", "^0")
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players)
write_byte(players);
write_string(msg);
message_end();
}
}
}
}
Posts: 77
Threads: 2
Joined: Sep 2012
Reputation:
0
yorumlarınızı bekliyorum.
Posts: 202
Threads: 3
Joined: Mar 2014
Reputation:
0
aga bişey sorcam ben yapıyorum güzelde amxxde çevirip servere yüklüyorum oyunda /admin yapıyorum sadece oyundaki adminler gözüküyor server yetkilisi altında yazmıyor sebeb.
Posts: 77
Threads: 2
Joined: Sep 2012
Reputation:
0
amx_cvar sv_contact [email protected]
eğer istersen özel ayarlara yaz sürekli kendi açık kalır.
- - - - - - - - - -
amx_cvar sv_contact [email protected]
bunu konsola yaz eğer sürekli çıkmasını istiyorsan özel ayarlara yaz bu kodu.
Posts: 202
Threads: 3
Joined: Mar 2014
Reputation:
0
tmm denicem saol amxx.cfg yazarsak sabit kalması gerek heralde.
Posts: 77
Threads: 2
Joined: Sep 2012
Reputation:
0
özel ayar dediğim amxx.cfg oluyor.
Posts: 77
Threads: 2
Joined: Sep 2012
Reputation:
0
@
adiosamigo
isteğini gerçekleştirildi.