Hadif Posted November 8, 2014 Posted November 8, 2014 Hey guys, i need a simple script. A script that kill player if they leave Los Santos.
FlyingSpoon Posted November 8, 2014 Posted November 8, 2014 Use the MTA Wiki, killPlayer createMarker Just an idea, you can do something like that.
jeremaniak Posted November 8, 2014 Posted November 8, 2014 also use it on the event onMarkerHit https://wiki.multitheftauto.com/wiki/OnMarkerHit
Anubhav Posted November 8, 2014 Posted November 8, 2014 Better create a colshape but I suggest a marker in starting. Remember to set it's alpha to 0!
SkatCh Posted November 8, 2014 Posted November 8, 2014 Try to use colshape example : local LS = createColRectangle (-800.81671, -2990.10657, 5100, 3330) function LSzone ( thePlayer ) if getElementType ( thePlayer ) == "player" then -- if the element that left was player killPlayer ( thePlayer ) -- kill the player outputChatBox ( "You are not allowed to leave Los Santos!", thePlayer ) end end addEventHandler ( "onColShapeLeave", LS, LSzone )
Hadif Posted November 8, 2014 Author Posted November 8, 2014 Try to use colshape example : local LS = createColRectangle (-800.81671, -2990.10657, 5100, 3330) function LSzone ( thePlayer ) if getElementType ( thePlayer ) == "player" then -- if the element that left was player killPlayer ( thePlayer ) -- kill the player outputChatBox ( "You are not allowed to leave Los Santos!", thePlayer ) end end addEventHandler ( "onColShapeLeave", LS, LSzone ) i think, this will help. thnk you
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