Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Weapon Drops/Keeping the Weapon
Re: Weapon Drops/Keeping the Weapon [message #363099 is a reply to message #361001] Sun, 14 December 2008 01:22 Go to previous messageGo to previous message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma:
General (3 Stars)
Bump

This part of the code keeps crashing the server when a player dies does anyone know why.



	GameObject *player = Get_GameObj(Get_Int_Parameter("ID"));

	if (Has_Weapon(player,"Weapon_AutoRifle_Player"))
		this->miniGunGdi = true;
	else
		this->miniGunGdi = false;
	if (Has_Weapon(player,"Weapon_AutoRifle_Player_Nod"))
		this->miniGunNod = true;
	else
		this->miniGunNod = false;
	if (Has_Weapon(player,"Weapon_Chaingun_Player"))
		this->chainGunGdi = true;
	else
		this->chainGunGdi = false;
	if (Has_Weapon(player,"Weapon_Chaingun_Player_Nod"))
		this->chainGunNod = true;
	else
		this->chainGunNod = false;
	if (Has_Weapon(player,"Weapon_ChemSprayer_Player"))
		this->chemSprayer = true;
	else
		this->chemSprayer = false;
	if (Has_Weapon(player,"CNC_Weapon_Flamethrower_Player"))
		this->flameThrower = true;
	else
		this->flameThrower = false;
	if (Has_Weapon(player,"Weapon_GrenadeLauncher_Player"))
		this->grenadeLauncher = true;
	else
		this->grenadeLauncher = false;
	if (Has_Weapon(player,"Weapon_LaserChaingun_Player"))
		this->laserChainGun = true;
	else
		this->laserChainGun = false;
	if (Has_Weapon(player,"Weapon_LaserRifle_Player"))
		this->laserRifle = true;
	else
		this->laserRifle = false;
	if (Has_Weapon(player,"Weapon_MineProximity_Player"))
		this->mineProxy = true;
	else
		this->mineProxy = false;
	if (Has_Weapon(player,"Weapon_PersonalIonCannon_Player"))
		this->persIonCannon = true;
	else
		this->persIonCannon = false;
	if (Has_Weapon(player,"Weapon_Railgun_Player"))
		this->railGun = true;
	else
		this->railGun = false;
	if (Has_Weapon(player,"Weapon_RamjetRifle_Player") || Has_Weapon(player,"CnC_Weapon_RamjetRifle_Player"))
		this->ramjet = true;
	else
		this->ramjet = false;
	if (Has_Weapon(player,"Weapon_RepairGun_Player") || Has_Weapon(player,"CnC_Weapon_RepairGun_Player_Special"))
		this->repairGun = true;
	else
		this->repairGun = false;
	if (Has_Weapon(player,"Weapon_RocketLauncher_Player"))
		this->rocketLauncher = true;
	else
		this->rocketLauncher = false;
	if (Has_Weapon(player,"CnC_Weapon_RocketLauncher_Player"))
		this->rocketGunner = true;
	else
		this->rocketGunner = false;
	if (Has_Weapon(player,"Weapon_Shotgun_Player"))
		this->shotGun = true;
	else
		this->shotGun = false;
	if (Has_Weapon(player,"Weapon_SniperRifle_Player"))
		this->sniperRifle = true;
	else
		this->sniperRifle = false;
	if (Has_Weapon(player,"Weapon_TiberiumAutoRifle_Player"))
		this->tibAutoRifle = true;
	else
		this->tibAutoRifle = false;
	if (Has_Weapon(player,"Weapon_TiberiumFlechetteGun_Player"))
		this->flechetteGun = true;
	else
		this->flechetteGun = false;
	if (Has_Weapon(player,"Weapon_VoltAutoRifle_Player"))
		this->voltAutoRifleGdi = true;
	else
		this->voltAutoRifleGdi = false;
	if (Has_Weapon(player,"Weapon_VoltAutoRifle_Player_Nod"))
		this->voltAutoRifleNod = true;
	else
		this->voltAutoRifleNod = false;
}


http://s18.postimage.org/jc6qbn4k9/bricks3.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to animate a flag?
Next Topic: Help installing LUA 5?
Goto Forum:
  


Current Time: Sun Dec 22 00:33:53 MST 2024

Total time taken to generate the page: 0.01895 seconds