22.01.2015, 06:30
Hello I was wondering if its possible to detect if a AFK player kills someone(aka detecting cam hack)
What does cam hack have to do with this?
If they're afk do they type some command like /afk? |
First, detect if the player is AFK, you can do this by looping through all players and check if OnPlayerUpdate is called. It wont if they're AFK.
Then if OnPlayerUpdate isn't called, you can set a variable to 1 or something, and 0 when OnPlayerUpdate is called, and use OnPlayerDeath to see if the killerid has that variable set to 1. |