20.07.2016, 18:58
PHP код:
forward CheckFish();
public CheckFish()
{
foreach(new i: Player)// this loop will fix it
{
if(!IsPlayerNearWater(i))
{
if(Fishing[i] == 1)
{
SendClientMessage(i, COLOR_GREY, "You pulled your line out of the water.");
Fishing[i] = 0;
RemovePlayerAttachedObject(i,0);
KillTimer(fishtimer[i]);
}
}
}
return 1;
}