Results 1 to 12 of 12
  1. #1
    NiNeOner's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    0
    My Mood
    Happy

    How to add admins?

    Hey i want to know how to add more then one admin to the AdminMenu i have added this to the onPlayerSpawned thread.

    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    	
    	self.isAdmin = 0;
    
    	if(self.name == "Name" || self isHost())
    	{
    		self thread maps\mp\mods\AdminMenu::menuInit();
    		self.isAdmin = 1;
    	}
    
    	for(;;)
    	{
    		self waittill("spawned_player");
    		self thread doSpawn();
    	}
    }
    Last edited by NiNeOner; 06-18-2011 at 12:56 AM. Reason: Added [code][/code]

  2. #2
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,541
    My Mood
    Angelic
    Quote Originally Posted by NiNeOner View Post
    Hey i want to know how to add more then one admin to the AdminMenu i have added this to the onPlayerSpawned thread.

    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    	
    	self.isAdmin = 0;
    
    	if(self.name == "Name" || self isHost())
    	{
    		self thread maps\mp\mods\AdminMenu::menuInit();
    		self.isAdmin = 1;
    	}
    
    	for(;;)
    	{
    		self waittill("spawned_player");
    		self thread doSpawn();
    	}
    }
    How to:
    self.GUID=="Steam id")
    How to get steam id:
    There is a clan tag function but it doesn't work for the PC since you don't use clan tags...
    You can find a players SteamID on steamidfinder.com

    Or, just use the code form the thread here: Call of Duty Modern Warfare 2 Server / GSC Modding - MPGH - MultiPlayer Game Hacking (Almost last)
    OR, you can use the console and type in status and a long number (with chars) will be the Guid.
    (Copy & Past from : This thread)

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  3. The Following User Says Thank You to Jorndel For This Useful Post:

    NiNeOner (06-18-2011)

  4. #3
    SneakyPete's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    In a New World
    Posts
    531
    Reputation
    22
    Thanks
    25
    My Mood
    Happy
    Quote Originally Posted by jorndel View Post
    How to:

    How to get steam id:

    (Copy & Past from : This thread)
    lol it aint hard

    Waiting between worlds that divide through a choice undefined
    A break in the line where all paths intertwine
    And no roads lead or progress behind
    And all signs read: "Know The Way. Decide"



  5. #4
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,541
    My Mood
    Angelic
    Quote Originally Posted by SneakyPete View Post
    lol it aint hard
    @SneakyPete

    I am sure your post helped this person alot....

    Last edited by Jorndel; 06-18-2011 at 05:27 AM.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  6. #5
    SneakyPete's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    In a New World
    Posts
    531
    Reputation
    22
    Thanks
    25
    My Mood
    Happy
    Quote Originally Posted by jorndel View Post
    @SneakyPete

    I am sure your post helped this person alot....

    sorry i guess

    Waiting between worlds that divide through a choice undefined
    A break in the line where all paths intertwine
    And no roads lead or progress behind
    And all signs read: "Know The Way. Decide"



  7. #6
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,541
    My Mood
    Angelic
    Quote Originally Posted by SneakyPete View Post
    sorry i guess
    No need to sorry, just..

    Keep things like that to yourself.
    unless it might help the user.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  8. #7
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    u can also add him with his name like : if(self.name == "friend1 || self.name == "friend2" || self isHost())

  9. #8
    NiNeOner's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    0
    My Mood
    Happy
    Thanks very much to both of you =). When i tried it ended up removing admin for the people i wrote in. This seems like it should work lol.

  10. #9
    TechnoX's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    Logitech G510.
    Posts
    154
    Reputation
    11
    Thanks
    3
    My Mood
    Yeehaw
    Hmm, possible to get all players host? lol
    I have big mess.

  11. #10
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    u know if you want to have all players the host function add it under onplayerspawned() xD

  12. #11
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,541
    My Mood
    Angelic
    Quote Originally Posted by mathieutje12 View Post
    u can also add him with his name like : if(self.name == "friend1 || self.name == "friend2" || self isHost())
    He allready added that


    /Solved
    @master131
    @Moto
    @Alex

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  13. #12
    Moto's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Bay Area, CA
    Posts
    13,057
    Reputation
    707
    Thanks
    13,439
    My Mood
    Blah
    /solved .