Raised This Month: $ Target: $400
 0% 

Optimize Code


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-24-2020 , 13:45   Re: Optimize Code
Reply With Quote #10

Well this was my original code, so i guess i fucked it up even more than trying to optimize it lol
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <csstats>
#include <fakemeta_util>
#include <hamsandwich>

#define PLUGIN "ShowSpecInfo"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
set_task(1.0"ShowSpecInfo", .flags "b");
}

public 
ShowSpecInfo()
{
    new 
iPlayers[32], iNumiSpecPlayerszName[33], iRankiMaxRankiStats[8], iBodyhits[8];
    
get_players(iPlayersiNum"bch");
    
    
iMaxRank get_statsnum();
    
    for(new 
iiNumi++)
    {
        
iSpecPlayer pev(iPlayers[i], pev_iuser2);
        
        
get_user_name(iSpecPlayerszNamecharsmax(szName));
            
        
iRank get_user_stats(iSpecPlayeriStatsiBodyhits);
            
        
set_hudmessage(180180180, -1.00.006.01.10.0,0.0, -1);
        
show_hudmessage(iPlayers[i], "Spectating [%s] | [Rank: %i / %i]"szNameiRankiMaxRank);
            
    }

__________________

Last edited by Napoleon_be; 01-25-2020 at 06:49.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
 



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 02:44.


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