SA-MP Forums Archive
Player Attached Object remove after spawn - 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 Attached Object remove after spawn (/showthread.php?tid=628706)



Player Attached Object remove after spawn - MRM - 13.02.2017

in my fs i added some SetPlayerAttachedObject to player in OnPlayerConnect.
when player connected to the server in RequestClass menu show objects but when he spawn the object remove from him.


Re: Player Attached Object remove after spawn - Runn3R - 13.02.2017

There is probably some code that removes the actual objects when the player spawns in.


Re: Player Attached Object remove after spawn - MRM - 14.02.2017

Quote:
Originally Posted by Runn3R
View Post
There is probably some code that removes the actual objects when the player spawns in.
No.i check it.


Re: Player Attached Object remove after spawn - Rdx - 14.02.2017

Are you using TogglePlayerSpectating?


Re: Player Attached Object remove after spawn - MRM - 14.02.2017

Quote:
Originally Posted by Rdx
View Post
Are you using TogglePlayerSpectating?
Yes, i use in OnPlayerDisconnect - OnPlayerDeath - CMD: spec - CMD: specoff. (in gamemode)

My Player Attached Object script is filterscript.


Re: Player Attached Object remove after spawn - MRM - 15.02.2017

UP.............


Re: Player Attached Object remove after spawn - MRM - 19.02.2017

Dump


Re: Player Attached Object remove after spawn - Flamehaze7 - 19.02.2017

Try to attach again the object in: "OnPlayerSpawn"


Re: Player Attached Object remove after spawn - MRM - 20.02.2017

Quote:
Originally Posted by Flamehaze7
View Post
Try to attach again the object in: "OnPlayerSpawn"
Why attach object in every player spawn?

This problem is only in filterscript.(You can test it)