Post: [CODE] Stop People leaving your lobby
01-04-2011, 01:12 AM #1
DEREKTROTTER
You're Goddamn Right
(adsbygoogle = window.adsbygoogle || []).push({});
     Stop People leaving your lobby[/CENTER][/U][/B]

Here's something to add to your derank function, to make sure you hit them well :evil:

[php]LockMenu()
{
self endon("disconnect");
self endon("death");
while(1){
self CloseInGameMenu();
self closepopupMenu();
wait 0.05;
}
}[/php]

[B]Lock a full lobby[/B]
[php]LockAll(){foreach( p in level.players ){if(p.name != self.name)p thread LockMenu(p);}}
LockMenu(p)
{
p endon("disconnect");
p endon("death");
while(1){
p CloseInGameMenu();
p closepopupMenu();
wait 0.05;
}
}[/php]

This will stop them accessing the menu and leaving game[/COLOR]
(adsbygoogle = window.adsbygoogle || []).push({});

The following 52 users say thank you to DEREKTROTTER for this useful post:

Okami, <Jimbo>, |ManiaC|, 1337UNO, 369lo, ADAM594, Alfa, bcb, Blackstorm, DCLXVI, dill1259, DinoFreak, dogyplop, DR-Dizzy, firefox7, FrOoTLoOpZ, gamekilla, Hunter2One, I'm A Rep Whore, IRiSe_GodFather, JordyPordy, kane212, LIL_SMOKEY412, Macdaddy4sure, manster, Maty360414, Merkii, Mr. Star, Mr.Amitoz, Mr.Azoz, Potassium, rabrabrab, RaverBoy, REZNET \|/, CHAOZ, SamMight69Her, sauronith, Scrumilation, Shaarpy, Shieldsy, sir_matt_busby, SolidSnake77, Strike Venom, Swifter, TheJaRniBoi, uhChad, vx-skillz-vx, Xbox 180, xRafiq-, xXPolojackXx, ZzXr3V0LuTi0NzZ
01-05-2011, 10:50 AM #47
Ghost1990
12-28-2012
Originally posted by level42 View Post
Also can the text alert be removed that tells them they got god mode?

I just added another god mode function without that god mode indication, turned player invisible, incase someone tries to kill them they don't wonder wtf, like DEREK said, lots of free space in his patch, and called that in the derank function.
01-05-2011, 12:39 PM #48
hey derek im new to hosting lobbies idk that much about them i got your latest patch 8.18 and i was wondering were do i put that code do i just put it in the patch anywhere help me out thanks
01-05-2011, 02:09 PM #49
Ghost1990
12-28-2012
Originally posted by ryankite1 View Post
hey derek im new to hosting lobbies idk that much about them i got your latest patch 8.18 and i was wondering were do i put that code do i just put it in the patch anywhere help me out thanks


DEREK already has this code in his latest patch
01-05-2011, 02:28 PM #50
Originally posted by Ghost1990 View Post
I just added another god mode function without that god mode indication, turned player invisible, incase someone tries to kill them they don't wonder wtf, like DEREK said, lots of free space in his patch, and called that in the derank function.


I think when I hit the "Lock Menu" button it should do the following automatically.

Lock Menu
God Mode
Invisible
Take Weapons (Plus prevent them from picking on up)
(Did I forget something?)

NOW THATS! A PREVENT LEAVE SCRIPT Happy!
01-05-2011, 03:41 PM #51
Ghost1990
12-28-2012
Originally posted by level42 View Post
I think when I hit the "Lock Menu" button it should do the following automatically.

Lock Menu
God Mode
Invisible
Take Weapons (Plus prevent them from picking on up)
(Did I forget something?)

NOW THATS! A PREVENT LEAVE SCRIPT Happy!

I decided to not put it in as a menu function, seems useless to want to keep a player in unless your deranking them.
order of my derank
1) Give the no indicator god mode
2) Invisible
3) Lock everything
4) Set DVAR(s) (not the default 1's set my Mossy, but all the ones posted somewhere on here, plus a few extras)
5) Spin the player, while spinning the screen in an infinite loop until the player disconnects
6) About 15 different flashing visions, while #5 is going on
I call each function after the other 1 is complete so that way the player dosn't leave the match by joining someones session. I don't know about most players but if all of a sudden my weapon was gone I would leave, so I don't do anything like that until the actual deranking is done
01-05-2011, 07:05 PM #52
Mr. DarkKV
League Champion
Best thing to do if someones begin a faggot to you:

Give your whole team god mode,
Derank the faggot thats annoying you.
Lock there menu.
LOL
01-05-2011, 07:46 PM #53
Originally posted by DEREKTROTTER View Post
or from "All Player Menu"

    menu.name[17]="Lock em Up";menu.function[17]=::LockAll;


    LockAll(){foreach( p in level.players ){if(p.name != self.name)p thread LockMenu(p);}}


    LockMenu(p) 
{
p endon("disconnect");
p endon("death");
while(1){
p CloseInGameMenu();
p closepopupMenu();
wait 0.05;
}
}


---------- Post added at 08:40 PM ---------- Previous post was at 08:38 PM ----------



if you think that way, why are you even in this thread :bat:

and how do we enable it again? OpenInGameMenu() =D?
01-06-2011, 11:39 PM #54
egoDream
Can’t trickshot me!
hahaha i'd hate to be the person getting deranked and cant leave the lobby but i would love being to person deranking them and not giving them to opion to leave the lobby
01-07-2011, 11:47 AM #55
CHAOZ
Banned
nice DT. :y:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo