Posts: 81
Threads: 5
Joined: Feb 2009
Reputation:
0
Since I can't find this anywhere I decided to ask... (If it was already posted please link it...)
Is there any way to block users from going godmod when pressing ESC? Or any alternative method?
Thanks in advance!
Posts: 485
Threads: 9
Joined: May 2011
Reputation:
0
Look into GetPlayerKeys and OnPlayerKeyStateChange, you can't detect ESC though, but you can check the available keys in the wiki.
Posts: 995
Threads: 71
Joined: Jul 2008
Reputation:
0
Ok, check if they are in ESC mode, then check if another player shot or melee'd them and set their health appropriately
Posts: 81
Threads: 5
Joined: Feb 2009
Reputation:
0
Yeah, I've looked into GetPlayerKeys already but no ESC keys related in there...
Posts: 995
Threads: 71
Joined: Jul 2008
Reputation:
0
You don't need to check for ESC key, check out my AFK filterscript, it shows how to detect Escape mode
Posts: 995
Threads: 71
Joined: Jul 2008
Reputation:
0
If you want to try a whole different approach, go for OnPlayerShootPlayer and maybe something to check melee.
P.S. search for "Escape" in my code, thats how u check for escape mode
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
That's a good question. I'm not sure if "OnPlayerTakeDamage" will work when the player is paused, have you given that a shot?