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, 09:33 PM #38
oOKoOLBhoYOo
Bounty hunter
Originally posted by jrmoney View Post
Finished the other script. But its not completely done. It still needs alot of work done to it. But like i said im sure some of the members in the community can edit/fix/further implement this. Happy


nice work m8 Smile i sure hope this kicks OFF LOL! ELitemossy ARE YOU LISTENING..? Happy
10-10-2010, 10:03 PM #39
XeDa
Banned
Originally posted by oOKoOLBhoYOo View Post
nice work m8 Smile i sure hope this kicks OFF LOL! ELitemossy ARE YOU LISTENING..? Happy


Lolz... :p
10-11-2010, 03:17 AM #40
XeDa
Banned
Added some new features, and fixed a couple problems.
10-11-2010, 03:18 AM #41
persainopz
Bounty hunter
this will come in handy...
10-11-2010, 03:21 AM #42
XeDa
Banned
Originally posted by persainopz View Post
this will come in handy...


Stop rapid posting please.
10-11-2010, 04:24 AM #43
thanks hopefully i can get my comp to work when i edit.. also nice code
10-11-2010, 04:24 AM #44
Moto Cross
Auction King
Does this code work
10-12-2010, 01:10 AM #45
XeDa
Banned
Originally posted by XtentMediA View Post
Does this code work


Yes it does.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo