Jump to content

#|_oskar_|#

Members
  • Posts

    897
  • Joined

  • Last visited

Everything posted by #|_oskar_|#

  1. انت تبي اى شخص يقدر يكنب و الكونسل والادمن بس يشوفو الكلام ؟
  2. استخدم getElementDimension
  3. الكود سيرفر , والتيكست كلينت , ماينفع تدمجهم مع بعض , استخدم الترايقر كنت اوضح له شئ محدد + مشكور ع التنبيه
  4. ممكن مثال ؟ ما فهمت على الويكي سويته لك ينسخ الاحداثيات بس تضغط على x bindKey("x", "down", function() local x, y, z, lx, ly, lz = getCameraMatrix () x, lx = x + 1, lx + 1 outputChatBox(x..','..y..','..z..','..x..','..y..','..z,255,90,90) setClipboard(x..','..y..','..z..','..x..','..y..','..z) end)
  5. سكربت جميل ومفيد للسيرفرات
  6. function dxdraw() dxDrawText ("U have Receive new gift" ,"left","top") end addCommandHandler ("Gift", function () for _,v in ipairs (getElementsByType("player")) do local Money = math.random ( 1000, 5000 ) givePlayerMoney (v, Money) setElementHealth (v, 100) setPedArmor (v, 100) addEventHandler("onClientRender" ,resourceRoot,dxdraw ) setTimer(function () removeEventHandler("onClientRender" ,resourceRoot,dxdraw ) end, 8000, 1 ) end end)
  7. المفروض تضيف الرندر عشان يظهر ال dxDrawText onClientRender
  8. استخدم معهم createObject attachElementToElement
  9. الله يعافيك + مافى ازعاج ولا شئ
  10. كمان نفس الشي , ولما عدلت عليه ما اشتغلت اللوحة الدي بوق يقولي client.lua attempt to index global 'Font' (a nil value) انت تضيف الكودين مع بعض زى كذا FontGrid = guiCreateFont( "Font.ttf", 10 ) guiSetFont ( اسم القريد,FontGrid ) او ممكن تسويه كذا guiSetFont ( اسم القريد,guiCreateFont( "Font.ttf", 10 )) وبس
  11. صراحه مود جميل واللى طارحه اجمل واصل ولا توقف تقبل مرورى
  12. لتغيير اللون استخدم guiGridListSetItemColor ولتغيير الخط استخدم guiSetFont اى استفتسار تفضل قوله
  13. مو متأكد انه بضبط او لا بس جرب guiCheckBoxSetSelected( getControl(wndMain, 'jetback'), doesPedHaveJetPack(g_Me), true)
  14. العالم الوهمى استخدم setElementDimension
  15. ناقصك تسوى جدول للاماكن عشان تحطهم بالقريد
  16. كمل انت باقى المود setTimer removeEventHandler
  17. غريبه شغال عندي المهم جرب local screenW, screenH = guiGetScreenSize() window = guiCreateWindow((screenW - 241) / 2, (screenH - 306) / 2, 241, 306, "", false) guiWindowSetSizable(window, false) guiSetAlpha(window, 1.00) gridlist = guiCreateGridList(9, 27, 222, 238, false, window) column = guiGridListAddColumn(gridlist, "اللاعبين", 0.9) edit = guiCreateEdit(107, 270, 124, 27, "", false, window) button = guiCreateButton(9, 270, 88, 27, "ارسال", false, window) function Players() guiGridListClear(gridlist) for _, plr in ipairs(getElementsByType("player")) do local row = guiGridListAddRow (gridlist) guiGridListSetItemText ( gridlist, row, column, getPlayerName (plr), false, false ) end end addEventHandler ( "onClientGUIClick",button,function () if ( guiGridListGetSelectedItem(gridlist) ~= -1 ) then local shout = guiGridListGetItemText (gridlist, guiGridListGetSelectedItem (gridlist), column ) Shout = guiGetText (edit) triggerServerEvent ( "send",localPlayer,shout,Shout) else outputChatBox("من فضلك اختر اسم لاعب",245,5,0) end end,false) function shoutdx() dxDrawText(Shout, 0 - 1, 269 - 1, 800 - 1, 332 - 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawText(Shout, 0 + 1, 269 - 1, 800 + 1, 332 - 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawText(Shout, 0 - 1, 269 + 1, 800 - 1, 332 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawText(Shout, 0 + 1, 269 + 1, 800 + 1, 332 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawText(Shout, (screenW - 800) / 2, (screenH - 63) / 2, ((screenW - 800) / 2) + 800, ( (screenH - 63) / 2) + 63, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) end addEvent("Shot", true ) addEventHandler("Shot", root, function () addEventHandler("onClientRender", root,shoutdx) end) guiSetVisible(window,false) bindKey("F5","down", function ( ) guiSetVisible(window, not guiGetVisible(window)) showCursor(guiGetVisible(window)) Players() end)
  18. جرب -- Client addEventHandler ( "onClientGUIClick",button,function () if (guiGridListGetSelectedItem (gridlist)) then local shout = guiGridListGetItemText (gridlist, guiGridListGetSelectedItem (gridlist), column ) Shout = guiGetText (edit) triggerServerEvent ( "send",localPlayer,shout,Shout) end end,false) local screenW, screenH = guiGetScreenSize() function shoutdx() dxDrawText(Shout, 0 - 1, 269 - 1, 800 - 1, 332 - 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawText(Shout, 0 + 1, 269 - 1, 800 + 1, 332 - 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawText(Shout, 0 - 1, 269 + 1, 800 - 1, 332 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawText(Shout, 0 + 1, 269 + 1, 800 + 1, 332 + 1, tocolor(0, 0, 0, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) dxDrawText(Shout, (screenW - 800) / 2, (screenH - 63) / 2, ((screenW - 800) / 2) + 800, ( (screenH - 63) / 2) + 63, tocolor(255, 255, 255, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) end addEvent("Shot", true ) addEventHandler("Shot", root, function () addEventHandler("onClientRender", root,shoutdx) end) --- Server addEvent( "send", true ) addEventHandler( "send",root, function(player,msg) local msg = getPlayerFromName(player) if ( msg ) then triggerClientEvent("Shot",root,tostring(msg),player) end end) تمام حطيته , بس من اكتب بالايديت بوكس واضغط على الزر م يجي شي وذا الفنكشن له تأثير guiGetText لاني ما سويته لازم تختار اسم لاعب عشان ترسل له
  19. player مو معرف + onClientResourceStart المفروض تحط حدث عند الضغط ع الزر بدل حدث ال
  20. وش الحل يعني -.- وش تبي تسوى بالضبط عشان اقدر اساعدك
  21. فى اند ناقصه + Msg غير معرفه
  22. مود جميل بس لو تخليه ينسخ الاحداثيات يكون افضل تقبل مرورى
×
×
  • Create New...