IsPlayerAFK function ?
#1

i need working script for detect AFK players.
u found this but i am not sure does it work...

Код:
new PlayerTick[MAX_PLAYERS];
#define IsPlayerAfk(%0) (PlayerTick[%0]+1000 < GetTickCount())
public OnPlayerUpdate(playerid)
{
    PlayerTick[playerid]=GetTickCount();
}
anyone know something simular...?
Reply
#2

you can use a FS from the forum.. got some nice ones too.
Reply
#3

link ?
Reply
#4

http://forum.sa-mp.com/search.php?do=process
Reply
#5

Quote:
Originally Posted by BleverCastard
Посмотреть сообщение
I come from a ****** search, and I get redirected to this guy who says I should use the search??

You guys really don't think for the future.
Now anyone searching "IsPlayerAFK" on ****** will get this thread as first result.
Why do you guys always ask ppl to search, all we can find now is topic of people telling other ppl do to their search.
Well congratulations I searched and found you, so give me a good answer now, mister "do your search".

God damnit

EDIT: Here the real answer for those who DO search an end up here.
https://sampforum.blast.hk/showthread.php?tid=490436
Was that so hard?
Reply
#6

Oh wow, that bump.
Reply
#7

Holy shit...
Reply
#8

Quote:
Originally Posted by blinkpnk
Посмотреть сообщение
I come from a ****** search, and I get redirected to this guy who says I should use the search??

You guys really don't think for the future.
Now anyone searching "IsPlayerAFK" on ****** will get this thread as first result.
Why do you guys always ask ppl to search, all we can find now is topic of people telling other ppl do to their search.
Well congratulations I searched and found you, so give me a good answer now, mister "do your search".

God damnit

EDIT: Here the real answer for those who DO search an end up here.
https://sampforum.blast.hk/showthread.php?tid=490436
Was that so hard?
He ment to say that you should use the forum search function instead of creating a new topic for no reason. lol
Reply
#9

Quote:
Originally Posted by Threshold
Посмотреть сообщение
Well as far as I know, there is no native 'IsPlayerAFK' function in SA-MP, so you might as well be searching for 'AFunctionThatGivesAPlayer10DollarsEveryTimeHeSpea ks SA-MP'. You can't ****** a title that you would call your supposed function and expect everyone else to follow the same mindset.

You should also be aware that SA-MP has its very own search function, not everything revolves around ******. Just by searching 'is player paused', 'is player afk', 'is player alt-tabbed', 'is player away', I found several results within the first few pages of each search.

https://sampforum.blast.hk/showthread.php?tid=625089
https://sampforum.blast.hk/showthread.php?tid=622686
https://sampforum.blast.hk/showthread.php?tid=546086
https://sampforum.blast.hk/showthread.php?tid=490436
https://sampforum.blast.hk/showthread.php?tid=380686
https://sampforum.blast.hk/showthread.php?tid=599538

And the list continues...

So if you're willing to come and steal someone else's work because you're too lazy to figure out how to do it yourself, the least you could do is search with a bit more effort instead of giving up at the first result you are given. To argue with a post from nearly 6 years ago that gives you the exact steps you actually need to follow is even more absurd and just adds insult to injury.

Grow up and try harder.
I'm sorry, I have bad results usually using forum search, I will try samp's next time.

Quote:
Originally Posted by PrO.GameR
Посмотреть сообщение
http://lmgtfy.com/?q=IsPlayerAFK+Fun...orum.sa-mp.com

Now this is how "non grannies" search for something, instead of putting a SAMP infront it.

There's an include in the very first page, doing what you want.

Doubt you'd know anything about ******'s tricks and symbols tho, you probably ****** "Hey ******, I want to cook an steak, bring me a tutorial please, thanks" and say fuck ******, it doesn't bring what I want.
I know this operator from its original name "inurl:" from before the year 2000, thank you kid, you're not learning me anything.
Reply
#10

Quote:
Originally Posted by blinkpnk
Посмотреть сообщение
I'm sorry, I have bad results usually using forum search, I will try samp's next time.



I know this operator from its original name "inurl:" from before the year 2000, thank you kid, you're not learning me anything.
Well you didn't learn English either, so it wouldn't be a surprise to me if you didn't learn this either. What you were looking for is "taught" not "learning".

Once an idiot always an idiot.

Also you lose any bragging rights in an English forum if you've been around internet for at least 17 years (00-17, the least) and your English is still the average russian 10 y/o you meet in Dota or CS:GO, so before trying to brag your way out of a burn, learn proper words to use.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)