Danke..
Codestock Float:GetDistanceBetweenPoints(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2) //45508 { return floatadd(floatadd(floatsqroot(floatpower(floatsub(x1, x2), 2)), floatsqroot(floatpower(floatsub(y1, y2), 2))), floatsqroot(floatpower(floatsub(z1, z2), 2))); }CodeAlles anzeigenstock IsPlayerInWater(playerid) { new Float:pos[3], an = GetPlayerAnimationIndex(playerid); GetPlayerPos(playerid, pos[0], pos[1], pos[2]); if((1544 >= an >= 1538 || an == 1062 || an == 1250) && (pos[2] <= 0 || (pos[2] <= 41.0 && IsPlayerInZone(playerid, -1387.0, -473.0, 2025.0, 2824.0))) || (1544 >= an >= 1538 || an == 1062 || an == 1250) && (pos[2] <= 2 || (pos[2] <= 39.0 && IsPlayerInZone(playerid, -1387.0, -473.0, 2025.0, 2824.0)))) { return 1; } return 0; }bei den beiden bleibt es gleich
Zeig mal die IsPlayerInZone funktion.
Und hast du GetDistanceBetweenPoints geforwarded?
forward Float:GetDistanceBetweenPoints(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2);