SA-MP Forums Archive
Bug OnPlayerWeaponShot - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Bug OnPlayerWeaponShot (/showthread.php?tid=496517)



Bug OnPlayerWeaponShot - DarkZeroX - 22.02.2014

Hi, I do this code but when I pull off it counts as if I pulled the bottle
Код:
	Bouteille[0] = CreateObject(2683, -3904.12231, 1688.94543, 3.49450,   0.00000, 0.00000, 0.00000);
	Bouteille[1] = CreateObject(2683, -3902.34326, 1687.01306, 3.50350,   0.00000, 0.00000, 0.00000);
	Bouteille[2] = CreateObject(2683, -3898.33032, 1688.29285, 3.48750,   0.00000, 0.00000, 0.00000);
	Bouteille[3] = CreateObject(2683, -3905.05713, 1688.24988, 3.49350,   0.00000, 0.00000, 0.00000);

       if(hittype == 3)
       {
	       if(hitid == Bouteille[0] || Bouteille[1] || Bouteille[2] || Bouteille[3])
	       {



Re: Bug OnPlayerWeaponShot - PT - 22.02.2014

pawn Код:
if(hitid == Bouteille[0] || hitid == Bouteille[1] || hitid == Bouteille[2] || hitid == Bouteille[3])



Re : Bug OnPlayerWeaponShot - DarkZeroX - 22.02.2014

Thank You + 5 rep