Jump to content

[HELP] Why my code ERROR


KainDepZai

Recommended Posts

  
local pos = getElementPosition(thePlayer) 
local x,y,z = -2337.544921875, -1618.7431640625, 483.71304321289 
function toxic (thePlayer) 
    if  x,y,z == "pos" then  
        outputChatBox("Bạn bị nhiễm phóng xạ từ boss") 
        setElementData(player,"blood",-1000) 
    end 
end 
setTimer(toxic,10000,0) 

Link to comment
local x,y,z = getElementPosition(thePlayer) 
local x1,y1,z1 = -2337.544921875, -1618.7431640625, 483.71304321289 
function toxic (thePlayer) 
    if x == x1 and y == y1 and z == z1  then 
        outputChatBox("Bạn bị nhiễm phóng xạ từ boss") 
        setElementData(player,"blood",-1000) 
    end 
end 
setTimer(toxic,10000,0) 

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