#library "CrashScripts.acs"
#include "zcommon.acs"
#import "CustomFunctions.acs"
#import "PickupScripts.acs"


Script "CrashClass_PickupSystem" (void)
{ 
   
   int plr = PlayerNumber();
   
   GiveInventory("PickupBlend", 1);
   PlaySound(0, "DSWPNUP", 4);
   
     switch(weaponnumbersave[plr])
  {
   case 1: GiveInventory("CrashRepairTool", 1); print(s:"\cfA Repair Taser Tool!  Use what you can!"); SetInventory("HasChainsaw", 1); break;
   case 2: GiveInventory("CrashShotgun", 1); print(s:"\cfA heavy shotgun! Man's best exterminator!"); giveInventory("HasShotgun", 1); break;
   case 3: GiveInventory("CrashSuperShotgun", 1); print(s:"\cfA 4-Gauge! Double-trouble!"); giveInventory("HasSuperShotgun", 1); break;
   case 4: GiveInventory("CrashGatlingGun", 1); print(s:"\cfA Portable Gatling! Spray n' pray!"); giveInventory("HasChaingun", 1); break;
   case 5: GiveInventory("CrashRLauncher", 1); print(s:"\cfYou got The Rouge! Ahh I love the smell of napalm!"); giveInventory("HasRocketLauncher", 1); break;
   case 6: GiveInventory("CrashPlasmaRifle", 1); print(s:"\cfYou got the Plasma 'Heartless' Gun! The name will say my feeling!"); giveInventory("HasPlasmaRifle", 1); break;
   case 7: GiveInventory("CrashBFG9000", 1); print(s:"\cfYouve got the UAC Bio Force Gun! Vaporize them!"); giveInventory("HasBFG9000", 1); break;
   }
   
}

Script "CrashClass_PistolStart" (void)
{
	TakeInventory("CrashGatlingGun", 1);
	TakeInventory("CrashShotgun", 1);
	TakeInventory("CrashSuperShotgun", 1);
	TakeInventory("CrashRepairTool", 1);
	TakeInventory("CrashRLauncher", 1);
	TakeInventory("CrashPlasmaRifle",1);
	TakeInventory("CrashBFG9000",1);
}