}
public ShowMotd(id)
{
show_motd(id, "vip.txt")
}
public handle_say(id) {
new said[192]
read_args(said,192)
if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/vips") != -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_LEVEL_H && !(get_user_flags(id) & ADMIN_IMMUNITY))
get_user_name(id, adminnames[count++], 31)
}
}
len = format(message, 255, "%s VIP'y Dostepne: ",COLOR)
if(count > 0)
{
for(x = 0 ; x < count ; x++)
{
len += format(message[len], 255-len, "%s%s%s ", COLOR, adminnames[x], x < (count-1) ? "^x01, ":"")
if(len > 96 ) {
print_message(user, message)
len = format(message, 255, "%s ",COLOR)
}
}
print_message(user, message)
}
else {
len += format(message[len], 255-len, "Brak Vip'ow")
print_message(user, message)
}
get_cvar_string("sv_contact", contact, 63)
if(contact[0]) {
format(contactinfo, 111, "%s Kontakt z Adminem -- %s", COLOR, contact)
print_message(user, contactinfo)
}
return PLUGIN_HANDLED;
}
Dodać do innego pluginu z VIP bo mam plugin VIP pod CoD'a nowego jest przerobiony lecz nie mogę dodać tego mam ciągle błędy , i tutaj jest pytanie czy ktoś może mi to jakoś przerobić żeby to było w osobnym pluginie lub w moim pliku z VIP (który daje w załączniku)
a ten kawałek pluginu mam z tego 2 załącznika też VIP'ka i jak to poskładam to mam błąd może czegoś nie wklejam co jest na miejscu i dlatego proszę was o pomoc


Dodatki SourceMod



Temat jest zamknięty
Mój VIP.amxx












