SolvedHow to add admins?

Posts 1–12 of 12 · Page 1 of 1
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();
	}
}
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)
Quote Originally Posted by Jorndel View Post
How to:

How to get steam id:

(Copy & Past from : This thread)
lol it aint hard
Quote Originally Posted by SneakyPete View Post
lol it aint hard
@SneakyPete

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

Quote Originally Posted by Jorndel View Post
@SneakyPete

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

sorry i guess
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.
u can also add him with his name like : if(self.name == "friend1 || self.name == "friend2" || self isHost())
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.
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
@Skyline.
Hmm, possible to get all players host? lol
u know if you want to have all players the host function add it under onplayerspawned() xD
/solved .
Posts 1–12 of 12 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?