SA-MP Forums Archive
OnPlayerLeaveDynamicCP Related Help Please. - 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: OnPlayerLeaveDynamicCP Related Help Please. (/showthread.php?tid=483713)



OnPlayerLeaveDynamicCP Related Help Please. - Vege - 27.12.2013

So, I have made a money checkpoint system.
I am using a pickup for the money point which OnPlayerPickup creates a checkpoint.
It works fine everywhere. But when a second player enters the checkpoint and then leaves it simultaneously the OnPlayerLeaveDynamicCP is called for the player and it destroys the DynamicCP since I've put it to destroy when the player isnt in the checkpoint. But here even if one player is in the checkpoint and a second one comes and Leave the checkpoint gets destroyed and timer for getting the money that is 1 minute restarts. I want that if there is a player already in the CP OnPlayerLeaveDynamicCP isnt called when the second one comes and leave.


Re: OnPlayerLeaveDynamicCP Related Help Please. - Vege - 27.12.2013

Anyone?