Jump to content

Question


Best-Killer

Recommended Posts

onClientPlayerDamage  
cancelEvent() 

no no u didn't understand me xD

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...