call when leave water
#5

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(InWater[playerid] == true && !IsPlayerInWater(playerid))
    {
          InWater[playerid] = false;
          CallLocalFunction("OnPlayerLeaveWater", "i", playerid);
          return true;
    }
    if(IsPlayerInWater(playerid)) InWater[playerid] = true;
    return 1;
}
Using an include such as the one shared above for the simple IsPlayerInWater function.
Reply


Messages In This Thread
call when leave water - by edzis84 - 04.12.2014, 21:38
Re: call when leave water - by ikey07 - 04.12.2014, 21:43
Re: call when leave water - by MohanedZzZ - 04.12.2014, 23:07
Re: call when leave water - by Schneider - 04.12.2014, 23:12
Re: call when leave water - by Abagail - 04.12.2014, 23:21

Forum Jump:


Users browsing this thread: 1 Guest(s)