sharat Posted June 6, 2016 Share Posted June 6, 2016 I just learned to host a server on LAN, I want to know how am I supposed to put restrictions on players. For example I want the player skin to remain same after they are wasted and are re-spawned. I don't want players to click F1 and get any vehicle they want. Basically I want to control how players on LAN can play the game, like I want to create a death race in which players compete to reach a place and can kill each other on the way and not use hydra. Please help me out. Thanks. Link to comment
Dimos7 Posted June 6, 2016 Share Posted June 6, 2016 function Wasted() skin = getPedSkin(source) setElementModel(source, skin) end addEventHandler("OnPlayerWasted", root, Wasted) Link to comment
sharat Posted June 6, 2016 Author Share Posted June 6, 2016 Where am I supposed to put this code? Is there any easy to understand tutorial? I've searched Youtube and all and couldn't find any information,all I found was "how to create a lan game" and the MTA manual was too complicated to understand. Link to comment
Dimos7 Posted June 6, 2016 Share Posted June 6, 2016 create a new folder name it as you like same that script with .lua and make a meta Link to comment
Bean666 Posted June 6, 2016 Share Posted June 6, 2016 getElementModel would fit better in setElementModel Link to comment
1LoL1 Posted June 6, 2016 Share Posted June 6, 2016 function Wasted() skin = getPedSkin(source) setElementModel(source, skin) end addEventHandler("OnPlayerWasted", root, Wasted) it's addEventHandler("onPlayerWasted", root, Wasted) 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