Forum

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

English USGN Display

3 replies
To the start Previous 1 Next To the start

old USGN Display

floria
User Off Offline

Quote
Hi guys, sorry for posting here but i cant do a script like this:

parse('hudtxt2 '..i..' 1 "©000160224USGN: '..usgn[i]..'" 280 50 0')

So, i wanna to display the player the USGN, and i cant. Someone can help me?

old Re: USGN Display

DC
Admin Off Offline

Quote
Use the CS2D Lua command cs2d lua cmd player(id,"usgn") to get the USGN ID of a player. Replace id with id of a player on the server.

old Re: USGN Display

Gajos
BANNED Off Offline

Quote
1
2
3
4
addhook('join','onjoin')
onjoin = function(id)
  parse('hudtxt2 '..id..' 1 "©000160224USGN: '..player(id,'usgn')..'" 280 50 0')
end

old Re: USGN Display

floria
User Off Offline

Quote
user Gajos has written
1
2
3
4
addhook('join','onjoin')
onjoin = function(id)
  parse('hudtxt2 '..id..' 1 "©000160224USGN: '..player(id,'usgn')..'" 280 50 0')
end


Thanks is working!
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview