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

Real motorbike backflip / frontflip script: https://forum.mtasa.com/viewtopic.php?f=108&t=98191

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'

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

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'

You mean onPlayerWasted

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

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.

Real motorbike backflip / frontflip script: https://forum.mtasa.com/viewtopic.php?f=108&t=98191

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