Player spawn with Cigarette - 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 spawn with Cigarette (
/showthread.php?tid=658904)
Player spawn with Cigarette -
GospodinX - 15.09.2018
Hi guys,
I have an "strange" bug.Sometimes my players get spawned with cigarette(smoke).(It happend very rarely so i don't know reason of it).
Does anyone had problem with it? What can cause it bug?
Re: Player spawn with Cigarette -
Burridge - 15.09.2018
This has been a known issue for years, it's probably something within your code.
Quote:
Originally Posted by Kalcor
This problem shouldn't happen unless there is something wrong with your player respawn system.
ClearAnimations()/SetPlayerPos() would fix the issue anyway.
|
Re: Player spawn with Cigarette -
GospodinX - 15.09.2018
I don't understand this:
Quote:
ClearAnimations()/SetPlayerPos() would fix the issue anyway.
|
I have SetPlayerPos in OnPlayerSpawn.I need to add ClearAnimations() ?
Re: Player spawn with Cigarette -
Kraeror - 15.09.2018
Can you show us the code from your OnPlayerSpawn callback, because it might be from changing player's interior or virtual world!