Well Hello There
Recently i have begun scripting with LUA, i use Notepad++ and i type in this code:
function joinHandler()
local x = 1959.55
local y = -1714.46
local z = 10
spawnPlayer(source, x, y, z)
fadeCamera(source, true)
setCameraTarget(source, source)
outputChatBox("Welcome to My Server", source)
end
addEventHandler("onPlayerJoin", getRootElement(), joinHandler)
After that i make a folder in the resource directory, and name it my server. I make a notepad code with meta.xml and do all that it says on the wikipedia.
The problem is when i want to test it out, i can't find how to test my script that i have just tried
please help!
hotmail:
[email protected]