14.03.2019, 10:38
hi , i created some attach object system , it will save the object info in player profile , so i want to (re)attach them on player spawn (if they just join or respawn after death objects should reload) the attaching with edit attach object is ok but in loading with this code :
the objects will not show on right position and are in player body (in boneid [1]) what is the problem ??
Код:
for(new x=0;x<5;x++) { if(pObjects[playerid][x] != 0) { SetPlayerAttachedObject(playerid, x,pObjects[playerid][x],1, pObjectsPos[playerid][x][0],pObjectsPos[playerid][x][1], pObjectsPos[playerid][x][2],pObjectsPos[playerid][x][3], pObjectsPos[playerid][x][4],pObjectsPos[playerid][x][5], pObjectsPos[playerid][x][6],pObjectsPos[playerid][x][7], pObjectsPos[playerid][x][8]); } }