MSHOOSH Posted July 24, 2013 Share Posted July 24, 2013 السلام عليكم و رحمه الله و بركاته انا بسوي لوحه سباون حق الديث ماتش بس !!! كيف يجيب الاحدثيات و اي دي الشخصيه و الاسلحة و مكان السباون و اسم التيم ^^ Link to comment
فاّرس Posted July 24, 2013 Share Posted July 24, 2013 "-3855" posY="1747" posZ="43" lookX="-3796" lookY="1679" lookZ="0" /> client / server , function getMapData(data,valueData) if ( data and valueData ) then for i,v in ipairs(getElementsByType(""..data.."")) do if ( v ) then local value = getElementData(v,""..valueData.."") if ( value ) then return value else return outputDebugString("Bad Argument value data .",1) end else return outputDebugString("Bad Argument data .",1) end end else return outputDebugString("Please Add data / value data .",1) end end exampl (client) : addEventHandler("onClientRender",root,function() local xxx = getMapData("jailCamera","posX") if ( xxx ) then guiSetText(guielm,""..xxx.."") end end) ماجربته Link to comment
MSHOOSH Posted July 24, 2013 Author Share Posted July 24, 2013 "deathmatch" version="1.0" time="1:00" weather="2"> "0" respawntime="3000" maxkills="100" ff="true"/> "12" m="0" locked="true"/> team="Blue" red="0" green="0" blue="255"> "23" ammo="9999"/> "26" ammo="9999"/> "177"/> "3276.8188476562" posY="716.1123046875" posZ="119.30781555176" rot="0" randx="5" randy="5" randz="0"/> team="Red" red="255" green="0" blue="0"> "23" ammo="9999"/> "26" ammo="9999"/> "170"/> "3331.0649414062" posY="815.09704589844" posZ="119.10781097412" rot="0" randx="5" randy="3" randz="0"/> هذا ملف الماب --- addEventHandler("onClientRender",root,function() local xxx = getMapData("spawn","posX") if ( xxx ) then guiSetText(guielm,""..xxx.."") end end) اذا استخدمتها فيه 2 سباون و بتصير لخبطه Link to comment
فاّرس Posted July 24, 2013 Share Posted July 24, 2013 function getMapData(data,valueData) if ( data and valueData ) then for i,v in ipairs(getElementsByType(""..data.."")) do if ( v ) then local value = getElementData(v,""..valueData.."") if ( value ) then return value else return outputDebugString("Bad Argument value data .",1) end else return outputDebugString("Bad Argument data .",1) end end else return outputDebugString("Please Add data / value data .",1) end end addEventHandler("onClientGUIClick",Button, function() local x = getMapData("spawn","posX") local y = getMapData("spawn","posY") local z = getMapData("spawn","posZ") if x and y and z then setElementPosition(localPlayer,x,y,z) end end,false ) بالنسبه للتلخبط جرب غير المتغيرات ذذ مثلا spawn > spawn2 Link to comment
MSHOOSH Posted July 24, 2013 Author Share Posted July 24, 2013 function getMapData(data,valueData) if ( data and valueData ) then for i,v in ipairs(getElementsByType(""..data.."")) do if ( v ) then local value = getElementData(v,""..valueData.."") if ( value ) then return value else return outputDebugString("Bad Argument value data .",1) end else return outputDebugString("Bad Argument data .",1) end end else return outputDebugString("Please Add data / value data .",1) end end addEventHandler("onClientGUIClick",Button, function() local x = getMapData("spawn","posX") local y = getMapData("spawn","posY") local z = getMapData("spawn","posZ") if x and y and z then setElementPosition(localPlayer,x,y,z) end end,false ) بالنسبه للتلخبط جرب غير المتغيرات ذذ مثلا spawn > spawn2 بجرب + يعطيك العافية 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