What's new

Solved Quick Question!

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

Vindicates

Seasoned Member
Messages
5,744
Reaction score
1,342
Points
545
Sin$
0
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 ); 
} 
}
 
Status
Not open for further replies.
Top Bottom
Login
Register