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]
Copyright © 2024, NextGenUpdate.
All Rights Reserved.