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, 01:16 AM #11
Nice Ima put this in one of my patches
Try this out
10-10-2010, 01:17 AM #12
Trunks
Geohot Happy
Thank you!
10-10-2010, 01:19 AM #13
XeDa
Banned
Originally posted by ssj22trunks View Post
Thank you!


You're welcome. And if you already have a mod in your "D-PAD" slot, then you might want to either move/delete it, or remove that part of this script. So you dont get issues :mudkip:
10-10-2010, 01:21 AM #14
Trunks
Geohot Happy
Originally posted by jrmoney View Post
You're welcome. And if you already have a mod in your "D-PAD" slot, then you might want to either move/delete it, or remove that part of this script. So you dont get issues :mudkip:


Okay thanks for the info ill letya know if it works out fine..
10-10-2010, 01:29 AM #15
XeDa
Banned
Originally posted by Macdaddy4sure View Post
I am not trying to put you down at all.

Derek has SOME experience but he still needs to learn. He will get there.

The execution of the script needs some work. If you want some advice I can offer you some.


Yeah i would appreciate that. Smile
10-10-2010, 01:33 AM #16
IRoyxX
Destiny
I THINK the derank mode would have to be to 0 = only reset stats
10-10-2010, 01:58 AM #17
XeDa
Banned
nah the derank can be as 0 or lower. Lowering it, just gives them negative kills,wins,ect.
10-10-2010, 01:59 AM #18
oOKoOLBhoYOo
Bounty hunter
this would be SWEEETTT!! but it will not wprk IMO as you'll need to code the patch EVERY Challenge lobby! since it will kick/derank the paid guys unless their name no ton the Allowed list in the patch! :( needs testing/further implementing!) btw w good idea neverthe less!
10-10-2010, 02:04 AM #19
XeDa
Banned
Originally posted by oOKoOLBhoYOo View Post
this would be SWEEETTT!! but it will not wprk IMO as you'll need to code the patch EVERY Challenge lobby! since it will kick/derank the paid guys unless their name no ton the Allowed list in the patch! :( needs testing/further implementing!) btw w good idea neverthe less!

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

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo