SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 30/12/2011, 02:16 PM   #1
HondaCBR
Huge Clucker
 
Join Date: Apr 2011
Posts: 286
Reputation: 0
Default Players spawn with random objects

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?
HondaCBR is offline   Reply With Quote
Old 30/12/2011, 02:50 PM   #2
eеe
Huge Clucker
 
eеe's Avatar
 
Join Date: Oct 2011
Location: pawno.exe :P New Delhi/India
Posts: 326
Reputation: 49
Default Re: Players spawn with random objects

Search ur script for AttachObjectToPlayer and remove it :S
__________________
If i have ever helped you please help me back by clicking here.Thank you.
Scripting for $$$ PM me for details.
Developing websites for $$$ for all occasions PM me for details.
Volt-Host 50% OFF use discount coupon - GETBACK
eеe is offline   Reply With Quote
Old 30/12/2011, 02:53 PM   #3
PowerPC603
High-roller
 
Join Date: Nov 2010
Location: Belgium
Posts: 1,734
Reputation: 238
Default Re: Players spawn with random objects

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.
__________________
Gamemode: PPC_Trucking
Extras-file (for PPC_Trucking): /delproperty, /evict, /propertyid, /porthouse, /portbus, /properties
------------------------------------------------------------------------------------
PPC-Trucking-V2 (home-hosted, only open on occasion for testing purposes): ppctruckingv2.no-ip.info:7777
Youtube channel: https://www.youtube.com/channel/UC-4...Mpglma8f0Ld-YQ
------------------------------------------------------------------------------------
Filterscripts: PPC_Speedometer - PPC_Housing - PPC_Business
PowerPC603 is offline   Reply With Quote
Old 30/12/2011, 03:06 PM   #4
HondaCBR
Huge Clucker
 
Join Date: Apr 2011
Posts: 286
Reputation: 0
Default Re: Players spawn with random objects

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.
HondaCBR is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get random players VoViNaToR Help Archive 6 13/06/2011 06:13 PM
Spawn In Random Car! ColdXX Help Archive 3 08/07/2010 10:35 AM
random spawn PANNA Help Archive 2 21/11/2009 06:07 PM


All times are GMT. The time now is 12:09 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.