Attached objects not hiding
#1

Objects not hiding i tested many ways, but still didn't hide.Object is showing but not hiding
Код:
CMD:zibintas(playerid)
{
	if(IsPlayerAttachedObjectSlotUsed(playerid, 1))
	{
	RemovePlayerAttachedObject(playerid,1);
	RemovePlayerAttachedObject(playerid,2);
	}
	if(playerDB[playerid][zibintas]==0) return SendClientMessage(playerid,RED,"Neturite ћibinto.Isigykite jį kioske.");
	if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
	if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
	SetPlayerAttachedObject(playerid, 1,18656, 5, 0.1, 0.038, -0.1, -90, 180, 0, 0.03, 0.03, 0.03);
	SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
	return 1;
}
Reply
#2

Why are you setting the attached object again at the end of the command?

pawn Код:
SetPlayerAttachedObject(playerid, 1,18656, 5, 0.1, 0.038, -0.1, -90, 180, 0, 0.03, 0.03, 0.03);

SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
This is most likely the cause my friend.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)