25.08.2016, 04:06
There are multiple ways you can approach this.
OnVehicleDeath - Gets called when a vehicle is submerged in water or when a vehicle explodes.
GetPlayerAnimationIndex + GetAnimationName - You can check a player's animation library/name to check if they have a swimming animation applied to them.
GetPlayerPos - Check a player's Z coordinate to see if they are physically underneath the lowest platform, to determine if they have 'fallen off'. You should allow a reasonable amount to prevent any false positives.
CreateDynamicArea - Create a dynamic area using Incognito's Streamer plugin or any other applicable plugin, and use that area to determine if the player is still within the playing field or not.
Each alternative has it's pros and cons, but with enough attention to detail, you can create a flawless system of your own.
OnVehicleDeath - Gets called when a vehicle is submerged in water or when a vehicle explodes.
GetPlayerAnimationIndex + GetAnimationName - You can check a player's animation library/name to check if they have a swimming animation applied to them.
GetPlayerPos - Check a player's Z coordinate to see if they are physically underneath the lowest platform, to determine if they have 'fallen off'. You should allow a reasonable amount to prevent any false positives.
CreateDynamicArea - Create a dynamic area using Incognito's Streamer plugin or any other applicable plugin, and use that area to determine if the player is still within the playing field or not.
Each alternative has it's pros and cons, but with enough attention to detail, you can create a flawless system of your own.