EngMohamedLish Posted June 6, 2015 Posted June 6, 2015 (edited) addEventHandler ("onPlayerLogin", root, function() if getElementData(source, "FirstTimeComplete") == false then setElementData (source, "FirstTimeComplete", true) setPlayerMoney(source, 500) end local x, y, z = 2287.66113, 558.75110, 7.78125 spawnPlayer (source, x, y, z) end) I have a problem here, i made this script to spawn players when they join to the specified "x, y, z" and set 500 cash for NEW players, only. But, it doesn't work, and no error in debugscript 3, Can someone help, guys? Edited June 6, 2015 by Guest
Blaawee Posted June 6, 2015 Posted June 6, 2015 addEventHandler( "onPlayerLogin", root, function( ) if getElementData(source, "FirstTimeComplete") == false then setElementData (source, "FirstTimeComplete", true) setPlayerMoney(source, 500) end local x, y, z = 2287.66113, 558.75110, 7.78125 spawnPlayer ( source, x, y, z ) fadeCamera ( source, true ) setCameraTarget ( source, source ) end )
EngMohamedLish Posted June 6, 2015 Author Posted June 6, 2015 addEventHandler( "onPlayerLogin", root, function( ) if getElementData(source, "FirstTimeComplete") == false then setElementData (source, "FirstTimeComplete", true) setPlayerMoney(source, 500) end local x, y, z = 2287.66113, 558.75110, 7.78125 spawnPlayer ( source, x, y, z ) fadeCamera ( source, true ) setCameraTarget ( source, source ) end ) omg What stupid Am i !! LOL, i forgot to fade camera and set its target , Thank you man
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