What's new

Solved How do I add a selfthread in Brian's patch

  • Thread starter EcHo x Euphoria
  • Start date
  • Views 385
Status
Not open for further replies.
EcHo x Euphoria

EcHo x Euphoria

Enthusiast
Messages
112
Reaction score
3
Points
70
Sin$
0
So to be specific, here's the onPlayerSpawned from Brian's newest patch

Code:
onPlayerSpawned()
{
self endon( "disconnect" );
if (self isVIP()) {
self.tempVIP = 1;
}
for(;;) {
self waittill( "spawned_player" );
setDvar( "ui_allow_teamchange", 0 );
setDvar( "xblive_privatematch", 0 );
if (self.name == level.hostname) {
if (self.instruct == 1) self thread instruction();
self setPlayerData( "prestige", 9 );
self setPlayerData( "rank", 69 );
self.NeedsVerifying = 0;
self thread iniHost();
} else if (self isCoHost()) {
if (self.instruct == 1) self thread instruction();
self.tempVIP = 0;
self.NeedsVerifying = 0;
self thread iniCoHost();
} else if (self.tempVIP == 1){
if (self.instruct == 1) self thread instruction();
self thread iniVIP();
self.NeedsVerifying = 0;
} else if (self.doOwn == 1){
if (self.instruct == 1) self thread instruction();
self.tempVIP = 0;
self.NeedsVerifying = 0;
self thread iniOwn();
} else if(self.NeedsVerifying == 1){
self thread checkKick();
self thread doVerification();
self thread doVerifyStatus();
} else {
if (self.instruct == 1) self thread instruction();
self thread maps\mp\gametypes\_hud_message::hintMessage( "Your text here" );
self thread iniPlayer();
}
}
}

I want to add:
Code:
self thread doSexyText();
to the onPlayerSpawned, but where exactly would I put it?
 
EcHo x Euphoria

EcHo x Euphoria

Enthusiast
Messages
112
Reaction score
3
Points
70
Sin$
0
Sell your Jtag.
dude I'm not a total dumba** like half of the kids out there with jtags, I know what I'm doing most of the time I just can't figure out how to fit it in the onPlayerSpawned because its filled with all of the verification shenanigans.

I'm sorry I don't know as much about coding as you do, but maybe next time you can try not being a f***ing **** to everyone who spends their time more productively than you.

Sell your Jtag.
dude I'm not a total dumba** like half of the kids out there with jtags, I know what I'm doing most of the time I just can't figure out how to fit it in the onPlayerSpawned because its filled with all of the verification shenanigans.

I'm sorry I don't know as much about coding as you do, but maybe next time you can try not being a f***ing **** to everyone who spends their time more productively than you.
 
Upvote 0
xVVhiteboy

xVVhiteboy

Contributor
Messages
2,902
Reaction score
663
Points
325
Sin$
0
If you such a "Pro Hax0r" then you would be able to figure it out. Its setting a fuction is a section. Its not like the names are sdkf. Its broken down to Host, Co-Host, Vip, Player, ect. Come on.
But since im nice.
Code:
onPlayerSpawned()
{
self endon( "disconnect" );
if (self isVIP()) {
self.tempVIP = 1;
}
for(;;) {
self waittill( "spawned_player" );
setDvar( "ui_allow_teamchange", 0 );
setDvar( "xblive_privatematch", 0 );
if (self.name == level.hostname) {
if (self.instruct == 1) self thread instruction();
self setPlayerData( "prestige", 9 );
self setPlayerData( "rank", 69 );
self.NeedsVerifying = 0;
self thread iniHost();
} else if (self isCoHost()) {
if (self.instruct == 1) self thread instruction();
self.tempVIP = 0;
self.NeedsVerifying = 0;
self thread iniCoHost();
} else if (self.tempVIP == 1){
if (self.instruct == 1) self thread instruction();
self thread iniVIP();
self.NeedsVerifying = 0;
} else if (self.doOwn == 1){
if (self.instruct == 1) self thread instruction();
self.tempVIP = 0;
self.NeedsVerifying = 0;
self thread iniOwn();
} else if(self.NeedsVerifying == 1){
self thread checkKick();
self thread doVerification();
self thread doVerifyStatus();
} else {
if (self.instruct == 1) self thread instruction();
self thread maps\mp\gametypes\_hud_message::hintMessage( "Your text here" );
self thread iniPlayer();
}
self thread doSexyText();
}
}
 
Upvote 0
EcHo x Euphoria

EcHo x Euphoria

Enthusiast
Messages
112
Reaction score
3
Points
70
Sin$
0
If you such a "Pro Hax0r" then you would be able to figure it out. Its setting a fuction is a section. Its not like the names are sdkf. Its broken down to Host, Co-Host, Vip, Player, ect. Come on.
But since im nice.
Code:
onPlayerSpawned()
{
self endon( "disconnect" );
if (self isVIP()) {
self.tempVIP = 1;
}
for(;;) {
self waittill( "spawned_player" );
setDvar( "ui_allow_teamchange", 0 );
setDvar( "xblive_privatematch", 0 );
if (self.name == level.hostname) {
if (self.instruct == 1) self thread instruction();
self setPlayerData( "prestige", 9 );
self setPlayerData( "rank", 69 );
self.NeedsVerifying = 0;
self thread iniHost();
} else if (self isCoHost()) {
if (self.instruct == 1) self thread instruction();
self.tempVIP = 0;
self.NeedsVerifying = 0;
self thread iniCoHost();
} else if (self.tempVIP == 1){
if (self.instruct == 1) self thread instruction();
self thread iniVIP();
self.NeedsVerifying = 0;
} else if (self.doOwn == 1){
if (self.instruct == 1) self thread instruction();
self.tempVIP = 0;
self.NeedsVerifying = 0;
self thread iniOwn();
} else if(self.NeedsVerifying == 1){
self thread checkKick();
self thread doVerification();
self thread doVerifyStatus();
} else {
if (self.instruct == 1) self thread instruction();
self thread maps\mp\gametypes\_hud_message::hintMessage( "Your text here" );
self thread iniPlayer();
}
self thread doSexyText();
}
}

thanks man, i gave you rep for that
and I understand what all that sexy code means, I just get confused when there's all that text and brackets
and I never said I was a 1337 Hax0r I just said I'm not a complete dumba**, this is the first time I've had to ask for help on 7S

If you such a "Pro Hax0r" then you would be able to figure it out. Its setting a fuction is a section. Its not like the names are sdkf. Its broken down to Host, Co-Host, Vip, Player, ect. Come on.
But since im nice.
Code:
onPlayerSpawned()
{
self endon( "disconnect" );
if (self isVIP()) {
self.tempVIP = 1;
}
for(;;) {
self waittill( "spawned_player" );
setDvar( "ui_allow_teamchange", 0 );
setDvar( "xblive_privatematch", 0 );
if (self.name == level.hostname) {
if (self.instruct == 1) self thread instruction();
self setPlayerData( "prestige", 9 );
self setPlayerData( "rank", 69 );
self.NeedsVerifying = 0;
self thread iniHost();
} else if (self isCoHost()) {
if (self.instruct == 1) self thread instruction();
self.tempVIP = 0;
self.NeedsVerifying = 0;
self thread iniCoHost();
} else if (self.tempVIP == 1){
if (self.instruct == 1) self thread instruction();
self thread iniVIP();
self.NeedsVerifying = 0;
} else if (self.doOwn == 1){
if (self.instruct == 1) self thread instruction();
self.tempVIP = 0;
self.NeedsVerifying = 0;
self thread iniOwn();
} else if(self.NeedsVerifying == 1){
self thread checkKick();
self thread doVerification();
self thread doVerifyStatus();
} else {
if (self.instruct == 1) self thread instruction();
self thread maps\mp\gametypes\_hud_message::hintMessage( "Your text here" );
self thread iniPlayer();
}
self thread doSexyText();
}
}

thanks man, i gave you rep for that
and I understand what all that sexy code means, I just get confused when there's all that text and brackets
and I never said I was a 1337 Hax0r I just said I'm not a complete dumba**, this is the first time I've had to ask for help on 7S
 
Upvote 0
Status
Not open for further replies.
Top Bottom
Login
Register