04.12.2016, 17:18
Server hangs / stops for a few seconds (by stops i mean, it freezes, everyone including players, chat & irc chat will be frozen)
players cant send msg in chat, cant use cmds. in short whole server freezes. and players packetloss starts to increase slowly even after the thing is over, happens every x minutes (x = random(45)).
profiler plugin doesnt says much, nor i have any amx backtrace in log.... and on playerupdate is:
Any solutions?
players cant send msg in chat, cant use cmds. in short whole server freezes. and players packetloss starts to increase slowly even after the thing is over, happens every x minutes (x = random(45)).
profiler plugin doesnt says much, nor i have any amx backtrace in log.... and on playerupdate is:
PHP код:
public OnPlayerUpdate(playerid)
{
lastOPU[playerid] = GetTickCount();
if (isafk_{playerid})
{
UpdateDynamic3DTextLabelText(afklabel[playerid], 0xFFFF00FF," ");
isafk_{playerid} = false;
}
new keys, ud, lr;
GetPlayerKeys(playerid, keys, ud, lr);
if (ud != 0 || lr != 0) ac_vars[playerid][ac_lastudlr] = GetTickCount();
// switch(GetPlayerWeapon(playerid)) { case 44, 45: if((keys & KEY_FIRE) && (!IsPlayerInAnyVehicle(playerid))) return 0; }
return 1;
}