What's new

Solved Quick Question!

  • Thread starter Vindicates
  • Start date
  • Views 231
Status
Not open for further replies.
V

Vindicates

Seasoned Member
Messages
5,744
Reaction score
1,342
I am trying to edit Havocs patch but, i'm wondering what i should put in for ufo. I have taken out the annoying HUGE aimbot and put in PcPromod. I'm not an amazing coder but I think i'm ok. . I'm sorry if I did it Completely wrong.

heres what i have now
Code:
toggleForceHoston()
{
self endon ( "disconnect" );
self endon ( "death" );
self iPrintln( "^1Force ^3Host ^5ON" );
for ( ;; ) {
self setClientDvar("party_connectToOthers", "0");
self setClientDvar("party_hostmigration", "0");
wait 1;

}
}

toggleForceHostoff()
{
self endon ( "disconnect" );
self endon ( "death" );
self iPrintln( "^1Force ^3Host ^5OFF" );
for ( ;; ) {
self setClientDvar("party_connectToOthers", "1");
self setClientDvar("party_hostmigration", "1");
wait 1;

}
}

And I want to change it to:
Code:
toggleUfoON()
{
self endon ( "disconnect" );
self endon ( "death" );
self iPrintln( "^1UFO ^5ON ^2Se7ensins.com?" );
self notifyOnPlayerCommand( "A", "+stand" ); 
maps\mp\gametypes\_spectating::setSpectatePermissions(); 
for ( ;; ) {

self waittill("A"); 
self.sessionstate = "spectator";  
self allowSpectateTeam( "freelook", true ); 




}
}

toggleufoOFF()
{
self endon ( "disconnect" );
self endon ( "death" );
self iPrintln( "^1UFO ^5OFF ^2Se7ensins.com?" );
self notifyOnPlayerCommand( "A", "+stand" ); 
maps\mp\gametypes\_spectating::setSpectatePermissions(); 
for ( ;; ) {

self waittill("A");   
self.sessionstate = "playing"; 
self allowSpectateTeam( "freelook", false ); 
self.sessionstate = "spectator"; 


}
}

This is what i used to "try" to make it work.

Code:
Code: 
self thread doUfo(); 

Code: 
doUfo() 
{ 
self notifyOnPlayerCommand( "down", "+actionslot 2" ); 
maps\mp\gametypes\_spectating::setSpectatePermissions(); 
for(;;) 
{ 
self waittill("down");   
self allowSpectateTeam( "freelook", true ); 
self.sessionstate = "spectator"; 
self waittill("down"); 
self.sessionstate = "playing"; 
self allowSpectateTeam( "freelook", false ); 
} 
}
 
Y

Yamaha

Contributor
Messages
2,478
Reaction score
669
Put in some spoilers please.
 
V

Vindicates

Seasoned Member
Messages
5,744
Reaction score
1,342
sorry

EDIT: Better?
 
V

Vindicates

Seasoned Member
Messages
5,744
Reaction score
1,342
Wish I could help but I am the worst coder ever.
rofl!! its ok :smile:

Find someone who can help, K brizzle I think looked at it, but my L33t haxs are way to amazing :tongue: jk K Brizzle
 
Status
Not open for further replies.
Top Bottom