Witam, Mam taki problem, gdyż mam na serwerze plugin VIP, i gdy wpisze /vipy to wyskakują mi vipy online a jak nie ma vipów online to pisze że niema vipów i tekst "Kontakt z Adminem" chciałbym aby wyskoczyło samo nie ma vipów online, żeby nie wyskakiwało niżej "Kontakt z Adminem" KOD:
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;
}
Użytkownik Seryjny edytował ten post 02.02.2014 14:10


Dodatki SourceMod













