Infinite Ammo
9 Attachment(s)
Infinite Ammo, pretty simple concept.
Cvar: sm_iammo_enable <0|1|2> - 0 = disable infinite ammo; 1 = allow infinite ammo with the command; 2 = automatically give everyone infinite ammo Command: REQUIRES Admin Kick - sm_iammo <user id | name | @<team> | @all> <0 | 1> - Gives or removes infinite ammo from a player. Setting the enable cvar to 2 will give everyone in the server infinite ammo and setting it from 2 to any other valid value will remove infinite ammo from everyone. Note: When removing infinite ammo, no attempt is made to set the player(s)' clip to the right size, so it will start from 50 and go down normally from there. Note 2 (TF2 Specific): Flamethrower still runs out of ammo eventually. The blu team is targetted using @blue instead of @blu - blame pred. |
Re: [PLUGIN] Infinite Ammo
Those types of offsets can be found dynamically using FindSendPropOffs().
Other than that and maybe looping through all of that OnGameFrame.. it looks good. :D |
Re: [PLUGIN] Infinite Ammo
Updated to use FindSendPropOffs() thanks to teame06. :)
|
Re: [PLUGIN] Infinite Ammo
sup twisty!
one suggestion - use i=1; i<=maxplayers instead of i=0; i<33 CS:S has a max player count of 64 |
Re: [PLUGIN] Infinite Ammo
More updates:
Changed it so the plugin does nothing if more than one client matches the name given. Fixed the Unknown command message. |
Re: Infinite Ammo
Nice :]
Approved. |
Re: Infinite Ammo
Just tested this under Linux, in chat '!sm_iammo mogg 1' and it killed my CS:Source game, the rest of the other players were un-effected.
Checked the logs and there was no re4cord of anything for this plugin =( |
Re: Infinite Ammo
Code:
new zomg; |
Re: Infinite Ammo
I just quickly edited this to make it always give everyone unlimited ammo rather then having to type in the command (Great for deathmatch servers :D)
http://twelve-60.ampaste.net/93287 - Twelve-60 |
Re: Infinite Ammo
Twisted ,
Do you think u can remake ur plugins so people don't need to reload an have unlimited ammo :D Please ! // If some1 knows a plugins like that please tell me |
All times are GMT -4. The time now is 10:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.