static const COLOR[] = "^x04"
static const CONTACT[] = "xxx"
new gmsgSayText
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) & VIPFLAGA && !(get_user_flags(id) & ADMINFLAGA))
get_user_name(id, adminnames[count++], 31)
}
}
len = format(message, 255, "%s VIP: ",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, "Zaden VIP nie jest online")
print_message(user, message)
}
get_cvar_string("sv_contact", contact, 63)
if(contact[0]) {
format(contactinfo, 111, "%s Kup VIP`a - GG: xxx %s", COLOR, contact)
print_message(user, contactinfo)
}
return PLUGIN_HANDLED;
}
print_message(id, msg[]) {
message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
Witam, chodzi mi o edycję tej funkcji, ażeby "Kup VIP`a - GG: xxx" i "Zaden VIP nie jest online" były wyświetlane za pomocą ColorChata Nie wiem jak to zrobić, pomysły? A i żeby nie były potrzebne COLOR i contact, ponieważ contact sobie sam wpisze (właściwie to nawet nie wiem po co ), a COLOR będzie z ColorChata
Z góry dzięki za wszelki odzew i pomoc Przyplusuję chętnym
Użytkownik stepdub edytował ten post 30.05.2011 16:43