View Single Post
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