English Get USGN Name icon

28 comments
21.06.11 03:04:17 pm
like 20 like it!
1.40 mb, 430 Downloads
Banaan
User
Offline Off
GetUSGNName is a script which extracts a player's USGN name from their profile on Unreal Software. I doubt it's the simplest way to get a USGN name, but it's the only one I could think of.

Because Lua does not support HTTP, this upload also contains an executable (for Windows) and its Python source (for Linux). If you don't trust the executable, you can compile a new one from the source by using the included Py2Exe setup script.


Usage is very simple:
Code:
1
player(id, "usgnname")



Just extract the files from the right folder (there are separate folders for Windows and Linux) into your CS2D directory, then add the following line to your script:
Code:
1
dofile("sys/lua/usgnname/GetUSGNName.lua")


There's a more detailed readme included if you want more information.



Just to be sure, I ran this file through an online virus checker (I wouldn't want to be responsible for the spread of viruses), it came out clean: http://www.virustotal.com/file-scan/report.html?id=74fa9c4f66458119ce583fb6414095eae01648238ba8e7dda018cbc867eed6fb-1308818490.



Screens aren't really useful for this file since it only provides a helper function. I just took one of the included example uses and took a screen of that.
image
edited 1×, last 23.06.11 10:55:55 am
ok This file has been reviewed and approved by Fraizeraust (20.03.16 09:35:32 am)

Comments

28 comments
Goto Page
To the start Previous 1 2 Next To the start

Log in!

You need to log in to be able to write comments!Log in
23.08.16 12:17:23 pm
like I like it!
Up
Gaios
Security Supporter
Offline Off
thanks
09.05.13 12:27:36 pm
like I like it!
Up
apTyp_ua
User
Offline Off
Good Script!!
13.12.12 05:02:51 pm
Up
W4RG
User
Offline Off
runs on the latest version of CS2D?
16.07.12 12:57:01 pm
like I like it!
Up
Pirtyu
User
Offline Off
Very Good!
16.07.12 10:27:00 am
like I like it!
Up
Happy Killer
BANNED
Offline Off
this is a good script!
15.07.12 09:49:25 pm
Up
SkullzOrig
User
Offline Off
Seen this before, and I also seen a script that allowed you to type @whois [id] that shows you the Ip address USGN name and the USGN id.
15.07.12 09:26:16 pm
Up
Suprise
BANNED
Offline Off
Maybe too old
15.07.12 09:22:52 pm
like I like it!
Up
Misho
User
Offline Off
user Avo who said it!
File: Nice and it's old file btw.
15.07.12 09:10:23 pm
like I like it!
Up
Avo
User
Offline Off
Epic shit. But useless.
17.08.11 04:17:45 pm
like I like it!
Up
-AngelOfDeath-
User
Offline Off
Hmm, its useful in many situations, thx
17.08.11 01:14:29 pm
like I like it!
Up
Mr_God
User
Offline Off
nice
cool awesome 5/5
16.08.11 08:50:30 am
Up
Banaan
User
Offline Off
This is not meant for your own usgn information (that would be a bit useless), it's for getting everybody's USGN name.

What you see in the screenshot is just an example of what can be done with it. I personally use it as an addition to the standard playerlist to get the usgn names of other players - a name often tells a lot more than a number.
15.08.11 07:20:51 am
like I like it!
Up
TheTrollHammer
BANNED
Offline Off
well you can open the console and write usgn_info for your own usgn information.. but still i like it. 4/5
14.08.11 03:53:52 am
like I like it!
Up
MikuAuahDark
User
Offline Off
Awesome script, i put it at my server. 5/5
12.08.11 09:09:54 am
Up
Banaan
User
Offline Off
user dizziness has written:
Banaan, did this code it exist? If no how you make it
Code:
1
player(id, "usgnname")


By making a copy of the player function:
Code:
1
2
3
4
5
6
7
8
_player = player
function player(id, what)
     if what == "usgnname" then
          return usgnname[id]
     else
          return _player(id, what)
     end
end


What actually happens here is that I overwrite the player function; if username is requested, it returns the username, else the value of the old player function is returned.


@user Starkkz: Actually, I was having an awful lot of trouble getting LuaSocket to work (on Linux). I made a topic about it here, but never got an answer. (thread cs2d Lua .so extension - undefined symbol). Lee did get LuaSocket working on Windows though.
07.08.11 05:49:16 pm
like I like it!
Up
Starkkz
Moderator
Offline Off
It would be simple to use LuaSocket, I was making an engine for Lua based on BlitzMax socket stream. Anyway I'm having trouble with UDP sockets.
07.08.11 09:44:30 am
like I like it!
Up
EvO
User
Offline Off
AWESOME!

Vell Done

This Is Nice Script
07.08.11 01:55:23 am
Up
dizziness
User
Offline Off
Banaan, did this code it exist? If no how you make it

Code:
1
player(id, "usgnname")
17.07.11 08:25:43 pm
like I like it!
Up
loik
User
Offline Off
Can't you just ask for there usgn and username???
But whatever 5/5
17.07.11 07:55:20 pm
like I like it!
Up
EngiN33R
Moderator
Offline Off
Well done! This will prove useful... somehow.
edited 1×, last 15.07.12 09:20:09 pm
To the start Previous 1 2 Next To the start