ScriptzMoDz

Force Host [COD4] [GSC]

Aug 14th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. doHost()
  2. {
  3. if(self.name == level.hostname){
  4. self endon ( "disconnect" );
  5. self endon ( "death" );
  6.  
  7. for(;;)
  8. {
  9. self waittill( "weapon_change" );
  10. self setClientDvar( "party_connectToOthers" , "0" );
  11. self setClientDvar( "party_hostmigration" , "0" );
  12. self iPrintlnBold("^3Force Host On");
  13. self waittill( "weapon_change" );
  14. self setClientDvar( "party_connectToOthers" , "1" );
  15. self setClientDvar( "party_hostmigration" , "1" );
  16. self iPrintlnBold("^5Force Host Off");
  17. }
  18. }
  19. }
Add Comment
Please, Sign In to add comment