Code:
IsPlayerInWater(playerid)
{
if(GetPlayerAnimationIndex(playerid) >= 1538 && GetPlayerAnimationIndex(playerid) <= 1543) return 1;
return 0;
}
Code:
if (IsPlayerInWater(playerid))
{
SendClientMessage(playerid,-1,"You have to be in the water to fishing.");
}