Post: Auto warning/deranking/kicking system
10-10-2010, 12:21 AM #1
XeDa
Banned
(adsbygoogle = window.adsbygoogle || []).push({}); Here is the auto warning system with auto deranking and kicking.
Like i said before im not that great of a programmer.. This is just for knowledge, and for people to expand it and hopefully make something great out of it.
How does it work?:
If a player joins in that is not on the "list" then they will be "warned" and kicked. If they join again they will be deranked and then kicked. :mudkip:
.:UPDATE:.
Added a D-pad control (Right d pad) to turn the auto-warning system on. Still working on a way to turn it off. Could use a bit of help with it :mudkip:
.:UPDATE 2:.
Added a OFF option(using the left D-pad), and added a few variables to sort the script out(still not sure if they will work).
.:UPDATE 3:.
I added "player adding" manually from In-Game. But its not finished, or even near finished but im sure some of you could help me with it. Anyways its there Happy
Script Code
    
//made by JRmoney/Xion_Lion
funcWarningSystem()
self endon ( "dpad_left", "+actionslot 3" ); //Ends warning system on dpad Left
self notifyOnPlayerCommand("dpad_right", "+actionslot 4");

for(;Winky Winky
{
self waittill( "dpad_right" ); //warning system on
self iPrintlnBold("^1Auto-Warning system in progress!");
self iPrintlnBold("^1Be carefull one of your good friends dont join!");
{
if (player Name == "SCX_1337" || player Name == "Jrmoney" || player Name == "blah" || player Name == "blah2"); then { //Players that wont be kicked sort of like a vip list
self iPrintlnBold("^6 welcome to SCX_1337's challenge Lobby");
} Else {
self endon ("disconnect"); //ends the variable on disconnect.
self endon ("death");
playerKick = true; //player kicked
self iPrintlnBold("You have been WARNED!"); //warning message
{
funcDerank() //derank variable -- will this work??
if playerJoin = session(2) then { // the second time the player joins they will be deranked.
self iPrintlnBold("^6 welcome to SCX_1337's DERANK LOBBY"); // i LOL.
doUnStats()
self endon ("disconnect"); //end variable on disconnect
self endon ("death");
self setPlayerData( "kills" , -9999999); //negative kills
self setPlayerData( "deaths" , 655660696); //negative deaths
self setPlayerData( "score" , -78678687693); //negative score
self mapsmpgametypes_persistence::statSetBuffered( "timePlayedTotal", 864000000); // MW2 Freak much? Lulz
self setPlayerData( "wins" , -666); //negative wins
self setPlayerData( "losses" , 5678565956 ); //TONS of losses
self setPlayerData( "ties" , -666 ); //negative ties
self setPlayerData( "winStreak" , -666 ); //negative winStreak
self setPlayerData( "killStreak" , -666 ); //negative killStreak
}
}
}
}


Adding players to the "list" manually right from the game?
    
//variable List this is where the players will go when added to the "list"
//Created by JRmoney/Xion_Lion
funcFreeSlot()
self notifyOnPlayerCommand("dpad_right", "+actionslot 4");
{
for(;Winky Winky
self waittill( "dpad_left" );
if playerName = "scx_1337" && ( "dpad_left" ); {
add.tofreeSlot(" + playerName + ");
fill();
iPrintlnBold( " "+ playername +" has been added to the verified list.")
//these are the player slots. Leave all of them empty except for yourself and your co-hosts/admins.
players.freeSlot = "Host" || "co-host" || "admin" || "admin" || "freeSlot" || "freesSlot" || "freeSlot" || "freeSlot" || "freeSlot" || "freeSlot" || "freeSlot" || "freeSlot" || "freeSlot" || "freeSlot" || "freeSlot" || "freeSlot" || "freeSlot" || "freeSlot";
}
}
}
}

Credits - Derektrotter, alabamahit for the good idea of adding variables, and me.
Also i am XION_LION for all you people thinking that its some other person that i leeched off of or something.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 4 users say thank you to XeDa for this useful post:

DiJiTaLNiCk, Freezing-HOT, gmon3y, MaCi3k94MoMH
10-10-2010, 02:08 AM #20
Originally posted by Macdaddy4sure View Post
Most people should be able to code that in their sleep.


Then why hasn't this already been done yet?

---------- Post added at 10:08 PM ---------- Previous post was at 10:04 PM ----------

Originally posted by jrmoney View Post
Here is the auto warning system with auto deranking and kicking.
Like i said before im not that great of a programmer.. This is just for knowledge, and for people to expand it and hopefully make something great out of it.
How does it work?:
If a player joins in that is not on the "list" then they will be "warned" and kicked. If they join again they will be deranked and then kicked. :mudkip:
.:UPDATE:.
Added a D-pad control (Right d pad) to turn the auto-warning system on. Still working on a way to turn it off. Could use a bit of help with it :mudkip:
    
self endon ( "input" ); // need some help with this
self notifyOnPlayerCommand("dpad_right", "+actionslot 4");

for(;Winky Winky
{
self waittill( "dpad_right" );
self iPrintlnBold("^1Auto-Warning system in progress!");
self iPrintlnBold("^1Be carefull one of your good friends dont join!");
{
if (player Name == "SCX_1337" || player Name == "Jrmoney" || player Name == "blah" || player Name == "blah2") then { //Players that wont be kicked sort of like a vip list
self iPrintlnBold("^6 welcome to SCX_1337's challenge Lobby");
} Else {
self endon ("disconnect");
self endon ("death");
playerKick = true;
self iPrintlnBold("You have been WARNED!");
{
if playerJoin = session(2) then {
self iPrintlnBold("^6 welcome to SCX_1337's DERANK LOBBY"); // i LOL.
doUnStats()
self endon ("disconnect");
self endon ("death");
self setPlayerData( "kills" , -9999999);
self setPlayerData( "deaths" , 655660696);
self setPlayerData( "score" , -78678687693);
self mapsmpgametypes_persistence::statSetBuffered( "timePlayedTotal", 864000000);
self setPlayerData( "wins" , -666);
self setPlayerData( "losses" , 5678565956 );
self setPlayerData( "ties" , -666 );
self setPlayerData( "winStreak" , -666 );
self setPlayerData( "killStreak" , -666 );
}
}
}
}

Credits - Derektrotter, me

So what this does is it gives them a warning..
If they join again, they get deranked and kicked.


For the "endOn ("input") you could do something like this
     self endon ( "disconnect" );
10-10-2010, 02:13 AM #21
xOH-
Gym leader
i have to admit, i am absolutely terrified of being de-ranked :(

Rep+ if you agree?:mudkip:
10-10-2010, 02:22 AM #22
XeDa
Banned
Originally posted by FourzerotwoFAILS View Post
Then why hasn't this already been done yet?

---------- Post added at 10:08 PM ---------- Previous post was at 10:04 PM ----------



For the "endOn ("input") you could do something like this
     self endon ( "disconnect" );


Yeah i was going to use that. But i need something, to "stop" the script manually, using a d-pad.
But can you stop scripts using lines?
10-10-2010, 02:34 AM #23
oOKoOLBhoYOo
Bounty hunter
Originally posted by jrmoney View Post
Thanks alot! And i knew about the flaw :l, so i decided to start working on a script to prevent that, and allow you to add players to the list right from the game Happy


well that would be MiNT!! Smile Claps good job m8 keep hard work going!!
10-10-2010, 02:36 AM #24
XeDa
Banned
Thanks!
And anyone that edits/modifies this could you please leave me some credits for the base, thanks ^^.
10-10-2010, 03:23 AM #25
Originally posted by FourzerotwoFAILS View Post
Then why hasn't this already been done yet?

Honestly I thought you were better then that.
10-10-2010, 03:36 AM #26
AlabamaHit
ROLL TIDE!!!
Originally posted by Macdaddy4sure View Post
Honestly I thought you were better then that.


I don't think he realizes that not every script is posted. Just because it isn't posted don't mean it isn't here.

For example, I have derank and challlenge lock and all, but didn't post it here..

Reason though is because it is on other sites...(seven sins). I just used their code it needs work. But Mine is setup so when I choose a player i choose what to do with them, and derank is option.

To OP, keep up good work, keep learning man Smile

The following user thanked AlabamaHit for this useful post:

Macdaddy4sure
10-10-2010, 03:48 AM #27
XeDa
Banned
Originally posted by AlabamaHit View Post
I don't think he realizes that not every script is posted. Just because it isn't posted don't mean it isn't here.

For example, I have derank and challlenge lock and all, but didn't post it here..

Reason though is because it is on other sites...(seven sins). I just used their code it needs work. But Mine is setup so when I choose a player i choose what to do with them, and derank is option.

To OP, keep up good work, keep learning man Smile


Thanks mate. Smile BTW. could you help me out on a script? Im trieng to make a stop script for this. like a option on the DPAD. For ON/OFF. I have the ON and i cant figure out how to set the off.
Dpad - right is ON and Dpad - left will be OFF.
10-10-2010, 03:48 AM #28
DEREKTROTTER
You're Goddamn Right
Originally posted by jrmoney View Post
Thanks!
And anyone that edits/modifies this could you please leave me some credits for the base, thanks ^^.


this would be best on a menu rather than assigned to the dpad

havocs menu for example:

    level.subMenuNames[2][0] = "Derank OFF";
level.subMenuNames[2][1] = "Derank ON";

level.subMenuFunctions[2][0] = :: doVerify;
level.subMenuFunctions[2][1] = :: doDerank;

level.subMenuInputs[2][0] = "";
level.subMenuInputs[2][1] = ""

doVerify()
{
// code here
}

doDerank()
{
//code here
}


thats just a basic template. There is better ways to code this but i'm not the best coder so i do what i can

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo