Raised This Month: $ Target: $400
 0% 

/admin | who etc


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 09-05-2007 , 17:25   /admin | who etc
Reply With Quote #1

I modify the amx_who.sma to show in a hud not in console.
but the problem is when more admin connect is shown on not all
PHP Code:
#include <amxmod>
#include <amxmisc>

#define MAX_GROUPS 7

new g_groupNames[MAX_GROUPS][] = {
"Conqueror",
"High Guard Warrior",
"Mortal Figthers",
"Comandos",
"Delta Squad",
"The Undead",
"NightCrawlers"
}

new 
g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstuvwy",
"abcdefghijlmnopqrstuvw",
"abcdefghijlmnopqrstu",
"abcdefghijmnopqru",
"abcdefgijmnopu",
"abcdefijmu",
"ab"
}

new 
g_groupFlagsValue[MAX_GROUPS]

public 
plugin_init() {
    
register_plugin("Amx_who Hud","0.1","FireW@ll")
    
register_concmd("say who","who",0)
    
register_concmd("say admin","who",0)
    
register_concmd("say /admin","who",0)
    for(new 
0MAX_GROUPSi++) {
    
g_groupFlagsValue[i] = read_flags(g_groupFlags[i])
  }
}


public 
who(id){
    new 
players[32], inumplayername[32], ia
      get_players
(playersinum)
      for(
0MAX_GROUPSi++) {
    for(
0inum; ++a) {
     
player players[a]
     
get_user_name(playername31)
     if(
get_user_flags(player) == g_groupFlagsValue[i]) {
     
set_hudmessage(42255850.030.2906.06.0)
    
show_hudmessage(id,"..:: Admini Online ::..^n-=- %s -=-^n%s^n..:: Intrati pe site-ul oficial http://hl.darkstrike.ro ::..",g_groupNames[i],name)
              }
            }
    }
    return 
PLUGIN_HANDLED

Have a fix for this?
__________________


I hate Spammers....
vl@d is offline
 



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 16:06.


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