Players spawn with random objects - 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: Players spawn with random objects (
/showthread.php?tid=307421)
Players spawn with random objects -
HondaCBR - 30.12.2011
I noticed that I spawn on my server with random objects like a bottle or a fag, and that object stays there when I walk away, how can I get rid of them?
Re: Players spawn with random objects -
§с†¶e®РµРe - 30.12.2011
Search ur script for AttachObjectToPlayer and remove it :S
Re: Players spawn with random objects -
PowerPC603 - 30.12.2011
That can also happen when you used KillPlayer when the player was inside a vehicle.
I had the same problem in my /rescue command.
I just made it so /rescue only works when you're on foot.
You could also try to RemovePlayerFromVehicle before you KillPlayer or SetPlayerPosition him.
Re: Players spawn with random objects -
HondaCBR - 30.12.2011
yeah I used /kill command, because Im testing my server for any bugs so Im doing few /kill on my self etc, as I had some glitches, thx.