AttachDynamicObjectToPlayer Not working ? :O - 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: AttachDynamicObjectToPlayer Not working ? :O (
/showthread.php?tid=654552)
AttachDynamicObjectToPlayer Not working ? :O -
WildWave - 31.05.2018
The Dynamic Object are created, but when i use AttachDynamicObjectToPlayer , its not attached..
CODE:
petObject[playerid] = CreateDynamicObject(1603 , pos[0], pos[1], pos[2], 0, 0, 0);
AttachDynamicObjectToPlayer(petObject[playerid],playerid,2.0,0.0, 0.0,0,0,1);
Re: AttachDynamicObjectToPlayer Not working ? :O -
DeathCore - 31.05.2018
Quote:
Originally Posted by WildWave
The Dynamic Object are created, but when i use AttachDynamicObjectToPlayer , its not attached..
CODE:
petObject[playerid] = CreateDynamicObject(1603 , pos[0], pos[1], pos[2], 0, 0, 0);
AttachDynamicObjectToPlayer(petObject[playerid],playerid,2.0,0.0, 0.0,0,0,1);
|
I think you should use 'CreatePlayerDynamicObject' for this situation.
Re: AttachDynamicObjectToPlayer Not working ? :O -
Pottus - 31.05.2018
Quote:
Originally Posted by DeathCore
I think you should use 'CreatePlayerDynamicObject' for this situation.
|
Do you even know what you are talking about?
https://github.com/samp-incognito/sa...tives-(Objects)
Код:
AttachDynamicObjectToPlayer(objectid, playerid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz)
This requires kurta999's YSF plugin to be loaded.
Re: AttachDynamicObjectToPlayer Not working ? :O -
WildWave - 01.06.2018
Quote:
Originally Posted by Pottus
Do you even know what you are talking about?
https://github.com/samp-incognito/sa...tives-(Objects)
Код:
AttachDynamicObjectToPlayer(objectid, playerid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz)
This requires kurta999's YSF plugin to be loaded.
|
Found the problem ! , in the server config, the plugin YSF was before streamer and that cause the problem.