Raised This Month: $ Target: $400
 0% 

Server preformance monitor


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
morfin
Junior Member
Join Date: Feb 2009
Old 10-20-2009 , 18:47   Re: Server preformance monitor
Reply With Quote #24

Quote:
Originally Posted by DaSilva View Post
Plugin has many bugs.
For example it shows the wrong number on players on the server...
That's average players number, not current ).
P.S I've fixed some code for say /showstats, that is my cmd_ShowStats function:
PHP Code:
public cmd_ShowStats(id,level,cid)
{
    if(!
cmd_access (id,level,cid,2)) return PLUGIN_HANDLED
    
    
new arg[16]
    
read_argv(1,arg,15)     
    if(
containi(arg,"/showstats")!=-1// A simple fix if the function was triggered via say
    
{
    if (
g_ShowStats[id]==1
    {
      
g_ShowStats[id] = 0
      g_ShowStats
[0]--  
      
client_print(id,3,"[AMXX]Stats showing is now disabled")     
    }
    else
    {
      
g_ShowStats[id] = 1
          g_ShowStats
[0]++
          
client_print(id,3,"[AMXX]Stats showing is now enabled")  
    }
   return 
PLUGIN_HANDLED
  
}
    
    if(
containi(arg,"on")!=-|| containi(arg,"1")!=-1)
    {
        
g_ShowStats[id] = 1
        g_ShowStats
[0]++
        
client_print(id,3,"[AMXX]Stats showing is now enabled")
    }
    if(
containi(arg,"off")!=-|| containi(arg,"0")!=-1)
    {
        
g_ShowStats[id] = 0
        g_ShowStats
[0]--
        
client_print(id,3,"[AMXX]Stats showing is now disabled")
    }
    return 
PLUGIN_HANDLED

morfin 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 10:55.


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