Help ammo refill

Posts 1–2 of 2 · Page 1 of 1
Help ammo refill
Hey there!

Does anybody know the gsc code for refilling ammo on the intervention?

I want to bind the key Z with the code.
Code:
AmmoRefill()
{
	self endon ( "disconnect" );
	wait 3; //Waits 3 seconds
	self notifyonplayercommand("Z", "+talk");
	self thread maps\mp\gametypes\_hud_message::hintMessage("^7Press ^5[{+talk}] ^1to receive ^8more Intervention ^4Ammo"); //Tells the player to press Z
	for(;;)
	{
		self waittill("Z"); //Waits until player presses Z
		{
        self setWeaponAmmoClip("cheytac_xxxxxxx", 48);
	self setWeaponAmmoStock("cheytac_xxxxxxxxx", 48);
		}
	
		}
	}
}
Look where the code says cheytac_xxxxxxx Change that to what intervention you have...mine is "cheytac_fmj_xmags_mp" but yours is probably different.

Test the code, i didnt so tell me if it works or not.

CHANGE THE NUMBER 48 IN THE CODE TO WHATEVER THE INTERVENTION MAX AMMO CLIP IS. LIKE WHEN YOU SPAWN. I CAN'T CHECK.
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us