I have searched but found nothing that could help me. I also have looked at Hay gamemode code but I still can't solve the problem.
This is very stupid question because code is so small. And I can't make it work. I want to start making gamemode from very simple code. Here it is:
function joined ( )
fadeCamera(source,true)
spawnPlayer(source,0.0,0.0,5.0)
end
AddEventHandler( "onPlayerJoin", getRootElement(), joined )
Nothing happens when I connect to the server. Could you help me to make player just spawn when connected?
And sorry for my English. I'm from Lithuania.