-
Posts
897 -
Joined
-
Last visited
Everything posted by #|_oskar_|#
-
انت تبي اى شخص يقدر يكنب و الكونسل والادمن بس يشوفو الكلام ؟
-
الكود سيرفر , والتيكست كلينت , ماينفع تدمجهم مع بعض , استخدم الترايقر كنت اوضح له شئ محدد + مشكور ع التنبيه
-
ممكن مثال ؟ ما فهمت على الويكي سويته لك ينسخ الاحداثيات بس تضغط على 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)
-
سكربت جميل ومفيد للسيرفرات
-
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)
-
المفروض تضيف الرندر عشان يظهر ال dxDrawText onClientRender
-
استخدم معهم createObject attachElementToElement
-
الله يعافيك + مافى ازعاج ولا شئ
-
كمان نفس الشي , ولما عدلت عليه ما اشتغلت اللوحة الدي بوق يقولي client.lua attempt to index global 'Font' (a nil value) انت تضيف الكودين مع بعض زى كذا FontGrid = guiCreateFont( "Font.ttf", 10 ) guiSetFont ( اسم القريد,FontGrid ) او ممكن تسويه كذا guiSetFont ( اسم القريد,guiCreateFont( "Font.ttf", 10 )) وبس
-
guiSetFont ( Gridlist ,FontGrid )
-
صراحه مود جميل واللى طارحه اجمل واصل ولا توقف تقبل مرورى
-
لتغيير اللون استخدم guiGridListSetItemColor ولتغيير الخط استخدم guiSetFont اى استفتسار تفضل قوله
-
مو متأكد انه بضبط او لا بس جرب guiCheckBoxSetSelected( getControl(wndMain, 'jetback'), doesPedHaveJetPack(g_Me), true)
-
العالم الوهمى استخدم setElementDimension
-
ناقصك تسوى جدول للاماكن عشان تحطهم بالقريد
-
كمل انت باقى المود setTimer removeEventHandler
-
غريبه شغال عندي المهم جرب 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)
-
جرب -- 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 لاني ما سويته لازم تختار اسم لاعب عشان ترسل له
-
player مو معرف + onClientResourceStart المفروض تحط حدث عند الضغط ع الزر بدل حدث ال
-
وش الحل يعني -.- وش تبي تسوى بالضبط عشان اقدر اساعدك
-
فى اند ناقصه + Msg غير معرفه
-
مود جميل بس لو تخليه ينسخ الاحداثيات يكون افضل تقبل مرورى