Jump to content

Question


Best-Killer

Recommended Posts

Posted
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

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

"When i'll grow older, i'll be stronger, they'll call me freedom, just like a waving flag"

"Have confidence in yourself, no problem is impossible in life"

Posted
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 

Posted
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 

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

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