Posts: 328
Threads: 16
Joined: Jan 2012
Reputation:
0
Well, I'm here to ask if it's possible to disable F4 and prevent it from changing your class/team?
Posts: 244
Threads: 2
Joined: Apr 2012
Reputation:
0
Please use the forum search function, this has been handled before.
Posts: 98
Threads: 16
Joined: May 2013
Reputation:
0
Just spawn them when they reach the class selection menu unless they used the command previously
Posts: 328
Threads: 16
Joined: Jan 2012
Reputation:
0
Well, if it's handled before can you please tell me how?.. The only way I know to disable it is to return 0 in OnPlayerRequestClass, but I need that callback so that's not a solution, one of my community scripter is working on a command to disable /switchteam, but we need to know if there's a way to prevent people from using F4.
Posts: 1,826
Threads: 52
Joined: Feb 2012
Reputation:
0
Make a variable, assign it's value to 1 when the player connects. Then check if the value is 1 under OnPlayerRequestClass, if it is, then let the player choose the skin and then set the value to 0. If the value is 0 under OnPlayerRequest class then respawn the player. Hope this might work out.
Posts: 328
Threads: 16
Joined: Jan 2012
Reputation:
0
Already did that, and it works perfectly but some people bypass it by using F4..
Posts: 1,826
Threads: 52
Joined: Feb 2012
Reputation:
0
But how the player gets the value 1 by hitting F4? That ain't possible.
Wait lemme try it out.
Posts: 328
Threads: 16
Joined: Jan 2012
Reputation:
0
Didn't work.. still F4 bypasses it.