What's new

Discussion [Release] Monitor Suicides and Kick

  • Thread starter Public Static Void
  • Start date
  • Views 696
P

oO Di2eamZz

Enthusiast
Messages
1,364
Reaction score
245
Points
165
Sin$
0
Hey guys, this code needs some work and I dont have a way to test it right now because my JTAG is RROD'd.. It monitors suicides in the lobby and if a player gets to 10 suicides he is kicked.. :tongue:

ENJOY!!

Code:
monitorSuicide()
{
self.suicides = 0;
players = get_players();
for( i = 0; i <= players.size; i++ )
{
if( players[i] sMeansOfDeath == "MOD_SUICIDE" )
{
self.suicides++;
self notify( "plus_suicide" );
}
}
}
think_suicides()
{
self endon( "disconnect" )

self.suicideHud = self createFontString( "default", 2.5 );
self.suicideHud setPoint( "CENTER", "CENTER", 0, 0 );
if( self.suicides <= 5 )
{
for( t = 10; t >= 0; t-- )
{
self.suicideHud setText( "Kicking " + self.name + " In: ^1[" + t + "^1]" );
self notify( "kick" );
}
for( i = 0; i <= players.size; i++ )
{
self waittill( "kick" );
ban(i);
}
}
}
 
Su AriZonaa

Su AriZonaa

Getting There
Seasoned Veteran Grizzled Veteran Experienced Veteran
Messages
1,450
Reaction score
663
Points
230
Sin$
0
Thanks for this actually I never knew you could use meansofdeath XD, I might make sumthin cool out of that.
 
I

iRaaTeD

Enthusiast
Messages
265
Reaction score
69
Points
85
Sin$
0
Good find. Not sure when I would use it but still really good.
 
P

oO Di2eamZz

Enthusiast
Messages
1,364
Reaction score
245
Points
165
Sin$
0
ok then still there is no point
Is there any real point at all to any mods beyond god mode, unlimited ammo and weapons?... Nah not really, things can be made from the means of death other than just kicking. It was an example code for you guys to go your own way with
 
P

oO Di2eamZz

Enthusiast
Messages
1,364
Reaction score
245
Points
165
Sin$
0
I challenge you on that statement.
Challenge accepted

I just meant that honestly beyond the mods that make it impossible for you to die, run out of ammo etc. and get you to the highest round possible its all just for fun after that.. To each there own and im sure someone will find it useful
 
Su AriZonaa

Su AriZonaa

Getting There
Seasoned Veteran Grizzled Veteran Experienced Veteran
Messages
1,450
Reaction score
663
Points
230
Sin$
0
Challenge accepted

I just meant that honestly beyond the mods that make it impossible for you to die, run out of ammo etc. and get you to the highest round possible its all just for fun after that.. To each there own and im sure someone will find it useful

Gave you your 100th rep go dance in your underwear.
 
iHax XeX

iHax XeX

Enthusiast
Messages
668
Reaction score
201
Points
125
Sin$
0
Just so you know, level.players doesn't work in zombies or even regular multiplayer in general for WaW. I just has to be player.size.

other than this will lead to something interesting I'm sure
 
Dakota628

Dakota628

Enthusiast
Messages
430
Reaction score
158
Points
115
Sin$
0
Something tells me this has not been tested. I see a lot of flaws already would post them but I'm on my phone. Just realised what u meant by that post....
 
AoKMiKeY

-Algorithm-

I am not a man.
Seasoned Veteran Experienced Veteran Grizzled Veteran
Messages
1,844
Reaction score
685
Points
315
Sin$
7
Is there any real point at all to any mods beyond god mode, unlimited ammo and weapons?... Nah not really, things can be made from the means of death other than just kicking. It was an example code for you guys to go your own way with
lol very true i mainly program cause i like scripting and learing new scripting languages.
but i still mod on the side
 
Top Bottom
Login
Register