SA-MP Forums Archive
Attaching Objects [HELP] - 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: Attaching Objects [HELP] (/showthread.php?tid=414710)



Attaching Objects [HELP] - Saw® - 10.02.2013

Hi , I want to attach an object to the player(SetPlayerAttachedObject) , but don't know the coordinations of the player body parts , any FS or program to do that ?


Re: Attaching Objects [HELP] - -=Dar[K]Lord=- - 10.02.2013

Yea samp has a attachable FS .. its attachments.pwn its included with 0.3x / 0.3e package of samp server


Re: Attaching Objects [HELP] - Saw® - 10.02.2013

I've seen it , but when trying to /attachements , I get a dialog , once I chose something , nothing appear ,other Idea? thank you for your repply .


Re: Attaching Objects [HELP] - theomanking - 10.02.2013

Try this!
pawn Код:
SetPlayerAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"), GetPVarInt(playerid, "AttachmentModelSel"), listitem+1);
                EditAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"));
                SendClientMessage(playerid, 0xFFFFFFFF, "Hint: Use {FFFF00}~k~~PED_SPRINT~{FFFFFF} to look around.");



Re: Attaching Objects [HELP] - Saw® - 11.02.2013

Quote:
Originally Posted by theomanking
Посмотреть сообщение
Try this!
pawn Код:
SetPlayerAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"), GetPVarInt(playerid, "AttachmentModelSel"), listitem+1);
                EditAttachedObject(playerid, GetPVarInt(playerid, "AttachmentIndexSel"));
                SendClientMessage(playerid, 0xFFFFFFFF, "Hint: Use {FFFF00}~k~~PED_SPRINT~{FFFFFF} to look around.");
Can you please explain more ? (UP)


Re: Attaching Objects [HELP] - Saw® - 12.02.2013

Well I tried it , I get the error:
Код:
C:\Documents and Settings\PC\Bureau\DATABASE DE ALAE\SND\ICI\SWAT Vs TERRORISTS Server[TDM]\gamemodes\SVTS.pwn(2182) : error 017: undefined symbol "listitem"
Well I even don't know how this code will help me ...