Raised This Month: $ Target: $400
 0% 

Zooming Plugin for HL2DM(or anyothers)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 04-24-2009 , 10:23   Re: Zooming Plugin for HL2DM(or anyothers)
Reply With Quote #2

Nice plugin but...
PHP Code:
public OnGameFrame()
{
    
decl MaxPlayer;
    
MaxPlayer GetMaxClients(); 
This part of the code is very bad for frequency because it is doing the same work on every frame. You can simply use MaxClients that is supported since sm 1.1.0:
PHP Code:
public OnGameFrame()
{
    for(new 
Client 1Client <= MaxClientsClient++)
    {
        
// some stuff
    
}

__________________
For admins: My plugins

For developers: Colors library

Last edited by exvel; 04-24-2009 at 13:15.
exvel is offline
Send a message via ICQ to exvel
 



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:46.


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