Attack Material Object to player
#1

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..
Reply
#2

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.
Reply
#3

delete
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)