Results 1 to 3 of 3
  1. #1

    Hey guys need your help with Join/Spawn server

    I will checked all player Before they join server:ex Accuracy,kdr,spm,and more.I will set a limit for them and kick.How i write this code in insanelimits??I have tested all codes in examples but this not works.Blaze

  2. #2
    Plugin Developer
    Join Date
    Jan 2012
    Location
    Saarland
    Posts
    915
    I wouldn't recommend such simple stats checks since they have lot's of false positive detection such as legit high accuraciy because someone plays lot's of shotguns.

    Add a new limit

    Evaluation:
    OnJoin

    FirstCheck:
    Code:

    Code:
    // Your Check 
    double KD_threshold 		= 7.0;
    double KPM_threshold		= 3.0;
    double SPM_threshold 		= 3000;
    double Accuracy_threshold	= 40.0;
    
    if(player.Spm > SPM_threshold  || player.Kpm > KPM_threshold || player.Kdr > KD_threshold || player.Accuracy  > Accuracy_threshold) {
    	plugin.KickPlayerWithMessage(player.Name, "You've been kicked because of your stats.");
    	plugin.ConsoleWrite("Player " + player.Name + " has been kicked for  tats\nSPM/KPM/KDR/ACC: " + Convert.ToInt32(player.Spm) + "/" + Convert.ToInt32(player.Kpm) + "/" + Convert.ToInt32(player.Kdr) + "/" +  Convert.ToInt32(player.Accuracy));
    }
    
    return false;
    Last edited by LumPenPacK; 30-11-2014 at 13:48.
    64 slots mixed Classic mode BF4
    32 slots rush mode BF3

  3. #3
    Thanx Lum for helpWhat values i sets for hold hackers out from server???Iwill have only for max normal players stats in serverBlaze

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •