Advertisement
MichaelFR

AFK Anticit

Jun 23rd, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. forward JelAfk();
  2. public JelAfk()
  3. {
  4. foreach (Player, i)
  5. {
  6. if(PlayerInfo[i][pLogiran] == 1 && PlayerInfo[i][pAdmin] < 4)
  7. {
  8. GetPlayerPos(i, PlayerPos[i][0], PlayerPos[i][1], PlayerPos[i][2]);
  9. if(PlayerPos[i][0] == PlayerPos[i][3] && PlayerPos[i][1] == PlayerPos[i][4])
  10. {
  11. new string[128];
  12. format(string,sizeof(string),"|CHDM| %s [Id: %d] je kickan za AFK!",PlayerName(i),i);
  13. PorukaAdminu(-1,string);
  14. SCM(i,-1,"|CHDM| Kickani ste za AFK!!");
  15. SetTimerEx("Kick", 100, 0, "d", i);
  16. }
  17. PlayerPos[i][3] = PlayerPos[i][0];
  18. PlayerPos[i][4] = PlayerPos[i][1];
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement