Nickelz Posted November 14, 2012 Author Share Posted November 14, 2012 بدون كذا الكود مايشتغللو تستخدم Notepad++ رح لكلمة Encoding بعدين Convert to UTF-8 بعدين سيف اذا كنت تبي الكلام عربي ويطلع بالشات عربي كتبته في المفكرة وعدل Link to comment
Nickelz Posted November 29, 2012 Author Share Posted November 29, 2012 السسلآآم عليكم شبـآآب آبي كود زي حق مود القوآنين اللي يكتب النشر = ميوت وكذآ يعني و كل 5 دقايق يطلع كلام ويروح Link to comment
./BlackBird# Posted November 29, 2012 Share Posted November 29, 2012 السسلآآم عليكم شبـآآب آبي كود زي حق مود القوآنين اللي يكتب النشر = ميوت وكذآ يعني و كل 5 دقايق يطلع كلام ويروح مع حلاوه؟ ولا بدون Link to comment
Nickelz Posted November 29, 2012 Author Share Posted November 29, 2012 السسلآآم عليكم شبـآآب آبي كود زي حق مود القوآنين اللي يكتب النشر = ميوت وكذآ يعني و كل 5 دقايق يطلع كلام ويروح مع حلاوه؟ ولا بدون مع كفف عـ خششتكك ض1 Link to comment
abu5lf Posted November 29, 2012 Share Posted November 29, 2012 https://community.multitheftauto.com/ind ... ls&id=1000 Link to comment
Nickelz Posted November 29, 2012 Author Share Posted November 29, 2012 https://community.multitheftauto.com/index.php?p=resources&s=details&id=1000 آبي الكود بسس Link to comment
iPrestege Posted November 29, 2012 Share Posted November 29, 2012 (edited) ---Server Side--- function Chat() outputChatBox ( "#FF0000You,r #00FF00Rules", getRootElement(), 255, 255, 255, true ) end setTimer(Chat, 50000, 0) Edited November 29, 2012 by Guest Link to comment
Nickelz Posted November 29, 2012 Author Share Posted November 29, 2012 ---Server Side--- function Chat() outputChatBox ( "#FF0000You,r #00FF00Rules", getRootElement(), 255, 255, 255, true ) end setTimer(Chat, 5000, 0) مـآآفهمتني آقصد زي مود القوانين مو بـ الششات Link to comment
iPrestege Posted November 29, 2012 Share Posted November 29, 2012 السسلآآم عليكم شبـآآب آبي كود زي حق مود القوآنين اللي يكتب النشر = ميوت وكذآ يعني و كل5 دقايق يطلع كلام ويروح Link to comment
Nickelz Posted November 29, 2012 Author Share Posted November 29, 2012 السسلآآم عليكم شبـآآب آبي كود زي حق مود القوآنين اللي يكتب النشر = ميوت وكذآ يعني و كل5 دقايق يطلع كلام ويروح مـآآفهمتني لآآ تكثثر صفحـآآت بسس Link to comment
|Mr|-Talal07-| Posted November 29, 2012 Share Posted November 29, 2012 افتح المود و عدل عليه احد قال لك لا تبي الكود الكود فيه المود مو مشفر مو لازم يعني انسخه من المود و احطه هنا اذا قصدك غير ذا المود وضح اكثر Link to comment
Nickelz Posted November 29, 2012 Author Share Posted November 29, 2012 افتح المود و عدل عليه احد قال لك لاتبي الكود الكود فيه المود مو مشفر مو لازم يعني انسخه من المود و احطه هنا اذا قصدك غير ذا المود وضح اكثر آوكك خلآآص شكرآ مـآآنبي كود ولآآ ششي Link to comment
abu5lf Posted November 29, 2012 Share Posted November 29, 2012 https://community.multitheftauto.com/index.php?p=resources&s=details&id=1000 آبي الكود بسس ماتقدر تحمل المود وتأخذ الكود ؛ وتسوي الي تبيه . Link to comment
iPrestege Posted November 29, 2012 Share Posted November 29, 2012 ^ يبي كل شيء جآهز ! بس يكتب وخلآص الكلام Link to comment
Nickelz Posted November 30, 2012 Author Share Posted November 30, 2012 شبـآآب لقيت الكود اللي آبيه بسس الحين آبي آخليه اذا دخل لاعب يكتب في هذآ الصندوق يعني بدل مـآيكتب " دخل اللاعب الى السيرفر " في الششآت يكتبه في هذآ الشريط هذآ كود الخروج والدخول addEventHandler('onClientPlayerJoin', root, function() outputChatBox('* ' .. getPlayerName(source) .. ' has joined the game', 255, 100, 100) end ) addEventHandler('onClientPlayerChangeNick', root, function(oldNick, newNick) outputChatBox('* ' .. oldNick .. ' is now known as ' .. newNick, 255, 100, 100) end ) addEventHandler('onClientPlayerQuit', root, function(reason) outputChatBox('* ' .. getPlayerName(source) .. ' has left the game [' .. reason .. ']', 255, 100, 100) end ) Link to comment
./BlackBird# Posted November 30, 2012 Share Posted November 30, 2012 اطرح الكود الي لقيته عشان نقدر نفيدكك Link to comment
Nickelz Posted December 1, 2012 Author Share Posted December 1, 2012 اطرح الكود الي لقيته عشان نقدر نفيدكك -- *********************************************** -- * DHooser / News Box * -- * Written by DHooser (c) 2010 * -- *********************************************** local messagesList = { "Message 1", "Message 2", "Message 3", "Message 4", "Message 5", "Message 6", } local currentMessage = 0 -- ******************** -- * Event handlers * -- ******************** addEventHandler("onClientPreRender", getRootElement(), function() local screenWidth, screenHeight = guiGetScreenSize() -- Draw the news sticker. dxDrawRectangle(screenWidth - 204, 4, 200, 20, tocolor(0, 0, 0, 192), false) -- Draw all strings. dxDrawText(messagesList[currentMessage + 1], screenWidth - 202, 6, screenWidth - 6, 16, tocolor(255, 0, 0, 255), 1, "default-bold", "center", "top", false, false, false) end ) function updateMessage() if (currentMessage == 4) then currentMessage = 0 else currentMessage = currentMessage + 1 end end setTimer(updateMessage, 5000, 0) Link to comment
Blaawee Posted December 1, 2012 Share Posted December 1, 2012 بعد ممآ جربته .. local theMessage = '' function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, left, top, clip, wordbreak, postGUI) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font ) ax = ax + w color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end last = e + 1 s, e, cap, col = str:find( pat, last ) end if last <= #str then cap = str:sub( last ) local w = dxGetTextWidth( cap, scale, font ) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font, left, top, clip, wordbreak, postGUI ) end end addEventHandler('onClientPlayerJoin', root, function() theMessage = '* ' .. getPlayerName( source ) .. ' has joined the game .' end ) addEventHandler('onClientPlayerChangeNick', root, function( oldNick, newNick ) theMessage = '* ' .. oldNick .. ' is now known as ' .. newNick end ) addEventHandler('onClientPlayerQuit', root, function( reason ) theMessage = '* ' .. getPlayerName( source ) .. ' has left the game [' .. reason .. ']' end ) addEventHandler("onClientPreRender", root, function() local screenWidth, screenHeight = guiGetScreenSize() dxDrawRectangle(screenWidth - 204, 4, 200, 20, tocolor(0, 0, 0, 192), false) dxDrawColorText( theMessage, screenWidth - 202, 6, screenWidth - 6, 16, tocolor(255, 0, 0, 255), 1, "default-bold", "center", "top", false, false, false) end ) Link to comment
Nickelz Posted December 1, 2012 Author Share Posted December 1, 2012 بعد ممآ جربته .. local theMessage = '' function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, left, top, clip, wordbreak, postGUI) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font ) ax = ax + w color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end last = e + 1 s, e, cap, col = str:find( pat, last ) end if last <= #str then cap = str:sub( last ) local w = dxGetTextWidth( cap, scale, font ) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font, left, top, clip, wordbreak, postGUI ) end end addEventHandler('onClientPlayerJoin', root, function() theMessage = '* ' .. getPlayerName( source ) .. ' has joined the game .' end ) addEventHandler('onClientPlayerChangeNick', root, function( oldNick, newNick ) theMessage = '* ' .. oldNick .. ' is now known as ' .. newNick end ) addEventHandler('onClientPlayerQuit', root, function( reason ) theMessage = '* ' .. getPlayerName( source ) .. ' has left the game [' .. reason .. ']' end ) addEventHandler("onClientPreRender", root, function() local screenWidth, screenHeight = guiGetScreenSize() dxDrawRectangle(screenWidth - 204, 4, 200, 20, tocolor(0, 0, 0, 192), false) dxDrawColorText( theMessage, screenWidth - 202, 6, screenWidth - 6, 16, tocolor(255, 0, 0, 255), 1, "default-bold", "center", "top", false, false, false) end ) يعطييك العـآآفية آخووي مـآآقصصرت > >تم التجربة مششكوؤر الله يكثثر من آمثـآآلكك Link to comment
Nickelz Posted December 1, 2012 Author Share Posted December 1, 2012 كيف آخليه بعد وقت يروح الكلام هذآ الكلام theMessage = '* ' .. oldNick .. ' is now known as ' .. newNick Link to comment
Blaawee Posted December 2, 2012 Share Posted December 2, 2012 local theMessage = '' function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, left, top, clip, wordbreak, postGUI) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font ) ax = ax + w color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end last = e + 1 s, e, cap, col = str:find( pat, last ) end if last <= #str then cap = str:sub( last ) local w = dxGetTextWidth( cap, scale, font ) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font, left, top, clip, wordbreak, postGUI ) end end addEventHandler('onClientPlayerJoin', root, function() theMessage = '* ' .. getPlayerName( source ) .. ' has joined the game .' setTimer ( function ( ) theMessage = '' end ,6000,1 ) end ) addEventHandler('onClientPlayerChangeNick', root, function( oldNick, newNick ) theMessage = '* ' .. oldNick .. ' is now known as ' .. newNick setTimer ( function ( ) theMessage = '' end ,6000,1 ) end ) addEventHandler('onClientPlayerQuit', root, function( reason ) theMessage = '* ' .. getPlayerName( source ) .. ' has left the game [' .. reason .. ']' setTimer ( function ( ) theMessage = '' end ,6000,1 ) end ) addEventHandler("onClientPreRender", root, function() local screenWidth, screenHeight = guiGetScreenSize() dxDrawRectangle(screenWidth - 204, 4, 200, 20, tocolor(0, 0, 0, 192), false) dxDrawColorText( theMessage, screenWidth - 202, 6, screenWidth - 6, 16, tocolor(255, 0, 0, 255), 1, "default-bold", "center", "top", false, false, false) end ) Link to comment
Nickelz Posted December 2, 2012 Author Share Posted December 2, 2012 local theMessage = '' function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, left, top, clip, wordbreak, postGUI) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font ) ax = ax + w color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end last = e + 1 s, e, cap, col = str:find( pat, last ) end if last <= #str then cap = str:sub( last ) local w = dxGetTextWidth( cap, scale, font ) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font, left, top, clip, wordbreak, postGUI ) end end addEventHandler('onClientPlayerJoin', root, function() theMessage = '* ' .. getPlayerName( source ) .. ' has joined the game .' setTimer ( function ( ) theMessage = '' end ,6000,1 ) end ) addEventHandler('onClientPlayerChangeNick', root, function( oldNick, newNick ) theMessage = '* ' .. oldNick .. ' is now known as ' .. newNick setTimer ( function ( ) theMessage = '' end ,6000,1 ) end ) addEventHandler('onClientPlayerQuit', root, function( reason ) theMessage = '* ' .. getPlayerName( source ) .. ' has left the game [' .. reason .. ']' setTimer ( function ( ) theMessage = '' end ,6000,1 ) end ) addEventHandler("onClientPreRender", root, function() local screenWidth, screenHeight = guiGetScreenSize() dxDrawRectangle(screenWidth - 204, 4, 200, 20, tocolor(0, 0, 0, 192), false) dxDrawColorText( theMessage, screenWidth - 202, 6, screenWidth - 6, 16, tocolor(255, 0, 0, 255), 1, "default-bold", "center", "top", false, false, false) end ) الله يعطييك العافية ويكثثر لنـآآ من آمثثـآآللككك وربي آنكك بطل بسسرعة تفهم ولا تسآل وتحط كود مـآآفيه آخطـآآء يعني وشش نبي آكثثر من كذآ الله يخليك لآمك Link to comment
Nickelz Posted December 21, 2012 Author Share Posted December 21, 2012 السسلآآم علييككم ورحمة الله شبااب اذا ممكن احد يعلمني كيف اصنع شريط زي حق التحميل يعني يعبي اذا انتهى وعبى يعطي اللاعب فلوس وشكرا Link to comment
Nickelz Posted December 21, 2012 Author Share Posted December 21, 2012 السسلآآم علييككم ورحمة الله شبااب اذا ممكن احد يعلمني كيف اصنع شريط زي حق التحميل هو زي شريط تحميل المودات يعني يعبي اذا انتهى وعبى يعطي اللاعب فلوس وشكرا Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now