Forum

> > CS2D > Scripts > see online users script
Forums overviewCS2D overview Scripts overviewLog in to reply

English see online users script

18 replies
To the start Previous 1 Next To the start

old see online users script

KagamineLen
User Off Offline

Quote
hello, i created my own admin system but the problem is i don't know how to create a script that if there admins or mods or vips online i can see it on a menu on F4

here is my script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
function User_Type(id)

user[id] = "Regular Player"
user_type[player(id,"usgn")] = 0
color[id] = player_color

	for _, u in ipairs(admins) do
	 if player(id,"usgn") == u then
		user[id] = "Administrators"
		user_type[player(id,"usgn")] = 4
		color[id] = admin_color
		end
	end

	for _, u in ipairs(moderators) do
	 if player(id,"usgn") == u then
		user[id] = "Moderators"
		user_type[player(id,"usgn")] = 3
		color[id] = moderator_color
		end
	end

	for _, u in ipairs(members) do
	 if player(id,"usgn") == u then
		user[id] = "Members"
		user_type[player(id,"usgn")] = 1
		color[id] = members_color
		end
	end

	for _, u in ipairs(vip) do
	 if player(id,"usgn") == u then
		user[id] = "V.I.P"
		user_type[player(id,"usgn")] = 2
		color[id] = vip_color
		end
	end
	parse('hudtxt2 '..id..' 10 "©000255000Your Usgn is: '..player(id,"usgn")..'" '..User_Hud_X..' '..User_Hud_Y..' '..User_Hud_A..'')
	parse('hudtxt2 '..id..' 11 "©000255000User Type: '..color[id]..''..user[id]..'" '..User_Hud2_X..' '..User_Hud2_Y..' '..User_Hud2_A..'')
end

old Re: see online users script

KagamineLen
User Off Offline

Quote
nope i mean the users online in my server like mods if i can see them if their online as an moderator or something because their abusing their commands in my server, so if i press F4 i can see what user is online in my server

old Re: see online users script

aleksix
User Off Offline

Quote
So, you need a menu to show every mod and admin on a server when they are playing? From now on, there are two ways:
-Small script which creates a multi-page menu for 32 players to show anything you want
-Medium script to make a dynamic menu for admins/mods/etc.

old Re: see online users script

KagamineLen
User Off Offline

Quote
thats right i want to make that but i dont know how

the medium script, the menu that only show admins/mods/vip/members that is online in my server

old Re: see online users script

cortz
Super User Off Offline

Quote
psudo code:
1
2
3
4
5
for everyone on the server
	if user = admin or user = mod or user = vip then
		show on menu
	end
end

old Re: see online users script

Avo
User Off Offline

Quote
Your server doesn't have so many admins or mods I think. Just 2-5, yeah? Is it hard to remember their USGNs?

old Re: see online users script

KagamineLen
User Off Offline

Quote
i have 2 admins, 2 mods, 10 vips

the vips are abusing so i need to see whos vip is online on a menu

i cant even remember all their usgns

old Re: see online users script

KagamineLen
User Off Offline

Quote
i don't want to, because they can't be hacked and i cant see the vips on it i dont remember their usgn, and they even change their name before start abusing
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview