[HELP]Player In Water ?
#4

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;
}
Surprisingly simple. Get isnull in y_utils (part of YSI): https://sampforum.blast.hk/showthread.php?pid=1696956#pid1696956
Reply


Messages In This Thread
[HELP]Player In Water ? - by Saw® - 23.06.2012, 08:41
Re: [HELP]Player In Water ? - by vyper - 23.06.2012, 08:47
Re: [HELP]Player In Water ? - by Saw® - 23.06.2012, 08:59
Re: [HELP]Player In Water ? - by MP2 - 23.06.2012, 09:36

Forum Jump:


Users browsing this thread: 1 Guest(s)