VenomOG Posted February 15, 2018 Share Posted February 15, 2018 Hello can anyone help me with the code if cop kills criminal they go jail?ty Link to comment
NeXuS™ Posted February 15, 2018 Share Posted February 15, 2018 onPlayerWasted, getPlayerWantedLevel and setElementPosition. You'll have to create a jail system for it too. You could use setElementData and a colshape to check if he leaves the jail area. Link to comment
VenomOG Posted February 15, 2018 Author Share Posted February 15, 2018 addEventHandler( "onPlayerWasted", getRootElement( ), function() if playerIsArrested then onPlayerWasted sendPlayerTo Jail exports.jail.sendClientMessage( sendPlayerToJail, 2000, 1, source, 0, 0, 3 ) i end ) Help me out Link to comment
LLCoolJ Posted February 16, 2018 Share Posted February 16, 2018 https://wiki.multitheftauto.com/wiki/Scripting_Introduction 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