07.05.2016, 22:24
Code:
public OnPlayerUpdate(playerid)
//FBI Recording Bug
new iTargetID;
if(IsPlayerInWater(playerid))
{
if(PlayerInfo[iTargetID][pBugged] == playerid)
{
SendClientMessage(iTargetID, COLOR_LIGHTBLUE, "A bug on you was malfunctioned because it became wet");
PlayerInfo[iTargetID][pBugged] = -1;
PlayerInfo[iTargetID][pBugOn] = 0;
}
}
nothing appears when swimming with both players (agent & victim)
Am I doing anything wrong? what should I do, where should I put it, idk , anyone help me
Code:
stock IsPlayerInWater(playerid)
{
new anim = GetPlayerAnimationIndex(playerid);
if (anim >= 1538 && anim <= 1542 || anim == 1544 || anim == 1250 || anim == 1062)
{
return 1;
}
return 0;
}

