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, 12:23 AM #2
Mr. Wood
Feel like a Sir.
derek already posted this bro in another post :question why do you keep posting about scripts please stop
10-10-2010, 12:28 AM #3
XeDa
Banned
Originally posted by Mr.
derek already posted this bro in another post :question why do you keep posting about scripts please stop

No he didn't. He posted the deranking, not "auto-deranking" nor the warning / kicking system. + Why are you stalking my threads? And another thing this is only my second "script post". So please do me a favor and give me
You must login or register to view this content.

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

ndru98, sir_matt_busby
10-10-2010, 12:30 AM #4
Mr. Wood
Feel like a Sir.
haha im not stalking you i look at every new thread posted and i simpaly mis understood a simple nah he didn't bro would be fine Winky Winky
10-10-2010, 12:35 AM #5
XeDa
Banned
Originally posted by Mr.
haha im not stalking you i look at every new thread posted and i simpaly mis understood a simple nah he didn't bro would be fine Winky Winky


Lol i look at all the new posted threads myself.
10-10-2010, 12:37 AM #6
Mr. Wood
Feel like a Sir.
lol well sorry for interupting your thread you better get back on track :y:

The following user thanked Mr. Wood for this useful post:

XeDa
10-10-2010, 12:53 AM #7
Most people should be able to code that in their sleep.

The following user thanked Macdaddy4sure for this useful post:

Selena Gomez
10-10-2010, 01:03 AM #8
XeDa
Banned
Originally posted by Macdaddy4sure View Post
Most people should be able to code that in their sleep.

Sorry im not some professional programmer bud.

The following user thanked XeDa for this useful post:

theycallmeryan
10-10-2010, 01:07 AM #9
Originally posted by jrmoney View Post
Sorry im not some professional programmer bud.

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.
10-10-2010, 01:14 AM #10
gmon3y
Banned
Nice dude, lmao i was looking for some sort of system like this thanx.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo