Jump to content

iMr.Dawix~#

Members
  • Posts

    1,647
  • Joined

  • Last visited

Everything posted by iMr.Dawix~#

  1. الماركر الثاني نفس مككان الماركر الأول وكل واحد يعطيك الف بتسيرر الفين غير احداثياته وخلاص
  2. end الناقص بس cleaninfos() و function cleanInfos() guiSetText(GUIEditor_Edit[1], "") guiSetText(GUIEditor_Edit[2], "") guiSetText(GUIEditor_Label[1], "لقد ارسلت الرسالة بنجاح") guiLabelSetColor(GUIEditor_Label[5],0,255,0) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) guiSetInputEnabled ( false) end يعني كذا GUIEditor_Window[1] = guiCreateWindow(0.1807,0.1745,0.6641,0.6745,"",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Label[1] = guiCreateLabel(165,50,340,81,"",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],23,200,150) guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(165,134,340,81,"",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],23,200,150) guiLabelSetHorizontalAlign(GUIEditor_Label[2],"center",false) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(458,241,218,87,"",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],233,53,243) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(137,241,218,87,"",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],233,53,243) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(42,275,260,66,"",false,GUIEditor_Window[1]) GUIEditor_Edit[2] = guiCreateEdit(353,275,260,66,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(280,381,96,62,"",false,GUIEditor_Window[1]) GUIEditor_Label[5] = guiCreateLabel(59,475,538,33,"لم يتم ارسال الرسالة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[5],255,0,0) guiLabelSetHorizontalAlign(GUIEditor_Label[5],"center",false) guiSetVisible(GUIEditor_Window[1], false) function wnd () guiSetVisible(GUIEditor_Window[1], true) showCursor(true) guiSetInputEnabled ( true) end bindKey( "F10", "down", wnd) addEventHandler("onClientGUIClick",getRootElement(), function () local ggt = guiGetText(GUIEditor_Edit[1]) local gtt = guiGetText(GUIEditor_Edit[2]) if ( source == GUIEditor_Button[1] ) then triggerServerEvent("get",getLocalPlayer(),ggt,gtt) cleanInfos() else if (guiSetText(GUIEditor_Edit[1], "") ) then guiSetText(GUIEditor_Label[1], "لم يتم ارسال الرسالة") guiLabelSetColor(GUIEditor_Label[5],255,0,0) elseif (guiSetText(GUIEditor_Edit[2], "") ) then guiSetText(GUIEditor_Label[1], "لم يتم ارسال الرسالة") guiLabelSetColor(GUIEditor_Label[5],255,0,0) end end end) function cleanInfos() guiSetText(GUIEditor_Edit[1], "") guiSetText(GUIEditor_Edit[2], "") guiSetText(GUIEditor_Label[1], "لقد ارسلت الرسالة بنجاح") guiLabelSetColor(GUIEditor_Label[5],0,255,0) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) guiSetInputEnabled ( false) end
  3. addEventHandler("onClientGUIClick",getRootElement(), function () local ggt = guiGetText(GUIEditor_Edit[1]) local gtt = guiGetText(GUIEditor_Edit[2]) if ( source == GUIEditor_Button[1] ) then triggerServerEvent("get",getLocalPlayer(),ggt,gtt) cleanInfos() else if (guiSetText(GUIEditor_Edit[1], "") ) then guiSetText(GUIEditor_Label[1], "لم يتم ارسال الرسالة") guiLabelSetColor(GUIEditor_Label[5],255,0,0) elseif (guiSetText(GUIEditor_Edit[2], "") ) then guiSetText(GUIEditor_Label[1], "لم يتم ارسال الرسالة") guiLabelSetColor(GUIEditor_Label[5],255,0,0) end end ) خرابيط وش از الخرابيط؟
  4. addEventHandler("onClientGUIClick",getRootElement(), function () local ggt = guiGetText(GUIEditor_Edit[1]) local gtt = guiGetText(GUIEditor_Edit[2]) if ( source == GUIEditor_Button[1] ) then triggerServerEvent("get",getLocalPlayer(),ggt,gtt) cleanInfos() else if (guiSetText(GUIEditor_Edit[1], "") ) then guiSetText(GUIEditor_Label[1], "لم يتم ارسال الرسالة") guiLabelSetColor(GUIEditor_Label[5],255,0,0) elseif (guiSetText(GUIEditor_Edit[2], "") ) then guiSetText(GUIEditor_Label[1], "لم يتم ارسال الرسالة") guiLabelSetColor(GUIEditor_Label[5],255,0,0) end end )
  5. http://www.arabxoops.com/modules/colorcodes/
  6. نفس كوده ادري انه نفس كوده بس هو ما عرف يستخدمه كيف
  7. guiSetProperty(اسم الزر,"NormalTextColour","ffتحط كود اللون وقبله")
  8. طيب طيب... مع آني عآرف انه مافي آي امل اني اتعلم لكن نفسي افهم شيء ! addEventHandler('onClientPlayerJoin', root, function() outputChatBox('* ' .. getPlayerName(source) .. ' has joined the game', 255, 100, 100) end ) كيف جآ onClientPlayerJoin والكود ذا براسه مافي onClientPlayerJoin : -- we register greetPlayer as a handler for the event function greetPlayer ( ) -- we store the player's name local joinedPlayerName = getPlayerName ( source ) local serverName = getServerName( ) -- and send him a greeting outputChatBox ( "Welcome " .. joinedPlayerName .. " to ".. serverName .."!" , source, 255, 255, 255 ) end addEventHandler ( "onPlayerJoin", getRootElement(), greetPlayer ) !فيه احداث للكنت واحداث للسيرفر event"onClientPlayerJoin"---كلنت event:"onPlayerJoin"---------سيرفر
  9. لأنك سويت اكثر من موضوع ونفس الخطا ما تعلمت من خطأك الي قبل والقوانين انا اقراها في خمس دقايق
  10. setMarkerColor ( markername, red, green, blue, alpha )
  11. اكيد يضبط لو تجرب قبل ما تسأل احسن
  12. خذ ملف تي اكس دي للأوبجكت txdworkshop وافتحه ببرنامج واستخرج الصوره واستبدلها ورجعها وخلاص
  13. marker = createMarker ( -3588.87646, -3002.67407, 44.00417, "cylinder", 2, 255, 0, 0, 255 ) function NssoR (player) if (marker) then setTimer ( setElementPosition, 5000, 1, player ) setElementPosition ( player, -3609.04761, -2992.59253, 50.03273 ) end end addEventHandler ( "onMarkerHit", marker, NssoR )
  14. destroyElement setVehicleEngineState ما قال حذف السيارة قال إخفاء setElementAlpha
  15. addEventHandler("onPlayerWasted", root, function () setTimer(function(source) local team = getPlayerTeam(source) if (team and getTeamName(team) == ("Grove")) then local skinid = getElementModel(source) spawnPlayer(source, -1819.62439, -1610.32141, 23.01563, 0, skinid) giveWeapon ( source , 16, 1 ) giveWeapon ( source , 31, 200 ) giveWeapon ( source , 24, 200 ) end end, 1000, 1, source)----هنا الوقت بعد الإند end)
  16. -- Client addEventHandler("onClientPlayerDamage", root, function(attacker) if attacker and getElementType(attacker) == "player" then local team = getPlayerTeam(source) if team and team == getTeamFromName ("Police") then triggerServerEvent( "frind", getLocalPlayer() ) cancelEvent() setElementHealth(attacker, getElementHealth(attacker) - 2) end end end ) -- Server addEvent( "frind",true) addEventHandler("frind",root, for _,v in ipairs( getElementsByType( "team" ) ) do setTeamFriendlyFire( v, false ) end) يمكن كذا يضبط؟
  17. ! تقدر بس يسبب لاق لأنك لازم تاخذ فيديو وتفككه لصور في برامج كثيره وتخليه كل صوره تجي بعد صوره او startVedio <<
  18. addEventHandler("onClientPlayerDamage", root, function(attacker) if attacker and getElementType(attacker) == "player" then local team = getPlayerTeam(source) if team and team == getTeamFromName("Police") then cancelEvent() setElementHealth(attacker, getElementHealth(attacker) - 1) end end end)
×
×
  • Create New...