RemovePlayerWeapon
#5

Quote:
Originally Posted by HeGe
I found this in Useful Functions topic...

Код:
stock RemovePlayerWeapon(playerid, weaponid)
{
	new plyWeapons[12]
	new plyAmmo[12]

	for(new slot = 0; slot != 12; slot++)
	{
		new wep, ammo
		GetPlayerWeaponData(playerid, slot, wep, ammo)
		
		if(wep != weaponid)
		{
			GetPlayerWeaponData(playerid, slot, plyWeapons[slot], plyAmmo[slot])
		}
	}
	
	ResetPlayerWeapons(playerid)
	for(new slot = 0; slot != 12; slot++)
	{
		GivePlayerWeapon(playerid, plyWeapons[slot], plyAmmo[slot])
	}
}
do i just put that at the bottem of the script?
Reply


Messages In This Thread
RemovePlayerWeapon - by abineri - 21.03.2010, 13:29
Re: RemovePlayerWeapon - by Jeffry - 21.03.2010, 13:36
Re: RemovePlayerWeapon - by abineri - 21.03.2010, 13:38
Re: RemovePlayerWeapon - by leapfish - 21.03.2010, 13:41
Re: RemovePlayerWeapon - by abineri - 21.03.2010, 13:42
Re: RemovePlayerWeapon - by abineri - 21.03.2010, 13:49
Re: RemovePlayerWeapon - by leapfish - 21.03.2010, 13:59
Re: RemovePlayerWeapon - by abineri - 21.03.2010, 14:03
Re: RemovePlayerWeapon - by leapfish - 21.03.2010, 14:07
Re: RemovePlayerWeapon - by abineri - 21.03.2010, 14:08

Forum Jump:


Users browsing this thread: 1 Guest(s)