Electro88 Posted April 13, 2016 Share Posted April 13, 2016 i want player register spawn this first code but not working i added onPlayerRegister function wasted (player) if not isElement(player) then return end local x, y, z = 2192.42578125, -1781.095703125, 313.29595947266 local x2, y2, z2 = -1230.02612, 451.12631, 7.18750 local x3, y3, z3 = 2815.3291015625, -1461.5537109375, 32.126281738281 local lvl = tonumber(getElementData(player,"Level") ) if (lvl >= 0) then spawnPlayer (player, x, y, z ) giveWeapon(player, 46) giveWeapon(player, 22,90) setElementModel(player, 0) if (lvl >= 1) then spawnPlayer (player, x2, y2, z2 ) if (lvl >= 15) then spawnPlayer (player, x3, y3, z3 ) fadeCamera( player, true) setCameraTarget( player, player) end end end end addEventHandler ( "onPlayerWasted", root, function() setTimer(wasted, 5000, 1, source) end) -- Event Handlers addEventHandler ( "onPlayerRegister", getRootElement(), wasted) Link to comment
incoding Posted April 13, 2016 Share Posted April 13, 2016 there's no onPlayerRegister event Link to comment
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