12.12.2014, 19:26
hey,
im trying attach material object to player
this is my code:
It creates the object in the X Y Z , but not attaching it to the player..
im trying attach material object to player
this is my code:
PHP код:
CMD:sguitar(playerid,params[])
{
test20[playerid] = CreatePlayerObject(playerid,19319, 848.2437, -1188.0800, 16.9766, 0.00000, 0.00000, 0.00000);
SetPlayerObjectMaterial(playerid, test20[playerid], 0, 19129, "dancefloors", "DanceFloor1", 0);
AttachObjectToPlayer(test20[playerid], playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
return 1;
}