SA-MP Forums Archive
[Tutorial] How to use SetPlayerAttachedObject [Beginners] - 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)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] How to use SetPlayerAttachedObject [Beginners] (/showthread.php?tid=281448)

Pages: 1 2 3


Re: How to use SetPlayerAttachedObject [Beginners] - Shockey HD - 07.09.2011

Very useful. Thanks!


Re: How to use SetPlayerAttachedObject [Beginners] - =WoR=G4M3Ov3r - 07.09.2011

Quote:
Originally Posted by Shockey HD
Посмотреть сообщение
Very useful. Thanks!
Thanks


Re: How to use SetPlayerAttachedObject [Beginners] - Davz*|*Criss - 09.09.2011

Well done Gameover, Good explained!


Re: How to use SetPlayerAttachedObject [Beginners] - =WoR=G4M3Ov3r - 09.09.2011

Quote:
Originally Posted by Davz*|*Criss
Посмотреть сообщение
Well done Gameover, Good explained!
Yep, thanks.


Re : How to use SetPlayerAttachedObject [Beginners] - Naruto_Emilio - 11.09.2011

Cool man i love this tutorial


Re: How to use SetPlayerAttachedObject [Beginners] - [NoV]LaZ - 11.09.2011

Your strcmp based command still has problems.


Re: How to use SetPlayerAttachedObject [Beginners] - =WoR=G4M3Ov3r - 12.09.2011

Quote:
Originally Posted by [NoV]LaZ
Посмотреть сообщение
Your strcmp based command still has problems.
Well, works fine for me.


Re: How to use SetPlayerAttachedObject [Beginners] - IstuntmanI - 12.09.2011

Nice tutorial ... :P


Re: How to use SetPlayerAttachedObject [Beginners] - [NoV]LaZ - 12.09.2011

Quote:
Originally Posted by G4M3Ov3r
Посмотреть сообщение
Well, works fine for me.
Now after you've edited it. It had a missing bracket, not good for newbies to learn from.


Re: How to use SetPlayerAttachedObject [Beginners] - =WoR=G4M3Ov3r - 13.09.2011

Quote:
Originally Posted by costel_nistor96
Посмотреть сообщение
Nice tutorial ... :P
Thanks

Quote:
Originally Posted by [NoV]LaZ
Посмотреть сообщение
Now after you've edited it. It had a missing bracket, not good for newbies to learn from.
No it doesn't, why don't you copy it and try using it in your .pwn and see for yourself.


Re : Re: How to use SetPlayerAttachedObject [Beginners] - Alvin007 - 13.09.2011

Quote:
Originally Posted by Kitten
Посмотреть сообщение
Nice tut , useful for newbies.
it's not usefull for newbies , he have'nt explaint anything , where the object will spawn ? how to set positions for all skins ? as their bones are'nt equal.


Re: How to use SetPlayerAttachedObject [Beginners] - HotPlayer - 13.09.2011

nice!


Re : Re: How to use SetPlayerAttachedObject [Beginners] - Alvin007 - 13.09.2011

Quote:
Originally Posted by Kitten
Посмотреть сообщение
Nice tut , useful for newbies.
it's not usefull for newbies , he have'nt explaint anything , where the object will spawn ? how to set positions for all skins ? as their bones are'nt equal.


Re: Re : Re: How to use SetPlayerAttachedObject [Beginners] - =WoR=G4M3Ov3r - 13.09.2011

Quote:
Originally Posted by Alvin007
Посмотреть сообщение
it's not usefull for newbies , he have'nt explaint anything , where the object will spawn ? how to set positions for all skins ? as their bones are'nt equal.
Read it again ^^, and don't post useless shit, without reading, skins has nothing to do, and i believe i said what Bones are.


Re : How to use SetPlayerAttachedObject [Beginners] - timaoux - 14.09.2011

i use it like

COMMAND:glass(playerid, params[])//glass red
{
new glass;
new Float:X, Float:Y, Float:Z;
new Float:rX, Float:rY, Float:rZ;
GetPlayerPos(playerid, X, Y, Z);
glass = CreateObject(19006, X, Y, Z, rX, rY, rZ, 60);
AttachObjectToPlayer(glass, playerid, 0.0, 0.0, 0.85, 0.0, 0.0, 90.0);
SetPlayerAttachedObject(playerid, 1, glass, 2);
return 1;
}
doesnt work

and if i use it like

COMMAND:glass(playerid, params[])//glass red
{
new glass;
new Float:X, Float:Y, Float:Z;
new Float:rX, Float:rY, Float:rZ;
GetPlayerPos(playerid, X, Y, Z);
glass = CreateObject(19006, X, Y, Z, rX, rY, rZ, 60);
SetPlayerAttachedObject(playerid, 1, glass, 2);
return 1;
}
doesnt work too


please help me

thx


Re : How to use SetPlayerAttachedObject [Beginners] - timaoux - 14.09.2011

i found, dont need reply for me ^^


Re: How to use SetPlayerAttachedObject [Beginners] - HotPlayer - 14.09.2011

Nice tut man!


Re: How to use SetPlayerAttachedObject [Beginners] - =WoR=G4M3Ov3r - 14.09.2011

Thanks.


Re : How to use SetPlayerAttachedObject [Beginners] - Naruto_Emilio - 16.09.2011

Love it :P


Re: How to use SetPlayerAttachedObject [Beginners] - Issam - 16.09.2011

Nicely done,il use it when il script holding objects
but PLEASE add this,so i wont have to look for WIKIPEDIA!!
Код:
-- This is from the SA-MP wikia.

0 - Not usable (will crash the client)

1 - Spine

2 - Head

3 - Left upper arm

4 - Right upper arm

5 - Left hand

6 - Right hand

7 - Left thigh

8 - Right thigh

9 - Left foot

10 - Right foot

11 - Right calf

12 - Left calf

13 - Left forearm

14 - Right forearm

15 - Left clavicle

16 - Right clavicle

17 - Neck

18 - Jaw