ColAndreas IsPlayerInWater problem
#1

I'm experiencing annoying problem w/ ColAndreas...
I'm using .dll from releases page and working .inc (no warnings/errors) from master page...
So this is the problem, even tho player is like 1.0 above from water (Standing on object above water) it shows up he is in water...
HTML Code:
if(CA_IsPlayerInWater(playerid, -1.0, -1.0))
	{
		Server(playerid, "U vodi si!");
	}
if(CA_IsPlayerInWater(playerid, 0.0, 0.0))
	{
		Server(playerid, "U vodi si!");
	}

if(CA_IsPlayerInWater(playerid, 0.0, 0.0))
	{
		Server(playerid, "U vodi si!");
	}
Result was always same, here is photo:
https://imgur.com/a/oaiXj5H
Reply
#2

Checks if the animation/s applies when in water
Reply
#3

Quote:
Originally Posted by Hunud
View Post
Checks if the animation/s applies when in water
I want to do it w/ colandreas
Also i need IsPlayerNearWater which is almost same checks as this for one job i'm doing ...
Reply
#4

This might help you as well, https://github.com/Jelly23/IsPlayerTouchingWater
Reply
#5

pawn Code:
IsPlayerUsingSwimAnim(playerid)
{
    switch(GetPlayerAnimationIndex(playerid))
    {
        case 1538, 1542, 1540, 1544, 1250, 1062, 1539: return true;
    }
    return false;
}
pawn Code:
if(IsPlayerUsingSwimAnim(playerid))
{
    SendClientMessage(playerid, -1, "You're in water!");
}
else
{
    SendClientMessage(playerid, -1, "You aren't in water!");
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)