SA-MP Forums Archive
Need Help Thanks For All Answers - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need Help Thanks For All Answers (/showthread.php?tid=150931)



Need Help Thanks For All Answers - xinix000 - 28.05.2010

how can i make a script that when u press insert button or z button it will make u kick out from server

Thanks For the answers


Re: Need Help Thanks For All Answers - DJDhan - 28.05.2010

Код:
OnPlayerKeyStateChange(playerid,oldkeys,newkeys)
{
  if ((newkeys & KEY_SUBMISSION) && !(oldkeys & KEY_SUBMISSION)) //or whatever key you want. (note:you can't put in "z")
  {                                               //you can go to control settings in-game to get the keys or wiki
    Kick(playerid);                      
  }
  return 1;
}
>>>>OnPlayerKeyStateChange @ SA-MP WIKI<<<<


Re: Need Help Thanks For All Answers - xinix000 - 28.05.2010

when player use mod_S.. and press insert or z i want that player to kick out from server but it doesn't have KEY_... so i don't know what i should put in

Sorry For my bad english


Re: Need Help Thanks For All Answers - DJDhan - 28.05.2010

Well, people who use that mod can also change their keys in the ini file. What good does your function do then?
I suggest using a good Anti Cheat FS instead.

EDIT: It is KEY_ZOOMOUT I think.


Re: Need Help Thanks For All Answers - xinix000 - 28.05.2010

Can you advice me what anti cheat FS is good and easy to use ?

Thanks For Answer


Re: Need Help Thanks For All Answers - DJDhan - 28.05.2010

Quote:
Originally Posted by xinix000
Can you advice me what anti cheat FS is good and easy to use ?

Thanks For Answer
Well there are a few Anti Cheats out there if you search. For eg You should try this out >>>HERE<<<


Re: Need Help Thanks For All Answers - xinix000 - 28.05.2010

Thank you so much