Jump to content

طلب بسيط


Recommended Posts

  
function o(player) 
local x,y,z = getElementPosition (player ) 
local accounta = getPlayerAccount (player) 
setAccountData ( accounta, "c1", x ) 
setAccountData ( accounta, "c2", y ) 
setAccountData ( accounta, "c3", z ) 
end 
  
  
  
function f(player) 
local accounta = getPlayerAccount ( player ) 
local b1 = (getAccountData ( accounta, "c1" ) or "N/A") 
local b2 = (getAccountData ( accounta, "c2" ) or "N/A") 
local b3 = (getAccountData ( accounta, "c3" ) or "N/A") 
setElementPosition ( player, b1, b2, b3) 
end 
  
  
  
addEventHandler ("onResourceStart", resourceRoot, function () 
 for _,v in ipairs (getElementsByType ("player")) do 
  bindKey (v, "6", "down", o) 
  bindKey (v, "5", "down", f) 
 end 
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...