Jump to content

|Help| Spawning Point.


Allentus

Recommended Posts

Posted

Hello people!

I am currently running my Test server,with some small scripts made by me.

So i would like to ask you about a explanation how to create a spawning point so when i join the server or anyone else to be spawned in one location.

I would appreciate every tutorial or already done script from the Community!

Thanks in advance!

P.S;Hope this is the right section :|

350x20.png

Impossible is a word to be found only in the dictionary of fools.

Napoleon Bonaparte

Posted (edited)

local spawnX, spawnY, spawnZ = 1959.55, -1714.46, 10

function joinHandler()

spawnPlayer(source, spawnX, spawnY, spawnZ)

fadeCamera(source, true)

setCameraTarget(source, source)

outputChatBox("Welcome to My Server", source)

end

addEventHandler("onPlayerJoin", getRootElement(), joinHandler)

Edited by Guest

"Your bad day just got worse"

Ingame : Woods or Mike

LUA Developer

Community Resources uploaded : 2

Meta Gaming:MiniMissions - Owner

Posted
function spawn () 
spawnPlayer(source, x, y, z) 
end 
addEventHandler("onPlayerConnect", root, spawn) 
  

Even Woods's code (Wiki :P) works but I gave u the needed structure

and you gotta change the x y and z

Posted

Thanks a lot guys!

Great community like always ;)

Please some free moderator feel free to lock the topic. :)

350x20.png

Impossible is a word to be found only in the dictionary of fools.

Napoleon Bonaparte

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...