Miika Posted June 6, 2014 Share Posted June 6, 2014 I'm noob, but I want make resource that change you skin to CJ, if you join. That code not working: function onJoin() setElementModel(player, 0) outputChatBox("CJ skini vaihdettu automaattisesti", source, 2) end addEventHandler("onPlayerJoin", getRootElement(), onJoin) Sorry I'm sorry for my bad english... Link to comment
cheez3d Posted June 6, 2014 Share Posted June 6, 2014 addEventHandler("onPlayerJoin",root,function() setElementModel(source,0); outputChatBox("CJ skini vaihdettu automaattisesti",source); end); Link to comment
ViRuZGamiing Posted June 6, 2014 Share Posted June 6, 2014 Cheez r u an PHP Scripter? you keep using those ';' while they're not needed. @Miika perhaps 'onPlayerSpawn' is better because if they die they'll lose skin or make 'onPlayerDeath' Link to comment
-.Paradox.- Posted June 6, 2014 Share Posted June 6, 2014 Cheez r u an PHP Scripter? you keep using those ';' while they're not needed.@Miika perhaps 'onPlayerSpawn' is better because if they die they'll lose skin or make 'onPlayerDeath' You mean onPlayerWasted Link to comment
Miika Posted June 6, 2014 Author Share Posted June 6, 2014 Cheez r u an PHP Scripter? you keep using those ';' while they're not needed.@Miika perhaps 'onPlayerSpawn' is better because if they die they'll lose skin or make 'onPlayerDeath' "onPlayerWasted" not working. It change the skin, but it spawn new skin with player spawn. 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