Karuzo Posted February 11, 2014 Posted February 11, 2014 Hey Guys, I have a Simple-Script, but it doesn't really work.. function Spawn1(thePlayer) spawnPlayer(thePlayer, 1177.51917, -1324.05542, 14.07470,-90, math.random(1,50) , 0, 0, nil) outputChatBox("Welcome!", thePlayer, 0, 255, 0, false) end addEventHandler("onPlayerJoin", getRootElement(), Spawn1)
xeon17 Posted February 11, 2014 Posted February 11, 2014 function Spawn1(source) spawnPlayer(source, 1177.51917, -1324.05542, 14.07470,-90, math.random(1,50) , 0, 0, nil) outputChatBox("Welcome!", source, 0, 255, 0, false) end addEventHandler("onPlayerJoin", getRootElement(), Spawn1)
iPrestege Posted February 11, 2014 Posted February 11, 2014 function Spawn1(source) spawnPlayer(source, 1177.51917, -1324.05542, 14.07470,-90, math.random(1,50) , 0, 0, nil) outputChatBox("Welcome!", source, 0, 255, 0, false) end addEventHandler("onPlayerJoin", getRootElement(), Spawn1) Don't defined the source because it's already defined from the event as a player!
Karuzo Posted February 12, 2014 Author Posted February 12, 2014 So i've got another question. this is my code : spawnPlayer(source, 1177.51917, -1324.05542, 14.07470,-90, math.random(1,50) , 0, 0, nil) But for some reasons the player gets the CJ Skin (ID 0) and is freezed. Why ?
Anubhav Posted February 12, 2014 Posted February 12, 2014 spawnPlayer(source, 1177.51917, -1324.05542, 14.07470,-90, math.random (1,50), 0, 0, false) setElementFrozen(source,false) try this. It is sure that the player won't be frozen.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now