Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Tabbed(playerid)
- {
- if(IsPlayerPaused(playerid)) {
- if(g_IsPaused[playerid]) {
- PlayerTabbedTime[playerid]++;
- } else {
- g_IsPaused[playerid] = 1;
- }
- } else {
- PlayerTabbedTime[playerid] = 0;
- g_IsPaused[playerid] = 0;
- }
- if(PlayerTabbedTime[playerid] >= 900) {
- SendClientMessageEx(x, COLOR_WHITE, "You have been kicked for being AFK more than 15 minutes.");
- Kick(playerid);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement