Best-Killer Posted January 29, 2016 Share Posted January 29, 2016 Hello Guys, How i can make anti DM ?? what functions/events needed ? Link to comment
KariiiM Posted January 29, 2016 Share Posted January 29, 2016 onClientPlayerDamage cancelEvent() Link to comment
Best-Killer Posted January 29, 2016 Author Share Posted January 29, 2016 onClientPlayerDamage cancelEvent() no no u didn't understand me example : it's gui when player Kill some in LS they gui showed to the killed player the he chose Jail Him or Forgive him i hope u understand me now Link to comment
Mann56 Posted January 29, 2016 Share Posted January 29, 2016 onClientPlayerDamage cancelEvent() no no u didn't understand me example : it's gui when player Kill some in LS they gui showed to the killed player the he chose Jail Him or Forgive him i hope u understand me now Use the event when the player is killed : onPlayerWasted Get the killer and then if you want a gui to pop up, then use triggerClientEvent and make a gui. Link to comment
Best-Killer Posted January 29, 2016 Author Share Posted January 29, 2016 and what about : how know players in LS ?? Link to comment
KariiiM Posted January 29, 2016 Share Posted January 29, 2016 and what about : how know players in LS ?? Simply you've to make a check, local x,y,z = getElementPosition(localPlayer) local cityname = getZoneName ( x, y, z, true) if (cityname == Los Santos) then --[Your code] end Link to comment
ViRuZGamiing Posted January 29, 2016 Share Posted January 29, 2016 and what about : how know players in LS ?? Simply you've to make a check, local x,y,z = getElementPosition(localPlayer) local cityname = getZoneName ( x, y, z, true) if (cityname == Los Santos) then --[Your code] end [b]getZoneName[/b]: Returns the string of the zone name => local x,y,z = getElementPosition(localPlayer) local cityname = getZoneName ( x, y, z, true) if (cityname == "Los Santos") then --[Your code] end Link to comment
KariiiM Posted January 30, 2016 Share Posted January 30, 2016 I wasn't using notePad plus writing in a fast mood, I didn't re read what I wrote thanks for caring 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