Hadif Posted November 8, 2014 Share Posted November 8, 2014 Hey guys, i need a simple script. A script that kill player if they leave Los Santos. Link to comment
FlyingSpoon Posted November 8, 2014 Share Posted November 8, 2014 Use the MTA Wiki, killPlayer createMarker Just an idea, you can do something like that. Link to comment
jeremaniak Posted November 8, 2014 Share Posted November 8, 2014 also use it on the event onMarkerHit https://wiki.multitheftauto.com/wiki/OnMarkerHit Link to comment
Anubhav Posted November 8, 2014 Share Posted November 8, 2014 Better create a colshape but I suggest a marker in starting. Remember to set it's alpha to 0! Link to comment
SkatCh Posted November 8, 2014 Share 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 ) Link to comment
Hadif Posted November 8, 2014 Author Share 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 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