Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PLUGIN_EXPORT void PLUGIN_CALL
- ProcessTick()
- {
- if(g_Ticked == g_TickMax)
- {
- int playerid = 0;
- int ProcessTicksize = 0;
- int ProcessTickindex = 0;
- int size = PlayerLoopList.size();
- for (unordered_set <int>::iterator i = PlayerLoopList.begin(); i != PlayerLoopList.end();)
- {
- if(size != PlayerLoopList.size())
- {
- size = PlayerLoopList.size();
- }
- else
- {
- ++i;
- }
- playerid = *i;
- int playerstate = GetPlayerState(playerid);
- int vid = GetPlayerVehicleID(playerid);
- if(g_IS_TRUE(CHECK_INACTIVITY))
- {
- if(p_IS_TRUE(playerid,CHECK_INACTIVITY))
- {
- if(p_AcivityInfo[playerid].Reported == false)
- {
- if((clock() - p_AcivityInfo[playerid].LastActive) > AllowedInactivityTime)
- {
- p_AcivityInfo[playerid].Reported = true;
- Report(playerid,CHECK_INACTIVITY);
- continue;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement