What's new
  • Howdy, Guest!

    We have issued a forced password reset on all user accounts, meaning you will not be able to login until this process is complete. Instructions will be displayed when you login with your previous credentials, however if for any reason you do not have access to your associated email address, you will need to contact us at [email protected].

    For more information, please read this Important Announcement

    Thank you for being awesome!

Solved (GREAT IDA) TOGGLE JOIN IN SESH.

  • Thread starter JesseJtag
  • Start date
  • Views 2,101
Status
Not open for further replies.
JesseJtag

JesseJtag

Enthusiast
Messages
705
Reaction score
138
Points
125
Sin$
7
IF YOU FIGURE THIS OUT PLS GIVE SOME CREDIT TO THE THINKER-UPER (LOL)
HOPE THIS WOULD WOTK BC THIS WILL BE AMAZING
Code:
togglejoinin()
{

self waittill( "RB" );
if ( self GetStance() == "prone" ) {
self iPrintlnBold( "^1JOIN IN SESSION ON!" );
(CODE TO TOGGLE JOIN IN SESSION ON)
}
self waittill( "RB" );
if ( self GetStance() == "prone" ) {
self iPrintlnBold( "^1JOIN IN SESSION OFF!" );
(CODE TO TOGGLE JOIN IN SESSION OFF)
}
}
)


MUST BE IN PRONE AND PRESS "RB" FOR CHANGIN JOIN IN SESSION

THIS IS A PORTION OF A CODE THAT CAN BE USED TO CHANGE JOIN IN SESSION DURING A LOBBY :smile:

Version 1.0;

Code:
togglejoinin() 
{ 
self waittill( "RB" ); 
self iPrintlnBold( "^1JOIN IN SESSION ON!" ); 
setDvar("session_nonblocking", 1); 
self waittill( "RB" ); 
self iPrintlnBold( "^1JOIN IN SESSION OFF!" ); 
setDvar("session_nonblocking", 0); 
}

V. 2.0 (THANKS ZYON)
Code:
togglejoinin(){ 
self waittill( "RB" ); 
self iPrintlnBold( "^1JOIN IN SESSION ON!" ); 
level.playersJoinIn = true; 
self waittill( "RB" ); 
self iPrintlnBold( "^1JOIN IN SESSION OFF!" ); 
level.playersJoinIn = false; 
} 

//now add this in onPlayerConnect() 

if (!level.playersJoinIn) kick( self getEntityNumber(), "EXE_PLAYERKICKED" );

^^^^^We NEED a tester for the code above :smile:^^^^^
 
M

Mikey560

Enthusiast
Messages
592
Reaction score
34
Points
95
Sin$
0
I hope someone finds the code because that would be sweet for a lobby!
 
Upvote 0
S

shotdownsoul

Enthusiast
Messages
41
Reaction score
7
Points
55
Sin$
0
I'm not quite to sure, but maybe something to do with
Code:
session_nonblocking "1"
However I have no clue if that dvar persists specifically with jis.

Code:
togglejoinin()
{
self waittill( "RB" );
self iPrintlnBold( "^1JOIN IN SESSION ON!" );
setDvar("session_nonblocking", 1);
self waittill( "RB" );
self iPrintlnBold( "^1JOIN IN SESSION OFF!" );
setDvar("session_nonblocking", 0);
}

I don't think that will work.. but whatever, I'm bored.
 
Upvote 0
JesseJtag

JesseJtag

Enthusiast
Messages
705
Reaction score
138
Points
125
Sin$
7
I'm not quite to sure, but maybe something to do with
Code:
session_nonblocking "1"
However I have no clue if that dvar persists specifically with jis.

Code:
togglejoinin()
{
self waittill( "RB" );
self iPrintlnBold( "^1JOIN IN SESSION ON!" );
setDvar("session_nonblocking", 1);
self waittill( "RB" );
self iPrintlnBold( "^1JOIN IN SESSION OFF!" );
setDvar("session_nonblocking", 0);
}

I don't think that will work.. but whatever, I'm bored.

I'm not quite to sure, but maybe something to do with
Code:
session_nonblocking "1"
However I have no clue if that dvar persists specifically with jis.

Code:
togglejoinin()
{
self waittill( "RB" );
self iPrintlnBold( "^1JOIN IN SESSION ON!" );
setDvar("session_nonblocking", 1);
self waittill( "RB" );
self iPrintlnBold( "^1JOIN IN SESSION OFF!" );
setDvar("session_nonblocking", 0);
}

I don't think that will work.. but whatever, I'm bored.

thanks man now we need some one to test it bc, i cant
 
Upvote 0
CrAzY FaIrYHoPn

CrAzY FaIrYHoPn

FairyHopn' All Day
Retired
Grammar Nazi TotM MotM
Messages
3,449
Reaction score
1,909
Points
770
Sin$
0
He just made up tht dvar. not worth testing
 
Upvote 0
killingdyl

killingdyl

Enthusiast
Messages
693
Reaction score
203
Points
125
Sin$
0
my mod has a reconnect prevention and you can add it to this
anyone who joins is a specatator and you can deal with them by kicking or w,e

my mod has a reconnect prevention and you can add it to this
anyone who joins is a specatator and you can deal with them by kicking or w,e
 
Upvote 0
ADDiCTiVe JTaG

ADDiCTiVe JTaG

Newbie
Messages
11
Reaction score
0
Points
35
Sin$
0
Lol I have to admit this would be epic and I would totally use it.
 
Upvote 0
xxXtReMeZzz

xxXtReMeZzz

Respect the Cosby. Cosby rules all.
Hardened Veteran Forum Addict Grammar Nazi
Messages
2,763
Reaction score
1,018
Points
335
Sin$
0
Isnt this in the quarantine zombie patch, just isolate the code.
 
Upvote 0
JesseJtag

JesseJtag

Enthusiast
Messages
705
Reaction score
138
Points
125
Sin$
7
my mod has a reconnect prevention and you can add it to this
anyone who joins is a specatator and you can deal with them by kicking or w,e

my mod has a reconnect prevention and you can add it to this
anyone who joins is a specatator and you can deal with them by kicking or w,e
WHAT? LOL
 
Upvote 0
Z

zy0n

Enthusiast
Messages
900
Reaction score
449
Points
165
Sin$
7
... why do you need a dvar? seriously lol you people need to learn...

Code:
togglejoinin(){
self waittill( "RB" );
self iPrintlnBold( "^1JOIN IN SESSION ON!" );
level.playersJoinInZy0N = true;
self waittill( "RB" );
self iPrintlnBold( "^1JOIN IN SESSION OFF!" );
level.playersJoinInZy0N = false;
}

//now add this in onPlayerConnect()

if (!level.playersJoinInZy0N) kick( self getEntityNumber(), "EXE_PLAYERKICKED" );

Yeah I made up that variable... duh....
n00bz.
 
Upvote 0
Status
Not open for further replies.
Top Bottom
Login
Register