Post: autokick script
10-09-2010, 09:52 PM #1
XeDa
Banned
(adsbygoogle = window.adsbygoogle || []).push({}); I am new to scripting. Im just trieng to throw ideas out there and learn. Please do not flame me.
I have some past experience with programming but not to much with this kind of stuff >.>

But anyways. I was just thinking of something to work on and it hit me :O (not literatly lol) and i came up with this idea to make a auto-kick feature.
BTW: the "welcome to SCX_1337's DERANK LOBBY is just to scare them so they dont try and come back lel. but like i said this is here for people to expand on and make better use of it.
And i was going to try and add a ON and OFF feature but, with the menus and all it gets a little annoying.
    if player Name=="SCX_1337" || "blah" || "blah2" || "blah3" { // the names that are allowed
self iPrintlnBold( "Welcome to SCX_1337's Challenge Lobby" );
} else {
self iPrintlnBold( "Welcome to SCX_1337's DERANK LOBBY" ); //i LOL.
playerKick = true;
}
}
}
}
(adsbygoogle = window.adsbygoogle || []).push({});

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

GNDOOOR_KILLER, Scouse_Dom
10-09-2010, 09:56 PM #2
Scouse_Dom
League Champion
il be needing this Smile
10-09-2010, 09:59 PM #3
XeDa
Banned
Originally posted by Dom View Post
il be needing this Smile

You could also add a ON|OFF function by adding it to one of your admin sub menus Cool Man (aka Tustin).

The following user thanked XeDa for this useful post:

Scouse_Dom
10-09-2010, 10:08 PM #4
Originally posted by jrmoney View Post
I am new to scripting. Im just trieng to throw ideas out there and learn. Please do not flame me.
I have some past experience with programming but not to much with this kind of stuff >.>

But anyways. I was just thinking of something to work on and it hit me :O (not literatly lol) and i came up with this idea to make a auto-kick feature.
BTW: the "welcome to SCX_1337's DERANK LOBBY is just to scare them so they dont try and come back lel. but like i said this is here for people to expand on and make better use of it.
And i was going to try and add a ON and OFF feature but, with the menus and all it gets a little annoying.
    if player Name=="SCX_1337" || "blah" || "blah2" || "blah3" { // the names that are allowed
self iPrintlnBold( "Welcome to SCX_1337's Challenge Lobby" );
} else {
self iPrintlnBold( "Welcome to SCX_1337's DERANK LOBBY" ); //i LOL.
playerKick = true;
}
}
}
}


Nice, this will be very useful, to make noobs stop joining our lobbies... LOL NICE!! Claps Cool Man (aka Tustin)
10-09-2010, 10:12 PM #5
XeDa
Banned
Originally posted by KILLER View Post
Nice, this will be very useful, to make noobs stop joining our lobbies... LOL NICE!! Claps Cool Man (aka Tustin)


Yeah i know right
I was even thinking about making a auto-derank LULZ
10-09-2010, 11:32 PM #6
Curpee89
Save Point
Im no expert either but I think this syntax would be a little more accurate.

Put this is in onplayerspawn
    self thread autoKick()


Then put this anywhere
    autoKick()
{
if (player.name=="SCX_1337" || "blah" || "blah2" || "blah3") // the names that are allowed
{
self iPrintlnBold( "Welcome to SCX_1337's Challenge Lobby" );
}
else
{
self iPrintlnBold( "Welcome to SCX_1337's DERANK LOBBY" ); //i LOL.
wait (3);
kickPlayer( self getEntityNumber());
}
}
10-09-2010, 11:43 PM #7
DEREKTROTTER
You're Goddamn Right
this is better imo:

    
if player Name=="SCX_1337" || "blah" || "blah2" || "blah3" { // the names that are allowed
self iPrintlnBold( "Welcome to SCX_1337's Challenge Lobby" );
} else {
self iPrintlnBold( "Welcome to SCX_1337's DERANK LOBBY" ); //i LOL.
doLockChallenges();
doLock();
doUnstats();
playerKick = true;
}
}
}
}
10-09-2010, 11:54 PM #8
XeDa
Banned
Thanks derek Smile and isnt the unstats deranking? I may be wrong.
10-09-2010, 11:57 PM #9
DEREKTROTTER
You're Goddamn Right
Originally posted by jrmoney View Post
Thanks derek Smile and isnt the unstats deranking? I may be wrong.


    
doUnStats()
{
self endon ("disconnect");
self endon ("death");
self setPlayerData( "kills" , -9999999);
self setPlayerData( "deaths" , 655660696);
self setPlayerData( "score" , -78678687693);
self maps\mp\gametypes\_persistence::statSetBuffered( "timePlayedTotal", 864000000);
self setPlayerData( "wins" , -666);
self setPlayerData( "losses" , 5678565956 );
self setPlayerData( "ties" , -666 );
self setPlayerData( "winStreak" , -666 );
self setPlayerData( "killStreak" , -666 );
}
10-10-2010, 12:00 AM #10
XeDa
Banned
Originally posted by DEREKTROTTER View Post
    
doUnStats()
{
self endon ("disconnect");
self endon ("death");
self setPlayerData( "kills" , -9999999);
self setPlayerData( "deaths" , 655660696);
self setPlayerData( "score" , -78678687693);
self maps\mp\gametypes\_persistence::statSetBuffered( "timePlayedTotal", 864000000);
self setPlayerData( "wins" , -666);
self setPlayerData( "losses" , 5678565956 );
self setPlayerData( "ties" , -666 );
self setPlayerData( "winStreak" , -666 );
self setPlayerData( "killStreak" , -666 );
}


Lol i was just going to post that >.> Nice job Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo