Forum

> > CS2D > Scripts > USGN script
Forums overviewCS2D overview Scripts overviewLog in to reply

English USGN script

7 replies
To the start Previous 1 Next To the start

old USGN script

Spook MQ Hacker
BANNED Off Offline

Quote
guys can you make a SCRIPT that USGN like this:

1
USGN:xxxxx
please make 1 guys?

old Re: USGN script

EngiN33R
Moderator Off Offline

Quote
1
2
3
for _,i in ipairs(player(0,"table")) do
	usgn=player(i,"usgn")
end

No but really, I have no idea what you mean by that.

old Re: USGN script

Kel9290
User Off Offline

Quote
shows your usgn when you say "!usgn"
1
2
3
4
5
6
addhook("say","_say")
function _say(i,t)
	if t=="!usgn" then
		msg2(i,"Your U.S.G.N. is "..player(i,"usgn"))
	end
end
shows selected player usgn (!usgn <id>)
1
2
3
4
5
6
7
8
9
10
11
addhook("say","_say")
function _say(i,t)
	if t:sub(1,5)=="!usgn" then
		local u = tonumber(t:sub(7,8))
		if player(u,"exists")==true then
			msg2(i,""..player(u,"name").."'s  U.S.G.N. is "..player(u,"usgn"))
		else
			msg2(i,"©000200000Player with this ID doesn't not exists!")
		end
	end
end
text on hud with your usgn when you join game
1
2
3
4
addhook("join","_join")
function _join(i)
	parse("hudtxt2 "..i.." 49 "©064128064Your U.S.G.N. is "..player(i,"usgn").."" 0 120 0")
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview