Advertisement
Guest User

Untitled

a guest
Nov 13th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.32 KB | None | 0 0
  1. if(AFKVrijeme[i] >= 606 && PlayerInfo[i][Admin] >= 1 && PlayerInfo[i][Admin] <= 1337)
  2. {
  3.     format(CmdString, sizeof(CmdString), " ULSmart | Izbacen si jer si bio AFK duze od 10 minuta");
  4.     SCM(i, STAFF_CRVENA, CmdString);
  5.     format(CmdString, sizeof(CmdString), " |A| ULSmart | %s je izbacen jer je bio AFK duze od 10 minuta", PlayerName(i));
  6.     SendAdminMessage(STAFF_CRVENA, CmdString);
  7.     SetTimerEx("KickIgracaID", 300, 0, "d", i);
  8.     GameTextForPlayer(i, "~r~AFK~n~~w~Izbacen si!", 5000, 1);
  9.     getdate(ye,m,d);
  10.     gettime(h,mi,s);
  11.     format(CmdString,sizeof(CmdString), "[%d/%d/%d]-[%d:%d:%d] [ULSmart] Admin %s || AFK ||",d,m,ye,h,mi,s,PlayerName(i));
  12.     UpisiLog(FAJL_STAFF_AFK, CmdString);
  13. }
  14. if(AFKVrijeme[i] >= 611 && PlayerInfo[i][GameSpot] >= 1)
  15. {
  16.     format(CmdString, sizeof(CmdString), " ULSmart | Izbacen si jer si bio AFK duze od 10 minuta");
  17.     SCM(i, STAFF_CRVENA, CmdString);
  18.     format(CmdString, sizeof(CmdString), " |A| ULSmart | %s je izbacen jer je bio AFK duze od 10 minuta", PlayerName(i));
  19.     SendAdminMessage(STAFF_CRVENA, CmdString);
  20.     SetTimerEx("KickIgracaID", 300, 0, "d", i);
  21.     GameTextForPlayer(i, "~r~AFK~n~~w~Izbacen si!", 5000, 1);
  22.     getdate(ye,m,d);
  23.     gettime(h,mi,s);
  24.     format(CmdString,sizeof(CmdString), "[%d/%d/%d]-[%d:%d:%d] [ULSmart] GS %s || AFK ||",d,m,ye,h,mi,s,PlayerName(i));
  25.     UpisiLog(FAJL_STAFF_AFK, CmdString);
  26. }
  27. if(AFKVrijeme[i] >= 616 && PlayerInfo[i][Zatvoren] == 2)
  28. {
  29.     format(CmdString, sizeof(CmdString), " ULSmart | Izbacen si jer si bio AFK duze od 10 minuta u Arei");
  30.     SCM(i, STAFF_CRVENA, CmdString);
  31.     format(CmdString, sizeof(CmdString), " |A| ULSmart | %s je izbacen jer je bio AFK duze od 10 minuta u Arei", PlayerName(i));
  32.     SendAdminMessage(STAFF_CRVENA, CmdString);
  33.     GameTextForPlayer(i, "~r~AFK~n~~w~Izbacen si!", 5000, 1);
  34.     SetTimerEx("KickIgracaID", 300, 0, "d", i);
  35. }
  36.  
  37. if(AFKVrijeme[i] < 600 && PlayerInfo[i][Level] != 0)
  38. {
  39.     PlayerInfo[i][Sekonl]++;
  40.     SCM(i, SVETLOPLAVA, "Debug || Brojim sekundu");
  41.     if(PlayerInfo[i][Sekonl] >= 60)
  42.     {
  43.         PlayerInfo[i][Sekonl] -= 60;
  44.         PlayerInfo[i][Minonl]++;
  45.         SCM(i, SVETLOPLAVA, "Debug || Brojim minutu");
  46.     }
  47. }
  48. else if(AFKVrijeme[i] >= 600 && PlayerInfo[i][Level] >= 1 && PlayerInfo[i][Level] <= 5) {
  49.     if(PlayerInfo[i][Sekonl] >= 60)
  50.     {
  51.         PlayerInfo[i][Sekonl] -= 60;
  52.         PlayerInfo[i][Minonl]++;
  53.     }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement