Raised This Month: $ Target: $400
 0% 

[CS:S] Taser


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Predator01337
Junior Member
Join Date: Feb 2012
Plugin ID:
2934
Plugin Version:
1.0.2
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    It turns a weapon into a Taser.
    Old 04-29-2012 , 16:03   [CS:S] Taser
    Reply With Quote #1

    I created this Plugin for my community.

    The idea is not from me.

    I never found the original Plugin so i made again.

    This Plugin is created for jail-server.

    It makes a taser from a weapon.

    Cvars:
    Spoiler


    Known Bugs:
    Spoiler


    Changelog:
    Spoiler


    To Do:
    Spoiler

    Last edited by Predator01337; 06-04-2015 at 22:17.
    Predator01337 is offline
    Impact123
    Veteran Member
    Join Date: Oct 2011
    Location: Germany
    Old 04-30-2012 , 05:57   Re: [CS:S] Taser
    Reply With Quote #2

    You code is a mess to me, so i didn't read it completely.
    What i don't understand is this:

    PHP Code:
    public GetTaseTime()
    {
        
    decl String:buffer[128];
     
        
    GetConVarString(g_hTaseTimebuffersizeof(buffer));
     
        return 
    StringToFloat(buffer);

    First, you don't need a public tag in that function.
    Second, your convar is an float, why are you making it so complicated?

    Also you should optimize your OnGameFrame function.
    Creating a new String x times per second is really nothing you should do.

    Yours sincerely
    Impact
    __________________

    Last edited by Impact123; 04-30-2012 at 05:59.
    Impact123 is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 04-30-2012 , 06:20   Re: [CS:S] Taser
    Reply With Quote #3

    OnGameFrame() + loops, which is a scary thought...
    I wish people stop using OnGameFrame() if it is not necessary.

    Use god dam timer repeating every 1 second!
    Bacardi 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 16:12.


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