Thread: Editing teams?

Results 1 to 3 of 3
  1. #1
    hannemannen's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0

    Editing teams?

    Hey guys! ive made an awsome mod that works pretty god damn awsome!
    I whould want to change the teams so that one random person spawns in a team with a usp tac knife with no ammo and superhigh health, and the rest of the players spawns in another team with normal health (kind of hide n seek style). I know i will probobly need a _teams.gsc file for this, ofc i already got a _rank.gsc file. i am pretty good with _rank.gsc file but i am a noob with _teams.gsc so chould someone please help me with this or post a code i whould be glad

    // Hnne

  2. #2
    Heartview's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    KY Cygni
    Posts
    9,208
    Reputation
    717
    Thanks
    2,872
    Moved to GSC Help.
    Texture Mods


    Obedear, the sky is low

  3. #3
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Code:
    pickdude()
    {
    	level endon ( "dude_picked" );
    
    	level.dude= randomInt(level.players.size);
    	level.players[level.dude] thread doStuff();
    	level notify("dude_picked");
    
    		
    	
    }
    
    dostuff()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    
    	wait 0.01;
    	self notify("menuresponse", game["menu_team"], "allies");
    	wait 0.01;
    	self notify("menuresponse", "changeclass", "class" + 2);
                 self _clearPerks();
    	self takeAllWeapons();
    	self giveWeapon( "usp_tactical_mp", 1, false );
    	wait  0.55;
    	self switchToWeapon("usp_tactical_mp");
    	self setWeaponAmmoClip("usp_tactical_mp", 0 );
      	self setWeaponAmmoStock("usp_tactical_mp", 0 );
    
    
    }
    Then u need some dvars
    Code:
    level.teamLimit = 18;
    level.teamBalance = 0;
    setDvar("scr_teambalance", 0);
    setDvar("party_autoteams", 0);
    setdvar("ui_allow_teamchange", "0");
    And the last code is for everyone to spawn in the same team:
    Code:
    doaxis()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    
    	wait 0.01;
    	self notify("menuresponse", game["menu_team"], "axis");
    	wait 0.01;
    	self notify("menuresponse", "changeclass", "class" + 2);
    
    }
    Last edited by mathieutje12; 08-27-2011 at 05:02 AM.

Similar Threads

  1. [Detected] Arab-X-Team injector v1.1 [EDITED]
    By mostafa3v3 in forum CrossFire Spammers, Injectors and Multi Tools
    Replies: 9
    Last Post: 08-22-2011, 06:00 PM
  2. packet editing
    By terence in forum Hack Requests
    Replies: 1
    Last Post: 09-23-2007, 08:51 AM
  3. any way to use wpe for damage editing?
    By zelda803 in forum WarRock - International Hacks
    Replies: 10
    Last Post: 02-09-2006, 03:33 AM
  4. Edited Tutorial: Bypass (Perm)
    By SpiderByte in forum WarRock - International Hacks
    Replies: 24
    Last Post: 01-28-2006, 05:36 AM
  5. Runescape money edit...perminant?
    By wardo1926 in forum General Game Hacking
    Replies: 19
    Last Post: 01-27-2006, 07:34 PM

Tags for this Thread