Jump to content

SaedAmer

Members
  • Posts

    906
  • Joined

  • Last visited

Everything posted by SaedAmer

  1. ما ظهر شئ بالدي بق function checkDuel(p) if tostring(getElementData(resourceRoot,"map")) == "yes" then outputChatBox("*#ffffff [ #CD0000 DerbySystem #ffffff ]",p,255,255,0,true) elseif tostring(getElementData(resourceRoot,"map")) == "no" then outputChatBox("*#FFFFFF [ #CD0000Derby #FFFFFF ] : الرجآء الانتظآر,حتى يبدء الديربي",p,255,255,0,true) if _mytimer and isTimer(_mytimer) then local _r,_e,_t = getTimerDetails(_mytimer) if _r and _e and _t then total = _r / 60 / 1000 ss = math.floor( _r / 1000 ) seconds = tostring( math.fmod( ss, 60 ) ) outputChatBox("*#FFFFFF [ #CD0000Derby #FFFFFF ] : تبقـى "..math.ceil(total)..":"..seconds.."") end end end
  2. مشتغلش setElementData(resourceRoot,"map","prestart") exports.topbarchat:outputMessage ( " outputChatBox("*#ffffff [ #CD0000Derby #FFFFFF ] : لدخول الديربي توجه ( ف6 ديربي ) ء",getRootElement(),255,255,0,true) " ) RMoney = math.random("10000","100000") setElementData(resourceRoot,"winMoney",tonumber(RMoney)) setTimer(checkPlrs,30000,1) end ده التوب بار شات لو فيه خطأ ------------------------------------------ -- TopBarChat -- ------------------------------------------ -- Developer: Braydon Davis -- -- File: c.lua -- -- Copyright 2013 (C) Braydon Davis -- -- All rights reserved. -- ------------------------------------------ -- Script Version: 1.4 -- ------------------------------------------ local maxMessages = 5; -- The max messages that will show (on each bar) local DefaultTime = 8; -- The max time each message will show if time isn't defined. ------------------------------------------ -- For scripters only -- ------------------------------------------ local sx_, sy_ = guiGetScreenSize ( ) local sx, sy = sx_/1280, sy_/720 -- you got xXMADEXx's resolution :3 plz no hak mi local DefaultPos = true; local messages_top = { } local messages_btm = { } function sendClientMessage ( msg, r, g, b, pos, time ) -- Msg: String -- R: Int (0-255) -- G: Int (0-255) -- B: Int (0-255) -- Pos: Boolean -- Time: Int if ( not msg ) then return false end if ( pos == nil ) then pos = DefaultPos end local r, g, b = r or 255, g or 255, b or 255 local time = tonumber ( time ) or DefaultTime local data = { message = msg, r = r, g = g, b = b, alpha=0, locked=true, rTick = getTickCount ( ) + (time*1000) } --> Scripters note: --> The remove and intro fades are handled in the render event if ( pos == true or pos == "top" ) then table.insert ( messages_top, data ) return true elseif ( pos == false or pos == "bottom" ) then table.insert ( messages_btm, data ) return true end return false end addEvent ( getResourceName ( getThisResource ( ) )..":sendClientMessage", true ) addEventHandler ( getResourceName ( getThisResource ( ) )..":sendClientMessage", root, sendClientMessage ) function dxDrawNotificationBar ( ) local doRemove = { top = { }, bottom = { } } -- This is used so it prevents the next message from flashing -- Top Message Bar for i, v in pairs ( messages_top ) do local i = i - 1 if ( not v.locked ) then v.alpha = v.alpha - 3 if ( v.alpha <= 20 ) then table.insert ( doRemove.top, i+1 ) end messages_top[i+1].alpha = v.alpha else if ( v.alpha < 160 ) then v.alpha = v.alpha + 1 messages_top[i+1].alpha = v.alpha end if ( v.rTick <= getTickCount ( ) ) then v.locked = false messages_top[i+1].locked=false end end dxDrawRectangle ( (sx_/2-530/2), i*25, 530, 25, tocolor ( 0, 0, 0, v.alpha ) ) dxDrawText ( tostring ( v.message ), 0, i*25, sx_, (i+1)*25, tocolor ( v.r, v.g, v.b, v.alpha*1.59375 ), sy*1, "default-bold", "center", "center") end if ( #messages_top > maxMessages and messages_top[1].locked ) then messages_top[1].locked = false end -- Bottom Message Bar for i, v in pairs ( messages_btm ) do if ( not v.locked ) then v.alpha = v.alpha - 3 if ( v.alpha <= 20 ) then table.insert ( doRemove.bottom, i ) end messages_btm[i].alpha = v.alpha else if ( v.alpha < 160 ) then v.alpha = v.alpha + 1 messages_btm[i].alpha = v.alpha end if ( v.rTick <= getTickCount ( ) ) then v.locked = false messages_btm[i].locked=false end end dxDrawRectangle ( (sx_/2-530/2), sy_-(i*25), 530, 25, tocolor ( 0, 0, 0, v.alpha ) ) dxDrawText ( tostring ( v.message ), 0, sy_-(i*25), sx_, sy_-((i-1)*25), tocolor ( v.r, v.g, v.b, v.alpha*1.59375 ), sy*1, "default-bold", "center", "center") end if ( #messages_btm > maxMessages and messages_btm[1].locked ) then messages_btm[1].locked = false end -- handle message removes if ( #doRemove.top > 0 )then for i, v in pairs ( doRemove.top ) do table.remove ( messages_top, v ) end end if ( #doRemove.bottom > 0 ) then for i, v in pairs ( doRemove.bottom ) do table.remove ( messages_btm, v ) end end end addEventHandler ( "onClientRender", root, dxDrawNotificationBar ) ------------------------------ -- For development -- ------------------------------ addCommandHandler ( 'rt', function ( ) for i=1, 5 do sendClientMessage ( "Testing - Index ".. tostring ( i ), 255, 255, 255, false ) sendClientMessage ( "Testing - Index ".. tostring ( i ), 255, 255, 255, true ) end end ) سيرفر ------------------------------------------ -- TopBarChat -- ------------------------------------------ -- Developer: Braydon Davis -- -- File: s.lua -- -- Copyright 2013 (C) Braydon Davis -- -- All rights reserved. -- ------------------------------------------ local rName = getResourceName ( getThisResource ( ) ) function sendClientMessage ( msg, who, r, g, b, pos, time ) if ( msg and who ) then if ( isElement ( who ) ) then triggerClientEvent ( who, rName..":sendClientMessage", who, msg, r, g, b, pos, time ) return true else return false end else return false end end addEventHandler ( "onPlayerJoin", root, function ( ) sendClientMessage ( '* '..getPlayerName ( source )..' has joined!', root, 255, 100, 100, false ) end ) addEventHandler ( 'onPlayerQuit', root, function ( tp, reason, respons ) if ( tp == 'Kicked' or tp == 'Banned' ) then msg = '['..tp..' - '..respons..'] ('..reason..')' else msg = '['..tp..']' end sendClientMessage ( "* "..getPlayerName ( source ).." has quit. "..msg, root, 255, 100, 100, false ) end )
  3. كده مثلا ؟ exports.topbarchat:outputMessage ( " outputChatBox("*#ffffff [ #CD0000Derby #FFFFFF ] : لدخول الديربي توجه ( ف6 ديربي ) ء",getRootElement(),255,255,0,true) " )
  4. السلام عليكم انا عاوز اكواد اكسبورت يعني عاوز لما حد يدخل السيرفر او يخرج او يسجل دخوله او خروجه تظهر في الكيل مسج و معاية مود عاو الكلام الي فيه بدل ما يظهر في الشات يظهر في التوب بار شات
  5. انا عاوزو يقلي كم تبقي بالدقائق و الثواني و عاوزو لما حد يدخل الديربي يكتب في الشات انه دخل م مثلا انا دخل يكتب اسم العب و بعدين دخل الي الديربي
  6. مش قصدي انا عاوز الدقائق و الثواني
  7. السلام عليكم كل ما بروح للماركر ما بيدخلني للديربي ايه الحل؟؟ سيرفر --
  8. ما يجيب الدقائق و الثواني فقط دي
  9. WiFiDerbyMarker = createMarker(1542.35669, -2985.33887, 3.86081, "arrow", 1.1, 255, 0, 0, 170 )
  10. ---- --- انزل تحت ---- function checkDuel(p) if tostring(getElementData(resourceRoot,"map")) == "yes" then outputChatBox("*#ffffff [ #CD0000 DerbySystem #ffffff ]",p,255,255,0,true) elseif tostring(getElementData(resourceRoot,"map")) == "no" then outputChatBox("*#FFFFFF [ #CD0000Derby #FFFFFF ] : الرجآء الانتظآر,حتى يبدء الديربي",p,255,255,0,true) if _mytimer and isTimer(_mytimer) then _r,_e,_t = getTimerDetails(_mytimer) if _r and _e and _t then total = _r / 60 / 1000 outputChatBox("تبقـى: "..math.ceil(total)) end end end end return tostring(getElementData(resourceRoot,"map")) end
  11. اليه الحل دفتلو يجي 15 ايند مش راضي يشتغل بردو
  12. طيب هجرب كيف اخلي الماركر زي كده sfa7DerbyMarker = createMarker(1542.35669, -2985.33887, 3.86081, "cylinder", 1.1, 255, 0, 0, 170 )
  13. يب و رفعتو للسيرفر لقيت نفس الماب الاول لسة موجود
  14. بدلت ملف map.map ب الملف الماب التاني
  15. ممكن تطلعلي التعديل لوحده لاني ع\دلت علي الاكواد + -------------------------------- لما بجي اغير الماب مش بيتغير ايه الحل ؟
  16. ما عرفت اسويه ولا حتي محاولة
  17. اوك واي فاي ---- اوسكار التاج في مود الرنت و مود التاجات ايه الحل ؟؟
  18. اوك بشوف الفاكشن بس عدل علي كودك و خله كل 5 دقائق
  19. واي فاي هات كودك الي شغال
  20. SfA7 المود تمام اشتغل بس لو عاوز اشغل المهمة كل 50 كل ما حد يروح للماركر يقوله باقي و يكتبلو الوقت لما يوصل الوقت 0 يشغل المهمة و لما تخلص يعدىتاني 5د
×
×
  • Create New...