#library "admin"
#include "zcommon.acs"

//===============================================
// MAIN ADMIN SCRIPT
//===============================================
script 575 (int command)
{
	switch (command)
	{
		//--GIVE $5000-----------------------------------
		case 0:
		SetFont("BIGFONT");
		PrintBold(s:"\cDThe server host has given all players $5000!");
		SetFont("SMALLFONT");
		for (int p = 0; p < PlayerCount(); p++)
		{
			if (PlayerInGame(p))
			{
				GiveActorInventory(1000 + p, "Money", 5000);
			}
		}
		break;
		
		//--GIVE AMMOS-----------------------------------
		case 1:
		SetFont("BIGFONT");
		PrintBold(s:"\cDThe server host has given all players 5 backpacks!");
		SetFont("SMALLFONT");
		for (int q = 0; q < PlayerCount(); q++)
		{
			if (PlayerInGame(q))
			{
				GiveActorInventory(1000 + q, "Backpack", 5);
			}
		}
		break;
	}
}

script 576 (void)
{
	int playername;
	
	Print(s:"You gave money to the player you're aiming at.");
	TakeInventory("Money",100);
	SetActivatorToTarget(0);
	Print(s:"You were given money.");
	GiveInventory("Money",100);
}