-
Posts
251 -
Joined
-
Last visited
Everything posted by Ahmed Eka
-
Hello Guys, I made a mode but I can't complete it I don't know where is the bug .. addEvent("setNukes",true) local img = dxCreateTexture("nucklear.png"); dxSetTextureEdge(img,"mirror"); function setNuke() x, y, z = getElementPosition(marker[localPlayer]) radius = 3; for i = 1, 1 do x = x + math.cos(math.rad((1/1)-i))*radius; y = y + math.sin(math.rad((1/1)-i))*radius; xr = x + math.cos(math.rad((1/1)-(i)))*radius; yr = y + math.sin(math.rad((1/1)-(i)))*radius; dxDrawMaterialLine3D(x, y, z-2, xr, yr, z+150, img, 250) end end addEventHandler("onClientRender", getRootElement(), setNuke ) addEventHandler( "setNukes", getRootElement(), setNuke ) addCommandHandler ( "nuke", function ( player ) local x,y,z = getElementPosition ( player ) setElementData(player,"NukePlayer",true) setElementAlpha( marker [ player ], 0 ) triggerClientEvent(root, "startAlarmnuke", root) triggerClientEvent(root, "setNukes", root) end ) when I write "nuke" the photo come to my position when any player write the command the photo disappeared from me .. I don't Know Why .. What Can i do ? Help Please .. Thanks All
-
okey what's wrong ? local players = {} function TimerFunc(players) players[player] = 0 if getElementData(players[player],"NukePlayer") then outputChatBox("1") players[player] = players[player] + 1 outputChatBox(players[player]) if players[player] == 10 then setElementData(player,"NukePlayer",false) if isElement(marker [ player ]) then destroyElement(marker [ player ]) if isElement(object [ player ]) then destroyElement(object [ player ]) players[player] = 0 end end end end end setTimer(TimerFunc,1000,0) ??
-
طيب شكرا لك بعدلها addEventHandler("onPlayerLogin",root, function(source) local getData = getElementData(source,"PlayTime") local account = getAccountName(getPlayerAccount(source)) if account then if getData >= 500 then if not isObjectInACLGroup("user.".. account, aclGetGroup('lvl1')) then aclGroupAddObject (aclGetGroup("lvl1"), "user."..account) end end end end)
-
لما تفتح الويكي يكون مكتوب فوق Server Side يعني سيرفر Client Side يعني كلينت Shared Function يعني سيرفر و كلينت ..
-
اخي فهمني انت تبيه لما ينزل من السياره يرجعه مو مخفي ؟
-
تسوي تحقق ان عدد الساعات 100 مثلا يعطيه رتبه .. مثال .. addEventHandler("onPlayerLogin",root, function(player) local getData = getElementData(player,"PlayTime") local account = getAccountName(getPlayerAccount(player)) if account then if getData >= 500 then aclGroupAddObject (aclGetGroup("lvl1"), "user."..account) end end end) بس شيل PlayTime و حط مكانها الداتا حقت الساعات و مكان 500 الساعات يلي تبيها ..
-
يا اخوي .. مثل ما اعطاك فوق و قياده السياره على البحر setWorldSpecialPropertyEnabled ( "hovercars", true ) و طيران السياره setWorldSpecialPropertyEnabled ( "aircars", true ) و حقت القفزه العاليه لازم تخلي الجاذبيه قليله تستخدم setGravity
-
al img = dxCreateTexture("nucklear.png") addEvent("setNukes",true) function setNuke( ) local x,y,z = getElementPosition( marker[localPlayer] ) local setNuke1 = dxDrawMaterialLine3D (x+180,y+180,z+400,x,y,z,img, 300) end addEventHandler( "onClientRender", getRootElement(), setNuke ) addEventHandler( "setNukes", getRootElement(), setNuke ) سلام عليكم و رحمه الله و بركاته الحين انا حطيت موضوع مره و ما حد ساعدني و بحطو تاني الحين انا ابي اخلي الصوره هي تدور حول نفسها كيف ؟؟ و كمان ابي اخليها عموديه لاني تيجي مائله .. و لما اجي اسوي جدول عشان لو اكتر من شخص سوو ما تظبط مدري ليه .. كيف اسوي جدول ليها بحيث لما شخص يسوي ما تروح من الكان مسوي .. شكرا ..
-
تفضل اخوي هاد يلي فهمتو انا .. انو لما يكتب كوماند يجيب الجروب حقه اذا سوات يحطو في تيم سوات .. function SetPlayerSwat(player) if getElementData(player,"Group") == "SWAT" then setPlayerTeam(player,getTeamFromName('SWAT')) else outputChatBox("You Aren't in A Swat Group",player) end end addCommandHandler("setmeswat",SetPlayerSwat)
-
طيب تمام .. كيف اخليها تدور حول نفسها ؟
-
local img = dxCreateTexture("nucklear.png") addEvent("setNukes",true) function setNuke( ) local x,y,z = getElementPosition( marker[localPlayer] ) local setNuke1 = dxDrawMaterialLine3D (x+180,y+180,z+400,x,y,z,img, 300) end addEventHandler( "onClientRender", getRootElement(), setNuke ) addEventHandler( "setNukes", getRootElement(), setNuke ) الكود هاد الحين انا هاد الكود و مسوي كوماند لما يكتب باف 8 كلمه يجي ماركر و فيه هاد الصوره الحين انا ابي اخلي الصوره تلف حول نفسها و اخليها عموديه لانها تيجي مائله و اخليها وهميه كيف ؟
-
طيب ياخوي شكرا لك الحين في مشكله انا ابي اخلي الصوره تدور حول نفسها كيف ؟؟ للعلم الصوره على هيئه اوبجكت عادي و تكون على الارض عادي .. واستفسار اخير كيف اقدر اخفيها ؟