Doesn't destroy PlayerObject - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Doesn't destroy PlayerObject (
/showthread.php?tid=77308)
Doesn't destroy PlayerObject -
dice7 - 10.05.2009
Here's my code
http://pastebin.com/f1c523d44
The problem is, that the playerobjects don't destroy fast enough. Even if I set the desrtoy1 timer to 51, it still won't.
Help ?
Re: Doesn't destroy PlayerObject -
Think - 10.05.2009
just set the timers, to false instead of true, why would you want to create like 500 objects in 1 second itll crash the server.
Re: Doesn't destroy PlayerObject -
dice7 - 10.05.2009
If the player starts moving, then the object won't be directly behind his back and then the purpose of this script will be lost
Re: Doesn't destroy PlayerObject -
Think - 10.05.2009
well if he doesnt destroy it fast enough, just set the timer down.
Re: Doesn't destroy PlayerObject -
dice7 - 10.05.2009
ok, so I remade this with OnPlayerUpdate, which removed the timers, but the objects don't keep destroying quick enough.
http://pastebin.com/f62122277
Since only one object can have the id "object", then the ones which were created before it, will not be destroyed since they don't have the tag "object". So, i was wondering if It's possible to create and destroy the objects using an array ?