ColAndreas IsPlayerInWater problem
#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


Messages In This Thread
ColAndreas IsPlayerInWater problem - by Wajttachu - 27.01.2019, 17:15
Re: ColAndreas IsPlayerInWater problem - by Hunud - 27.01.2019, 18:53
Re: ColAndreas IsPlayerInWater problem - by Wajttachu - 27.01.2019, 19:17
Re: ColAndreas IsPlayerInWater problem - by Bolex_ - 27.01.2019, 19:30
Re: ColAndreas IsPlayerInWater problem - by SymonClash - 27.01.2019, 19:59

Forum Jump:


Users browsing this thread: 1 Guest(s)