JasperRieken Posted April 1, 2012 Share Posted April 1, 2012 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
Castillo Posted April 1, 2012 Share Posted April 1, 2012 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
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