public OnPlayerUpdate( playerid ) {
if( GetPlayerAnimationIndex( playerid ) ) {
new lib[ 20 ], name[ 20 ];
GetAnimationName( GetPlayerAnimationIndex( playerid ), lib, sizeof lib, name, sizeof name );
if( !strcmp( lib, \"SWIM\" ) ) {
SetPlayerHealth( playerid, 0.0 );
}
}
return 1;
}