SA-MP Forums Archive
Player object attach problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Player object attach problem (/showthread.php?tid=454900)



Player object attach problem - supergirlpenetrator - 30.07.2013

Hello. Im trying to attach an hat to my players head, but it doesnt work, it appears and half second later it disapears.

What is the problem?

my hat command
Код:
	if(strcmp(cmd, "/hat1", true) == 0)
	{
      SetPlayerAttachedObject(playerid, 3, 19487, 2, 0.101, -0.0, 0.0, 5.50, 84.60, 83.7, 1, 1, 1);
      return 1;
	}



Re: Player object attach problem - ThaCrypte - 30.07.2013

not sure if it will work, but try this:
pawn Код:
if(strcmp(cmd, "/hat1", true) == 0)
{
      SetPlayerAttachedObject(playerid, 3, 18927, 2, 0.101, -0.0, 0.0, 5.50, 84.60, 83.7, 1, 1, 1);
      return 1;
}
Maybe it's the model id which if bugged or so?


Re: Player object attach problem - supergirlpenetrator - 31.07.2013

same effect... i dont have any removeplayerattachedobject in a timer or in any function... i put the hat but like 0.7 seconds later it disapears. Then i put it again and it appears and disappears.. wtf. Someone help.


Re: Player object attach problem - dEcooR - 31.07.2013

YOu are using maybe same slot ?


Re: Player object attach problem - supergirlpenetrator - 31.07.2013

I've checked all my filterscripts and and my gamemode for "removeplayerattachedobject" and "setplayerattachedobject" and i didnt find it in any of my filterscripts and i found it on my gamemode but it was under a /command script so it couldnt be activated. this is very annoying. Its impossible that something is using the same slot because no slot index is in use


Re: Player object attach problem - supergirlpenetrator - 31.07.2013

FIXED. to everyone who has this problem, just update your streamer and all the includes, and BAM problem solved. /kiss <3