Raised This Month: $ Target: $400
 0% 

admins online?!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 02-23-2013 , 15:44   admins online?!
Reply With Quote #1

This should work right? is something wrong?

Code:
public adminsonline() {
static id, count, msg[512], pos, name[32]
pos = 0
count = 0
pos += formatex(msg[pos], 511-pos, "admins online:")
for(id = 1 ; id <= maxplayers ; id++)
 if(is_user_connected(id) && (get_user_flags(id) & ADMIN_IMMUNITY))
 {
  count++
  get_user_name(id, name, 31)
  pos += formatex(msg[pos], 511-pos, "^n%s", name)
 }
 if (count>0)
 {
  ColorChat(id, GREEN, "^4[%s]^3 %d %s", prefix2, count, msg)
 }
 else
 {
  ColorChat(id, GREEN, "^4[%s]^3 0 Admins Online!", prefix2)
 }
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-24-2013 , 00:19   Re: admins online?!
Reply With Quote #2

Quote:
Originally Posted by ironskillz1 View Post
This should work right? is something wrong?
You should answer those question for yourself.
__________________
fysiks is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 02-24-2013 , 14:19   Re: admins online?!
Reply With Quote #3

Test the code ...
__________________
simanovich is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 02-24-2013 , 14:28   Re: admins online?!
Reply With Quote #4

Quote:
Originally Posted by simanovich View Post
Test the code ...
i have solved it
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode