01.12.2012, 09:33
Hey pig try this:
You don't have to get all water coordinates, just use the swimming animation.
pawn Код:
stock IsPlayerInWater(playerid)
{
new lib[16],anim[32];
GetAnimationName(GetPlayerAnimationIndex(playerid), lib, sizeof(lib), anim, sizeof(anim));
if(!strcmp(lib, "SWIM", true) && !isnull(lib)) return 1;
return 0;
}