Results 1 to 3 of 3
  1. #1
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    166
    My Mood
    Angelic

    Spectator if u die

    I got a question about
    How to set If u die u dont respawn and be spectator?
    I use this code but u can press ESC and chose a team so u respawn..
    I dont want to use the gametypes SD
    onDeath()
    {
    self endon("disconnect");
    self waittill ("death");

    self notify("menuresponse", game["menu_team"], "spectator");
    self allowSpectateTeam( "allies", true );
    self allowSpectateTeam( "axis", true );
    self allowSpectateTeam( "none", false );
    self allowSpectateTeam( "freelook", false );

    }

  2. #2
    maarten551's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    75
    My Mood
    Mellow
    I think you need to set a simple variable here :P
    Code:
    init()
    for(;;)
    {
    level waittill("round_begin"); //or something
    self.newspawn = 1;
    }
    
    for(;;)
    {
    self waittill("spawned_player");
    if(self.newspawn != 1)
    {
    Ondeath();
    }
    else
    {
    self.newspawn = 0;
    }
    }
    or something as that

    My Youtube account : Maarten551, subscribe me ^^
    [YOUTUBE]lSl0HlhGQsY[/YOUTUBE]
    AIzombies for Alteriw, Check it now!
    [YOUTUBE]U9OjBsHgcKQ[/YOUTUBE]
    hover/cordinates mod with visible bunkers!!!
    ---------------------------------------------------
    Most important waittills

  3. #3
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    166
    My Mood
    Angelic
    Nvm I fixed it already and thanks maarten for trying to help

Similar Threads

  1. Google Needs to DIE!!!!!!!!
    By Dave84311 in forum General
    Replies: 40
    Last Post: 04-17-2010, 08:53 PM
  2. Will Smith Died. 1968 - 2006
    By Kyojiro in forum General
    Replies: 44
    Last Post: 06-04-2007, 12:32 PM
  3. We're all gonna die
    By Dave84311 in forum General
    Replies: 42
    Last Post: 06-30-2006, 07:21 PM
  4. Die Everyone! Praise "god"
    By arunforce in forum Entertainment
    Replies: 6
    Last Post: 06-25-2006, 06:30 PM
  5. Die In Fear
    By Flawless in forum Art & Graphic Design
    Replies: 11
    Last Post: 01-01-2006, 08:12 AM