Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(AFKVrijeme[i] >= 606 && PlayerInfo[i][Admin] >= 1 && PlayerInfo[i][Admin] <= 1337)
- {
- format(CmdString, sizeof(CmdString), " ULSmart | Izbacen si jer si bio AFK duze od 10 minuta");
- SCM(i, STAFF_CRVENA, CmdString);
- format(CmdString, sizeof(CmdString), " |A| ULSmart | %s je izbacen jer je bio AFK duze od 10 minuta", PlayerName(i));
- SendAdminMessage(STAFF_CRVENA, CmdString);
- SetTimerEx("KickIgracaID", 300, 0, "d", i);
- GameTextForPlayer(i, "~r~AFK~n~~w~Izbacen si!", 5000, 1);
- getdate(ye,m,d);
- gettime(h,mi,s);
- format(CmdString,sizeof(CmdString), "[%d/%d/%d]-[%d:%d:%d] [ULSmart] Admin %s || AFK ||",d,m,ye,h,mi,s,PlayerName(i));
- UpisiLog(FAJL_STAFF_AFK, CmdString);
- }
- if(AFKVrijeme[i] >= 611 && PlayerInfo[i][GameSpot] >= 1)
- {
- format(CmdString, sizeof(CmdString), " ULSmart | Izbacen si jer si bio AFK duze od 10 minuta");
- SCM(i, STAFF_CRVENA, CmdString);
- format(CmdString, sizeof(CmdString), " |A| ULSmart | %s je izbacen jer je bio AFK duze od 10 minuta", PlayerName(i));
- SendAdminMessage(STAFF_CRVENA, CmdString);
- SetTimerEx("KickIgracaID", 300, 0, "d", i);
- GameTextForPlayer(i, "~r~AFK~n~~w~Izbacen si!", 5000, 1);
- getdate(ye,m,d);
- gettime(h,mi,s);
- format(CmdString,sizeof(CmdString), "[%d/%d/%d]-[%d:%d:%d] [ULSmart] GS %s || AFK ||",d,m,ye,h,mi,s,PlayerName(i));
- UpisiLog(FAJL_STAFF_AFK, CmdString);
- }
- if(AFKVrijeme[i] >= 616 && PlayerInfo[i][Zatvoren] == 2)
- {
- format(CmdString, sizeof(CmdString), " ULSmart | Izbacen si jer si bio AFK duze od 10 minuta u Arei");
- SCM(i, STAFF_CRVENA, CmdString);
- format(CmdString, sizeof(CmdString), " |A| ULSmart | %s je izbacen jer je bio AFK duze od 10 minuta u Arei", PlayerName(i));
- SendAdminMessage(STAFF_CRVENA, CmdString);
- GameTextForPlayer(i, "~r~AFK~n~~w~Izbacen si!", 5000, 1);
- SetTimerEx("KickIgracaID", 300, 0, "d", i);
- }
- if(AFKVrijeme[i] < 600 && PlayerInfo[i][Level] != 0)
- {
- PlayerInfo[i][Sekonl]++;
- SCM(i, SVETLOPLAVA, "Debug || Brojim sekundu");
- if(PlayerInfo[i][Sekonl] >= 60)
- {
- PlayerInfo[i][Sekonl] -= 60;
- PlayerInfo[i][Minonl]++;
- SCM(i, SVETLOPLAVA, "Debug || Brojim minutu");
- }
- }
- else if(AFKVrijeme[i] >= 600 && PlayerInfo[i][Level] >= 1 && PlayerInfo[i][Level] <= 5) {
- if(PlayerInfo[i][Sekonl] >= 60)
- {
- PlayerInfo[i][Sekonl] -= 60;
- PlayerInfo[i][Minonl]++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement