AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Infinite Ammo (https://forums.alliedmods.net/showthread.php?t=55381)

twistedeuphoria 05-20-2007 17:32

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.

sslice 05-20-2007 18:07

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

twistedeuphoria 05-20-2007 18:18

Re: [PLUGIN] Infinite Ammo
 
Updated to use FindSendPropOffs() thanks to teame06. :)

BAILOPAN 05-20-2007 18:35

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

twistedeuphoria 05-20-2007 18:51

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.

API 07-03-2007 03:28

Re: Infinite Ammo
 
Nice :]
Approved.

MoggieX 08-11-2007 17:57

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 =(

Shaman 08-12-2007 12:02

Re: Infinite Ammo
 
Code:

new zomg;
:D :D

Twelve-60 09-05-2007 12:18

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

atomen 09-09-2007 10:52

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.