Raised This Month: $51 Target: $400
 12% 

Zooming Plugin for HL2DM(or anyothers)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
nargis
Junior Member
Join Date: Aug 2008
Plugin ID:
836
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 04-24-2009 , 03:41   Zooming Plugin for HL2DM(or anyothers)
    Reply With Quote #1

    Zooming Plugin for HL2DM




    Attack2 (ex. press mouse right button) -> Zooming view

    My English is bad ^^;;


    Author : Nargis
    Steam ID : nalsis_v


    Thx for using my plugin ^^
    Attached Files
    File Type: smx Zoom.smx (3.1 KB, 422 views)
    File Type: sp Get Plugin or Get Source (Zoom.sp - 1307 views - 1.8 KB)
    nargis is offline
    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
    SAMURAI16
    BANNED
    Join Date: Sep 2006
    Old 05-16-2009 , 01:57   Re: Zooming Plugin for HL2DM(or anyothers)
    Reply With Quote #3

    use MaxClients variable predefined in SM Core
    SAMURAI16 is offline
    Send a message via MSN to SAMURAI16
    nargis
    Junior Member
    Join Date: Aug 2008
    Old 05-17-2009 , 11:33   Re: Zooming Plugin for HL2DM(or anyothers)
    Reply With Quote #4

    Thanks for your advice
    lol
    nargis is offline
    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 12:49.


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