SA-MP Forums Archive
Attack Material Object to player - 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: Attack Material Object to player (/showthread.php?tid=550434)



Attack Material Object to player - s0ZNIz - 12.12.2014

hey,
im trying attach material object to player
this is my code:
PHP код:
CMD:sguitar(playerid,params[])
{
test20[playerid] = CreatePlayerObject(playerid,19319848.2437, -1188.080016.9766,   0.000000.000000.00000);
SetPlayerObjectMaterial(playeridtest20[playerid], 019129"dancefloors""DanceFloor1"0);
AttachObjectToPlayer(test20[playerid], playerid1.50.50.00.01.52);
return 
1;

It creates the object in the X Y Z , but not attaching it to the player..


Re: Attack Material Object to player - Pottus - 12.12.2014

You can't attach playerobjects to player.
https://sampwiki.blast.hk/wiki/AttachPlayerObjectToPlayer

Warning: This function was removed in SA-MP 0.3.
ALTERNATIVE: SetPlayerAttachedObject

Which was a very poor idea to remove this feature since it is indeed useful for certain things.


Re: Attack Material Object to player - stabker - 26.01.2015

delete