SA-MP Forums Archive
[Help] Help with this code - 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: [Help] Help with this code (/showthread.php?tid=586444)



[Help] Help with this code - BigGreen - 22.08.2015

So i downloaded this Fs which is a holster script and there is 1 thing i need help fixing and it looks dumb having it like that like the spray can is near the NPC/Ped's own feet which i want it on the waist like it was acting like a mace for the LSPD i tried fixing it but it got more like its going into the shoes

Код:
case 41: if(GetPlayerWeapon(i) != 41) SetPlayerAttachedObject( i, 7, 365, 12, 0.174919, -0.004211, -0.142508, 0.000000, 270.000000, 0.000000, 1.000000, 1.000000, 1.000000 );



Re: [Help] Help with this code - Luke_James - 22.08.2015

Did you change the offset?


Re: [Help] Help with this code - BigGreen - 24.08.2015

Quote:
Originally Posted by Luke_James
Посмотреть сообщение
Did you change the offset?
The what?


Re: [Help] Help with this code - Lunoxel - 24.08.2015

Try this:
PHP код:
case 41: { if(GetPlayerWeapon(i) != 41) { SetPlayerAttachedObjecti7365120.174919, -0.004211, -0.1425080.000000270.0000000.0000001.0000001.0000001.000000 ); } } 



Re: [Help] Help with this code - Luke_James - 24.08.2015

Quote:
Originally Posted by BigGreen
Посмотреть сообщение
The what?
https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject