VenomOG Posted February 15, 2018 Posted February 15, 2018 Hello can anyone help me with the code if cop kills criminal they go jail?ty
NeXuS™ Posted February 15, 2018 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.
VenomOG Posted February 15, 2018 Author 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
LLCoolJ Posted February 16, 2018 Posted February 16, 2018 https://wiki.multitheftauto.com/wiki/Scripting_Introduction
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