Raised This Month: $ Target: $400
 0% 

Unlimited ammo plugins , but not nades


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
cccpsmiley
Senior Member
Join Date: Mar 2006
Location: Los Angeles, CA
Old 05-25-2006 , 05:13   Unlimited ammo plugins , but not nades
Reply With Quote #1

i run a dod server and i wanted this but with no unlimited nades.

would it work if i took out
Code:
dod_set_user_ammo ( player,DODW_HANDGRENADE,251)
		dod_set_user_ammo ( player,DODW_STICKGRENADE,251)
		dod_set_user_ammo ( player,DODW_STICKGRENADE_EX,251)
		dod_set_user_ammo ( player,DODW_HANDGRENADE_EX,251)
	}
this is what it actually looks like :

Code:
public refresh_ammo_dod()
{
	new Players[32]
	new playerCount, i, player
	get_players(Players, playerCount, "a")
	for (i=0; i<playerCount; i++)
	{
		player = Players[i]
		if(AmmoMaster[player])
		{
		new l_weapon, l_dud
		l_weapon = dod_get_user_weapon(player,l_dud,l_dud)
		if(l_weapon > 2)
			dod_set_user_ammo ( player,l_weapon,251)
		}
		dod_set_user_ammo ( player,DODW_HANDGRENADE,251)
		dod_set_user_ammo ( player,DODW_STICKGRENADE,251)
		dod_set_user_ammo ( player,DODW_STICKGRENADE_EX,251)
		dod_set_user_ammo ( player,DODW_HANDGRENADE_EX,251)
	}
Attached Files
File Type: sma Get Plugin or Get Source (sea_uammo.sma - 666 views - 13.2 KB)
cccpsmiley is offline
Send a message via AIM to cccpsmiley
 



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 16:26.


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