The moVer Posted May 1, 2015 Share Posted May 1, 2015 السلام عليكم ابي طلب بسيط ولي هو المودات التحفظ المكان والفلوس وكذا Link to comment
yazan Posted May 2, 2015 Share Posted May 2, 2015 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
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