Weapon Slots
#9

Quote:
Originally Posted by Flori
Посмотреть сообщение
Save the ammo he has when pressing n then reset his weapons, and then give the loaded new weapons.
F*** i am really cant find the way to do this : i have pickup in police office witch gives u guns :

Код:
	if(pickupid == PolicijosAmmo)
		{
		    if(PlayerInfo[playerid][GinkluLicenzija] == 1)
		    {
			    if(PlayerInfo[playerid][JobID] == 1)
			    {
			        if(PlayerInfo[playerid][JobLevel] == 0)
			        {
	                    GivePlayerWeapon(playerid,23,1);// taizeris (reik padaryt)
	                    GivePlayerWeapon(playerid,3,1);// bananas
					}
					else if(PlayerInfo[playerid][JobLevel] == 1 || PlayerInfo[playerid][JobLevel] == 2)
					{
					    GivePlayerWeapon(playerid,PlayerInfo[playerid][Gun3] = 22,PlayerInfo[playerid][Ammo3] = 250); // 9mm pistol
	                    GivePlayerWeapon(playerid,PlayerInfo[playerid][Gun2] = 23,PlayerInfo[playerid][Ammo2] = 200);// taizeris (reik padaryt)
	                    GivePlayerWeapon(playerid,PlayerInfo[playerid][Gun1] = 3,PlayerInfo[playerid][Ammo1] = 1);// bananas
					}
					else if(PlayerInfo[playerid][JobLevel] == 3 || PlayerInfo[playerid][JobLevel] == 4)
					{
					    GivePlayerWeapon(playerid,24,200); //Desert deagle
	                    GivePlayerWeapon(playerid,23,1);// taizeris (reik padaryt)
	                    GivePlayerWeapon(playerid,3,1);// bananas
					}
					else if(PlayerInfo[playerid][JobLevel] == 5)
					{
					    GivePlayerWeapon(playerid,29,450); //mp5
	                    GivePlayerWeapon(playerid,24,200); //Desert deagle
	                    GivePlayerWeapon(playerid,23,1);// taizeris (reik padaryt)
	                    GivePlayerWeapon(playerid,3,1);// bananas
					}
					else if(PlayerInfo[playerid][JobLevel] == 6 || PlayerInfo[playerid][JobLevel] == 7)
					{
	                    GivePlayerWeapon(playerid,25,200);//shotgun
	                    GivePlayerWeapon(playerid,29,450); //mp5
	                    GivePlayerWeapon(playerid,24,200); //Desert deagle
	                    GivePlayerWeapon(playerid,23,1);// taizeris (reik padaryt)
	                    GivePlayerWeapon(playerid,3,1);// bananas
					}
			    }
			    else
			    {
	                GameTextForPlayer(playerid,"~r~Giklai tik policijai",3000,3);
				}
			}
			else
			{
		    GameTextForPlayer(playerid,"~r~Neturi ginklo licenzijos",3000,3);
			}
		}
not sure i should update my db those web ids and then load again some ware , cuz now all the way i do i get bugged and cant hold 2 pistols at ones , and after i put them into my database i sould load them again and then by presing num6 save and load those values again ? confused
Reply


Messages In This Thread
Weapon Slots - by cyberlord - 25.12.2014, 11:43
Re: Weapon Slots - by Ryz - 25.12.2014, 11:52
AW: Weapon Slots - by Flori - 25.12.2014, 11:58
Re: AW: Weapon Slots - by cyberlord - 25.12.2014, 12:09
Re: Weapon Slots - by cyberlord - 25.12.2014, 14:13
AW: Weapon Slots - by Flori - 25.12.2014, 14:29
Re: AW: Weapon Slots - by cyberlord - 25.12.2014, 14:40
AW: Weapon Slots - by Flori - 25.12.2014, 15:13
Re: AW: Weapon Slots - by cyberlord - 25.12.2014, 15:28
Re: AW: Weapon Slots - by cyberlord - 25.12.2014, 15:48

Forum Jump:


Users browsing this thread: 1 Guest(s)