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

[L4D2] Item Convert (Medicine and Ammo Pack) v1.7【deprecated】


Post New Thread Reply   
 
Thread Tools Display Modes
Author
little_froy
Senior Member
Join Date: May 2021
Plugin ID:
8308
Plugin Version:
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Unapprover:
    Reason for Unapproving:
    Author request
    Old 11-30-2022 , 04:19   [L4D2] Item Convert (Medicine and Ammo Pack) v1.7【deprecated】
    Reply With Quote #1

    (deprecated).

    Last edited by little_froy; 02-02-2023 at 06:14.
    little_froy is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 11-30-2022 , 05:45   Re: [L4D2] Convert Item In Hand(Medicinal and Ammo pack) v1.0.0【2022-11-30】
    Reply With Quote #2

    - You should use OnPlayerRunCmd or OnPlayerRunCmdPost instead of OnGameFrame for this.
    - I would even make this "static char" to avoid re-creating as it's used often.
    - "char class_name[PLATFORM_MAX_PATH]" this is for file path sizes, should probably set to [32] or [64] to be safe, although I don't think any classname is longer than 32.
    - Why "tabsize 0" and not replace all " " 4 spaces with tabs? You get a smaller file size, spaces just seem odd.
    - I'm guessing you got the idea from Switch Upgrade Packs Type by NoroHime, no credit?
    __________________

    Last edited by Silvers; 11-30-2022 at 05:47.
    Silvers is offline
    Reply


    Thread Tools
    Display Modes

    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 09:59.


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