17.09.2010, 22:49
I have a pause check that people don't abuse zone capturing.
Tested and worked.
now my question: Will that be bugg for high ping players with the 300 int?
To say is that it could be abused with a higher int (example 1000).
pawn Код:
public OnPlayerUpdate(playerid)
{
SetPVarInt(playerid,"LastUpdate",GetTickCount());
return 1;
}
forward KickAFKCapturing();
public KickAFKCapturing()
{
foreach(Player,i)
{
if(PlayerIsCapture[i] == 1)
{
if(CheckPausing(i) == 1)
{
SendLangMessageToAll(_COLOR_RED,"AFK","AFK");
}
}
}
}
stock CheckPausing(playerid)
{
if(GetTickCount() > ( GetPVarInt(playerid,"LastUpdate") + 300 ))
{
return 1;
}
return 0;
}
now my question: Will that be bugg for high ping players with the 300 int?
To say is that it could be abused with a higher int (example 1000).