Jump to content

Help!


Miika

Recommended Posts

Posted

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...

Posted
  
addEventHandler("onPlayerJoin",root,function() 
    setElementModel(source,0); 
    outputChatBox("CJ skini vaihdettu automaattisesti",source); 
end); 
  

Posted

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'

Posted
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.

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...