27.12.2013, 14:15
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.
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.