Thread: Spawn System

Results 1 to 3 of 3
  1. #1
    kooperpc's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    Somewhere
    Posts
    37
    Reputation
    16
    Thanks
    308

    Spawn System

    Hi guys, I have a question.
    I want to spawn my server in two ways.
    If the palyername starts with "asd" spawn here: -181.025f, 2212.354f, -290.875f
    else
    Spawn somewhere.

    I have a Spawn Code:
     

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using InfinityScript;

    namespace Spawn
    {
    public class Spawn : BaseScript
    {
    public Spawn()
    : base()
    {
    var spawnLoc = new Vector3(-181.025f, 2212.354f, -290.875f); // Add your Oxyz location here
    var IsInDome = Call<string>(47, "mapname") == "mp_dome" ? true : !true;
    PlayerConnected += new Action<Entity>((e) =>
    {
    e.SpawnedPlayer += new Action(() =>
    {
    if (IsInDome)
    e.Call(33529, new Parameter(spawnLoc));
    });
    });
    }
    }
    }


    Do you know how to make this script?
    Last edited by kooperpc; 01-26-2014 at 02:12 PM. Reason: Fixed some shit

  2. #2
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,430
    Reputation
    611
    Thanks
    9,822
    My Mood
    Cheerful
    Compile it as a DLL.

  3. #3
    kooperpc's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    Somewhere
    Posts
    37
    Reputation
    16
    Thanks
    308
    I know how to compile it as a DLL... but do you know how to spawn people by name?
    I remeber a site which include all mw3 c# commands. Anybody know the website's name?

Similar Threads

  1. [Help Request] Smart spawn system
    By drolie in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 0
    Last Post: 05-11-2011, 06:21 PM
  2. V.I.P system, Ban system and STATUS
    By vabatta in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 1
    Last Post: 11-21-2010, 02:02 AM
  3. MW2 | Spawn fail?
    By Prfction in forum General
    Replies: 1
    Last Post: 10-24-2010, 01:43 AM
  4. RIP SpaWn
    By Scrcrw in forum Art & Graphic Design
    Replies: 21
    Last Post: 10-20-2010, 05:46 AM
  5. spawn hack
    By josser in forum WarRock - International Hacks
    Replies: 3
    Last Post: 04-13-2007, 12:12 PM