new PlayerTick[MAX_PLAYERS]; #define IsPlayerAfk(%0) (PlayerTick[%0]+1000 < GetTickCount()) public OnPlayerUpdate(playerid) { PlayerTick[playerid]=GetTickCount(); }
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? |
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. |
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'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. |