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. My ingame nickname is Vaulthuntr. Host a server? Join a server?
FlyingSpoon Posted November 8, 2014 Posted November 8, 2014 Use the MTA Wiki, killPlayer createMarker Just an idea, you can do something like that. GitHub: https://github.com/flyingspoon YouTube: https://www.youtube.com/channel/UClsnd4SEid3gob33DSk1-GQ
Hadif Posted November 8, 2014 Author Posted November 8, 2014 ok bro .. My ingame nickname is Vaulthuntr. Host a server? Join a server?
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! See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
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 ) Failure is simply an opportunity to begin again more intelligently - Henry Ford
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 My ingame nickname is Vaulthuntr. Host a server? Join a server?
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