View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 08-30-2011 , 16:42   Re: [CSS] 100 balles
Reply With Quote #7

Try this, I made quick.
So when you have loaded this plugin, it set all weapons clip size to 100.
It not now reset back normal until you remove plugin and reboot server.
(I was lazy, I made this quick)
Then set rest ammo using cvars what I posted earlier #4

*edit
Included ctx extension+gamedata, plugin source code and plugin.
credits to Swixel

*edit edit
Simple plugin, no configurations.

*UPDATE
Made cvar
Quote:
sm_clipsize_100_enable 0
// When enabled, change all weapons clip size 100
Now it reset clip size on all weapons, use cvar in map configs.

Added log action in SM logs everytime when clip size change, happens when cvar new value different than old value.For debugging if server start crash.
(It spam twice on maps with map config, because server.cfg reset cvar back and map config enabled it after. Ignored it)

Code:
L 09/07/2011 - 10:19:39: -------- Mapchange to de_dust --------
L 09/07/2011 - 10:19:39: [clipsize_100.smx] Changed sm_clipsize_100_enable 0
L 09/07/2011 - 10:19:39: [clipsize_100.smx] Changed sm_clipsize_100_enable 1
Attached Files
File Type: zip css_clipsize_100.zip (13.6 KB, 372 views)
__________________
Do not Private Message @me

Last edited by Bacardi; 09-07-2011 at 03:24.
Bacardi is offline