Jump to content

طلب بسيط


Recommended Posts

Posted

السلام عليكم ابي طلب بسيط ولي هو المودات التحفظ المكان والفلوس وكذا

BACK!

هؤلاء الواقفون على قمة الجبل لم يهبطوا من السماء هناك

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

سبحان الله

----------------------------------

LUA 56%

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