29.08.2015, 14:59
У меня также было, помогло только пересоздать систему АФК.
Советую использовать SA-MP callbacks by Emmet
Там есть функций которые можно использовать для AFK системы для примера:
Кстати, поставь CrashDetect и все логи сюда.
Советую использовать SA-MP callbacks by Emmet
Там есть функций которые можно использовать для AFK системы для примера:
PHP код:
public OnPlayerPause(playerid)
{
if(PlayerAFK[playerid][AFK_Stat] == 0)
{
AFK_3DT[playerid] = Create3DTextLabel("{22d708}[AFK] [0]", T_COLOR, 0,0,0, T_DIST, 0);
Attach3DTextLabelToPlayer(AFK_3DT[playerid], playerid, 0.0, 0.0, 0.3);
PlayerAFK[playerid][AFK_Timer] = SetTimerEx("OnPlayerInPauseUpdate", 1000, true, "i", playerid);
PlayerAFK[playerid][AFK_Stat] = 1;
PlayerAFK[playerid][AFK_Time] = 0;
}
}
public OnPlayerResume(playerid, time)
{
PlayerAFK[playerid][AFK_Stat] = 0;
PlayerAFK[playerid][AFK_Time] = 0;
Delete3DTextLabel(AFK_3DT[playerid]);
KillTimer(PlayerAFK[playerid][AFK_Timer]);
}
forward OnPlayerInPauseUpdate(playerid);
public OnPlayerInPauseUpdate(playerid)
{
PlayerAFK[playerid][AFK_Time]++;
new str[64];
format(str, sizeof(str), "{22d708}[AFK] [%d]", PlayerAFK[playerid][AFK_Time]);
Update3DTextLabelText(AFK_3DT[playerid], T_COLOR, str);
}

