SA-MP Forums Archive
[Include] Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) (/showthread.php?tid=281590)

Pages: 1 2 3


Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - =WoR=Varth - 06.09.2011

Smart AFKTabbing

V1
Bug list:
Nothing so far.

V1 Features:
pawn Код:
//Change x
#define AltTabbing x//Interval to check player is Alt-Tabbing
#define AFKing x//Interval to check player is AFKing
#define Range x//Range to set Macroing

IsPlayerAltTabbing{playerid}
IsPlayerAFKing{playerid}
IsPlayerMacroing{playerid}
I don't know how to explain what is macroing, but some people call it "Boting" to Avoid AFK System (Kicking AFK'er).

Note
  1. IsPlayerAFKing only applied if player isn't Alt-Tabbing.
  2. Use "{" instead "(".
Installation
Download Smart AFKTabbing V1 (Click skip on top right of your screen)
No mirror, please.
Copy SmartAFKTabbing.inc to your server folder /pawno/include
Put this on top of your script:
pawn Код:
#include <SmartAFKTabbing>
You have any question/suggestion/bug? Put them here!!!
Please put any feedback.

Okay folks have fun.


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - TheArcher - 06.09.2011

My antivirus is detecting a virus


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - =WoR=Varth - 06.09.2011

Quote:
Originally Posted by Anthony_prince
Посмотреть сообщение
My antivirus is detecting a virus
Woot? No it isn't.


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - Scenario - 06.09.2011

I just scanned this with Norton 360 and it appears to have a Trojan virus. Actually, that's a joke. It's clean!


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - TheArcher - 06.09.2011

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
I just scanned this with Norton 360 and it appears to have a Trojan virus. Actually, that's a joke. It's clean!
Tested with nod32 and kaspesky 2011 internet security and it seems have virus. Norton must die.


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - fordawinzz - 06.09.2011

scanned with microsoft security essentials and it seems to be fine, thank you


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - Kitten - 06.09.2011

This file does not have virus i scanned it with 4 virus scanners this file is safe.


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - Phanto90 - 06.09.2011

Please put a pastebin link :P Wanna take a look to the code


Re : Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - [Ask]Terminator - 06.09.2011

lol everyone talking about the viruses in it in place of the code


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - =WoR=Varth - 06.09.2011

It's Smart AFKTabbing, not Smart Virus.


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - Jack_Leslie - 07.09.2011

Maybe they were idiots and clicked "Download Now" on the ad bit, instead of clicking "Skip Ad".


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - =WoR=Varth - 07.09.2011

Quote:
Originally Posted by Jack_Leslie
Посмотреть сообщение
Anyway, for those retards, here's a pastebin (hope you don't mind varth):
I am.


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - Yamoo - 07.09.2011

Really nice Varth mate, very useful too.


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - Kwarde - 07.09.2011

adf.ly hm?. I won't click it because I hate those links >.<. Lol all your links in your signature are adf links -.-.
However, it seems to be nice.


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - System64 - 07.09.2011

There is no viruses, awesome job, I suggest you to use y_hooks for hooking callback


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - AKA_Cross - 07.09.2011

Quote:
Originally Posted by Anthony_prince
Посмотреть сообщение
Tested with nod32 and kaspesky 2011 internet security and it seems have virus. Norton must die.
Scanned with Kaspersky 2012, found nothing


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - Lorenc_ - 07.09.2011

It's actually bullshit how you're putting everything into cash earning links. I can code one for the community for free instead of them having to hassle to go through heaps of links to get the see the source.



nice anyway.


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - =WoR=Varth - 07.09.2011

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
It's actually bullshit how you're putting everything into cash earning links. I can code one for the community for free instead of them having to hassle to go through heaps of links to get the see the source.



nice anyway.
Yeah, whatever.

Thanks anyway.


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - rbN. - 07.09.2011

I won't click because it's adf.ly

Please someone give me the pastebin link ? (i probably wont use the script anyways)


Re: Smart AFKTabbing (Detect AFK, Alt-Tab, and Macro) - wups - 07.09.2011

There are more efficient ways to do it(for the alttabing). Btw it shouldn't be called alt-tabbing, because it returns true even if you pressed the pause key(ESC).
pawn Код:
new PlayerTick[MAX_PLAYERS];
#define IsPlayerAfk(%0) (PlayerTick[%0]+1000 < GetTickCount())
public OnPlayerUpdate(playerid)
{
    PlayerTick[playerid]=GetTickCount();
}