Jump to content

[Lua]Warp Help


Recommended Posts

function warpMexican(player) 
local theAccount = getPlayerAccount(player) 
if theAccount then 
local accountName = getAccountName(theAccount) 
if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then 
setElementPosition(player,2568.22,-1279.25,25.62) 
end 
end 
end 
setTimer(warpMexican, 10000, 0) 
addCommandHandler("basewarp",warpMexican) 

I think it's a easy thing but the timer fails

Link to comment
function warpMexican ( player ) 
    local theAccount = getPlayerAccount ( player ) 
    if ( theAccount ) then 
        local accountName = getAccountName ( theAccount ) 
        if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then 
            setTimer ( setElementPosition, 10000, 1, player, 2568.22, -1279.25, 25.62 ) 
        end 
    end 
end 
addCommandHandler ( "basewarp",warpMexican ) 

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