Advertisement
Guest User

Untitled

a guest
Jul 24th, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. PLUGIN_EXPORT void PLUGIN_CALL
  2. ProcessTick()
  3. {
  4. if(g_Ticked == g_TickMax)
  5. {
  6. int playerid = 0;
  7. int ProcessTicksize = 0;
  8. int ProcessTickindex = 0;
  9. int size = PlayerLoopList.size();
  10. for (unordered_set <int>::iterator i = PlayerLoopList.begin(); i != PlayerLoopList.end();)
  11. {
  12. if(size != PlayerLoopList.size())
  13. {
  14. size = PlayerLoopList.size();
  15. }
  16. else
  17. {
  18. ++i;
  19. }
  20. playerid = *i;
  21. int playerstate = GetPlayerState(playerid);
  22. int vid = GetPlayerVehicleID(playerid);
  23. if(g_IS_TRUE(CHECK_INACTIVITY))
  24. {
  25. if(p_IS_TRUE(playerid,CHECK_INACTIVITY))
  26. {
  27. if(p_AcivityInfo[playerid].Reported == false)
  28. {
  29. if((clock() - p_AcivityInfo[playerid].LastActive) > AllowedInactivityTime)
  30. {
  31. p_AcivityInfo[playerid].Reported = true;
  32. Report(playerid,CHECK_INACTIVITY);
  33. continue;
  34. }
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement