SA-MP Forums Archive
Cigars/wine bottles at spawnpoint - 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: Cigars/wine bottles at spawnpoint (/showthread.php?tid=317084)



Cigars/wine bottles at spawnpoint - MP2 - 09.02.2012

I have one class (AddPlayerClass), and use SetPlayerPos under OnPlayerSpawn for spawnpoints. But, there keeps appearing wine bottles and cigars at the AddPlayerClass coordinates. Not always in the exact place though. Here's a picture:



Any clue what's causing it?
Here's my OnPlayerSpawn, with many irrelevant things removed: http://pastebin.com/1XPBxqKP

Disappears after death.

Could it be the object attaching? TogglePlayerControllable?


Re: Cigars/wine bottles at spawnpoint - Babul - 09.02.2012

hm.. it sems you found another glitch with those objects. a few months ago i was able to confirm the same object when a player dies and respawns, with the pause menu meanwhile:
[ame]http://www.youtube.com/watch?v=oyS16mYdlmc[/ame]
for your case, i guess its something with the player spawning. SetPlayerSpawnInfo, SpawnPalyer, or whatever is related to setting a players' position, can cause this effect. i bet its a relict from singleplayer, where some gang members are smoking, drinking etc, maybe the way SAMP handles other skins, it "forgets" about detaching those objects?


Re: Cigars/wine bottles at spawnpoint - MP2 - 09.02.2012

Isn't that pause bug fixed now though?