Jump to content
Sign in to follow this  
Laviski

kick player on key press

Recommended Posts

running a wasteland server and a lot of hackers are using this press f9 hack so i want to kick anyone that press f9.

in the on keypress script i added:

    
//F9 key
   case 67:
   {
     kick (_this select 0)  
   };

but doesn't seem to work anyone got any ideas why not?

actually if there way to give reason would be great too at least then could look back on logs for possible hackers.

Edited by Laviski

Share this post


Link to post
Share on other sites

Tried adding a semicolon after kick (_this select 0) ?

So

kick (_this select 0);

Share this post


Link to post
Share on other sites

Is "kick" actually a command? Does this work?

//F9 key
   case 67:
   {
      forceEnd;
   };

Share this post


Link to post
Share on other sites

I've just doublechecked and there only seems to be a #kick command for chat use, but a kick command wasn't in there.

forceEnd only ends the mission according to BIKI but I don't see how this would help lots as the hacker can just enter lobby and reconnect.

Share this post


Link to post
Share on other sites

And kick would stop that? serverCommand has been disabled so I can't really see any solution to have the player get banned unless it's done manually.

Share this post


Link to post
Share on other sites

what about this http://community.bistudio.com/wiki/displayAddEventHandler just link it to f9 key

---------- Post added at 10:29 ---------- Previous post was at 10:22 ----------

how about just kill them everytime they press f9 ?

_kick = (findDisplay 46) displayAddEventHandler ["KeyDown", "if ((_this select 1) == 67) then {whatever code u want};

Share this post


Link to post
Share on other sites

ive figured the best solution is to execute a script.

	//F9 key
   case 67:
   {
     execVM "scripts\f9.sqf";
   };

then do something like:

player setdamage 1;
player globalChat "Ididit";
disableUserInput true;

at least then i could look back on logs and find ppl who pressed it. it doesn't work on server yet. but thats the idea.

Share this post


Link to post
Share on other sites

i forgot about the "disableuserinput", it would be even better not to kill them now..lol

make them stand there helpless while getting mugged or shot ;)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×