[ create a new paste ] login | about

Link: http://codepad.org/5j6TjHwY    [ raw code | fork ]

Lua, pasted on Dec 27:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- Server
addEventHandler ('onPlayerLogin',root,
	function (_, Account)
		local accountName = getAccountName( Account )
		triggerClientEvent ('handleClient',source,accountName)
	end
)
-- Client
addEvent ('handleClient',true)
addEventHandler ('handleClient',root,
	function (accountName)
		if tostring (accountName) then
			--guiSetText (guiElement,'Your account name is '..accountName)
			outputChatbox (accountName)
		end
	end
)


Create a new paste based on this one


Comments: