Player Attached Object Problem
#1

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 :
Код:
		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]);
			}
	    }
the objects will not show on right position and are in player body (in boneid [1]) what is the problem ??
Reply


Messages In This Thread
Player Attached Object Problem - by PoniStar - 14.03.2019, 10:38
Re: Player Attached Object Problem - by PoniStar - 14.03.2019, 10:44

Forum Jump:


Users browsing this thread: 2 Guest(s)