-
Posts
570 -
Joined
-
Last visited
Everything posted by z24d
-
addCommandHandler("12",function() dd = getAccountData(source,"r8") Money = getPlayerMoney(source) if dd then outputChatBox("لقد اخذت مسبقاً ",source,255,0,0) else givePlayerMoney(source,300000) setAccountData(source,"r8",Money) end end ) ??
-
في شرح للأخ ذبست للأكاونت داتا بس ناسي وينه
-
يعني ماله دخل setAccountData لأني ابيها علأكاونت
-
يعني مثلاً قلت لواحد يكتب باف8 كومماند وكتبة خلاص ابي اذا كتب الكوماند مره ثانية يتحقق هو كتب قبل او لا اذا كان كاتب يكنسل ويطلعله شيء بالشات عرفت كيف؟
-
السلام عليكم ورحمة الله وبركاتة ابي مثلا سويت كومماند او شيء كذا ماعاد تسويه مره ثانية شلون ؟ ماني اعرف للداتا : (
-
sorry but i see that unclear font in gui and if i use drawText i see that unclear font so where is the problem
-
hi guys i download [guimessages] mod but i had a little problem on the fonts see this pecture http://cdn.top4top.co/i_8a5a3cd1051.png and this? http://cdn.top4top.co/i_b6c6f003c01.png why the text is unclear? CODE LUA local x, y = guiGetScreenSize() local Rows = {} local R = 0 function outputClient(text, r, g, b) local r = r or 255 local g = g or 255 local b = b or 255 local color = tocolor(r, g, b, 255) R = R + 17 table.insert(Rows, {text, color, R}) setTimer(function() setTimer(function() if R > 0 then R = R - 1.0 for i, row in pairs(Rows) do Rows[i] = {row[1], row[2], row[3] - 1.0} if row[3] <= 0 then table.remove(Rows, i) end end end end, 50, 17) end, 10000, 1) end addEvent("calloutputClient", true) addEventHandler("calloutputClient", root, outputClient) function drawRows() dxDrawRectangle((x - 550)/2, 0, 600, R, tocolor(0, 0, 0, 250)) for i, row in pairs(Rows) do dxDrawText(row[1], (x - 540)/2, row[3] - 20, (x - 600) / 2 + 600, row[3], row[2], 1.0, "default-bold", "center", "center", true, false, false, true, true) end end addEventHandler("onClientPreRender", root, drawRows))
-
السلام عليكم عندي هذا المود حملته لكن مشكلته يطلعلي الخط مو واضح يعني موشوش ليش؟ local x, y = guiGetScreenSize() local Rows = {} local R = 0 function outputClient(text, r, g, b) local r = r or 255 local g = g or 255 local b = b or 255 local color = tocolor(r, g, b, 255) R = R + 17 table.insert(Rows, {text, color, R}) setTimer(function() setTimer(function() if R > 0 then R = R - 1.0 for i, row in pairs(Rows) do Rows[i] = {row[1], row[2], row[3] - 1.0} if row[3] <= 0 then table.remove(Rows, i) end end end end, 50, 17) end, 10000, 1) end addEvent("calloutputClient", true) addEventHandler("calloutputClient", root, outputClient) function drawRows() dxDrawRectangle((x - 550)/2, 0, 600, R, tocolor(0, 0, 0, 250)) for i, row in pairs(Rows) do dxDrawText(row[1], (x - 540)/2, row[3] - 20, (x - 600) / 2 + 600, row[3], row[2], 1.0, "default-bold", "center", "center", true, false, false, true, true) end end addEventHandler("onClientPreRender", root, drawRows) WTISPRBLM?
-
السلام عليكم انا مسوي لوحة فيها Editbox1 فيه قوانين وكذا لكن ابي اسوي انا اني اضيف زر للأدمنية او للكونسل اذا ضغطه يتحقق من رتبته بعدين يطلعله Editbox2 هذا الإدت بوكس يحط فيه قوانين علا كيفة واذا ضغط زر موافق مثلا يتحدث الايديت بوكس الأول عطوني الفنكشات
-
لاهنت ياتابل شلون اخلي timeToFade موجودة ب Settings - Admin-panel ?
-
السلام عليكم ابي اخلي كلام دي اكس يسوي مثل الفلشر يطلع ويختفي يطلع ويختفي يطلع ويختفي بس ابيه بالتدريج شلون؟ ترا ادري السالفة فيها تايمر لكن الي اعرفه ان التايمر يسوي الشيء بعد مدة معينة ماهو يسوي شيء بالتدريج وسنكث يو نبي ردود سريعة : (
-
السلام عليكم انا اذا طلعت رسالة بالمود هذا يجيب لي لاق شنيييععع مع انه كمبيوتري كويس ويشغل اللعبة علا 100 فريم لاكن اذا جت رسالة يقلل مره function dxDrawFramedText(message, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, ColorCoded, frameColor ) if ( ColorCoded == true ) then message1 = string.gsub( message, "#%x%x%x%x%x%x", "" ) message2 = message else message1 = message message2 = message end local color = color or tocolor(255, 255, 255, 255) local frameColor = frameColor or tocolor(0, 0, 0, 255) local scale = scale or 1.1 local font = font or "default" local alignX = alignX or "left" local alignY = alignY or "top" local clip = clip or false local wordBreak = wordBreak or false postGUI = postGUI or false dxDrawText( message1, left + 1, top + 1, width + 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) dxDrawText( message1, left + 1, top - 1, width + 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) dxDrawText( message1, left - 1, top + 1, width - 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) dxDrawText( message1, left - 1, top - 1, width - 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) dxDrawText( message2, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, ColorCoded ) end local x, y = guiGetScreenSize() local Rows = {} local R = 0 function outputClient(text, r, g, b) local r = r or 255 local g = g or 255 local b = b or 255 local color = tocolor(r, g, b, 255) R = R + 17 table.insert(Rows, {text, color, R}) setTimer(function() setTimer(function() if R > 0 then R = R - 1 for i, row in pairs(Rows) do Rows[i] = {row[1], row[2], row[3] - 1.0} if row[3] <= 0 then table.remove(Rows, i) end end end end, 50, 17) end, 10000, 1) end addEvent("calloutputClient", true) addEventHandler("calloutputClient", root, outputClient) function drawRows() dxDrawRectangle((x - 550)/2, 0, 600, R, tocolor(0, 0, 0, 162), false) for i, row in pairs(Rows) do dxDrawFramedText(row[1], (x - 540)/2, row[3] - 20, (x - 600) / 2 + 600, row[3], row[2], 1.1, "default-bold", "center", "top", true, false, false, true, true) end end addEventHandler("onClientPreRender", root, drawRows)
-
صاحب السكربت يقول If you want to send message to all players, use it --ONLY SERVER SIDE ----------------------------------------- for id, PLY in ipairs ( getElementsByType ( "player" ) ) do exports.hud_messages:showBox(text, PLY , color red, color green, color blue, disappear time) end ------------------------------------------------------------ Thanks for rating or downloading. If you want to send message to all players, use it --ONLY SERVER SIDE ----------------------------------------- for id, PLY in ipairs ( getElementsByType ( "player" ) ) do
-
addEventHandler( "onPlayerJoin", root, function() for id, PLY in ipairs ( getElementsByType ( "player" ) ) do exports.hud_messages:showBox("#FE9A2E##005BCB* ( " .. getPlayerName ( source ) .. "#005BCB ) Has been joined",PLY, 0, 255, 0 ) end end) addEventHandler( "onPlayerChangeNick", root, function( oldNick, newNick ) for id, PLY in ipairs ( getElementsByType ( "player" ) ) do exports.hud_messages:showBox("#FE9A2E##00FF00 #D4AE06 ( " .. oldNick .. "#D4AE06 )#D4AE06 Has been changed his nick to ##D4AE06( " .. newNick .. "#D4AE06 )",PLY,0, 255, 0) end end) addEventHandler( "onPlayerQuit", root, function(reason) for id, PLY in ipairs ( getElementsByType ( "player" ) ) do exports.hud_messages:showBox("#FE9A2E# #FF6464* ( " .. getPlayerName( source ) .. "#FF6464 ) Has been left the server [ " .. reason .. " ]",PLY, 255, 255, 255) end end) addEventHandler("onPlayerLogin", root, function(_, account) if isObjectInACLGroup("user."..getAccountName(account), aclGetGroup("Console")) or isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Admin")) then for id, PLY in ipairs ( getElementsByType ( "player" ) ) do exports.hud_messages:showBox("#FE9A2E##CC0000* #FFFFFF[#CC0000 Server Owner#FFFFFF ] #CC0000( "..getPlayerName(source)..#CC0000 ") #FF0000 Has been succesfuly Logged in",PLY, 204, 51, 255) else exports.hud_messages:showBox( "#FE9A2E##04B404* (" ..getPlayerName(source).. ") #04B404 Has been succesfuly Logged in",PLY, 204, 51, 255) end end end) addEventHandler("onPlayerLogout", root, function () for id, PLY in ipairs ( getElementsByType ( "player" ) ) do exports.hud_messages:showBox("#FE9A2E##FFC900* ( " .. getPlayerName ( source ) .. "#FFC900 ) Has been succesfuly Logged out",PLY, 0, 255, 0 ) end end) نسيت الحين شلغلط
-
سلام عليكم وين الغلط ؟ انا حملت هذا المود وسويت الي علي هذا رابط المود https://community.multitheftauto.com/ind ... ls&id=6292 الكود addEventHandler( "onPlayerJoin", root, function() for id, PLY in ipairs ( getElementsByType ( "player" ) ) do exports.hud_messages:showBox("#FE9A2E##005BCB* ( " .. getPlayerName ( source ) .. "#005BCB ) Has been joined",root, 0, 255, 0 ) end end) addEventHandler( "onPlayerChangeNick", root, function( oldNick, newNick ) for id, PLY in ipairs ( getElementsByType ( "player" ) ) do exports.hud_messages:showBox("#FE9A2E##00FF00 #D4AE06 ( " .. oldNick .. "#D4AE06 )#D4AE06 Has been changed his nick to ##D4AE06( " .. newNick .. "#D4AE06 )",root,0, 255, 0) end end) addEventHandler( "onPlayerQuit", root, function(reason) for id, PLY in ipairs ( getElementsByType ( "player" ) ) do exports.hud_messages:showBox("#FE9A2E#[6.A] #FF6464* ( " .. getPlayerName( source ) .. "#FF6464 ) Has been left the server [ " .. reason .. " ]",root, 255, 255, 255) end end) addEventHandler("onPlayerLogin", root, function(_, account) if isObjectInACLGroup("user."..getAccountName(account), aclGetGroup("Console")) or isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Admin")) then for id, PLY in ipairs ( getElementsByType ( "player" ) ) do exports.hud_messages:showBox("#FE9A2E##CC0000* #FFFFFF[#CC0000 Server Owner#FFFFFF ] #CC0000( "..getPlayerName(source).."#CC0000 ) #FF0000 Has been succesfuly Logged in",root, 204, 51, 255) else exports.hud_messages:showBox( "#FE9A2E##04B404* ( "..getPlayerName(source).." ) #04B404 Has been succesfuly Logged in",root, 204, 51, 255) end end end) addEventHandler("onPlayerLogout", root, function () for id, PLY in ipairs ( getElementsByType ( "player" ) ) do exports.hud_messages:showBox("#FE9A2E##FFC900* ( " .. getPlayerName ( source ) .. "#FFC900 ) Has been succesfuly Logged out",root, 0, 255, 0 ) exports.hud_messages:showBox("#FE9A2E##FFC900* ( " .. getPlayerName ( source ) .. "#FFC900 ) You have been succesfuly Logged out",source, 0, 255, 0 ) end end)
