hát eléggé rosszul oldottad meg. és nem fügvémy, hanem függvény.
 
    stock IsPlayerInWater(playerid)
    {
        new animlib[32], atmp[32];
        GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), atmp, sizeof(atmp));
        if( !strcmp(animlib, \"SWIM\", true) && IsPlayerInAnyVehicle(playerid) ) return 1;
        return 0;
    }
 Így gondoltad?