Jump to content

POWR

Members
  • Posts

    204
  • Joined

  • Last visited

Everything posted by POWR

  1. طيب يا اخوي نزل كودك tab6 هنا وانا شوفه باين ان الاخ ما يبي يتنتشر اللووحه حقه
  2. اتوقع من الكونسيل ف8
  3. ابي كود اظهر فيه اسم التيم لكل لعاب قدآم نكه مثآل [~~KSA-1~~]<<<التيم KaBoS <<<النك نيم طبعآ ابي الاتيم يجي بلون الي هو محدد له وابي ادمجه مع هذا local lastChatMessage = {} function OnChat( message, messageType ) if lastChatMessage[source] and lastChatMessage[source] == message then outputChatBox("Stop repeating yourself!", source, 255, 0, 0) cancelEvent() return end lastChatMessage[source] = message if (hasObjectPermissionTo ( source, "command.HeadAdmin", false ) ) then if messageType == 0 then cancelEvent() local playerName = getPlayerName ( source ) local ID = getElementData ( source, "ID" ) local r, g, b = getPlayerNametagColor ( source ) local color = string.format("#%02X%02X%02X", r, g, b) outputChatBox("* #A5A5A5[".. ID.. "] #00FF00[HeadAdmin]".. color.. " ".. playerName.. ": #FFFFFF" ..message, getRootElement(),0,255,0, true) end elseif ( hasObjectPermissionTo ( source, "command.HeadModerator", false ) ) then if messageType == 0 then cancelEvent() local playerName = getPlayerName ( source ) local ID = getElementData ( source, "ID" ) local r, g, b = getPlayerNametagColor ( source ) local color = string.format("#%02X%02X%02X", r, g, b) outputChatBox("* #A5A5A5[".. ID.. "] #666362[HeadModerator]".. color.. " ".. playerName.. ": #FFFFFF" ..message, getRootElement(),0,255,0, true) end elseif ( hasObjectPermissionTo ( source, "command.SuperModerator", false ) ) then if messageType == 0 then cancelEvent() local playerName = getPlayerName ( source ) local ID = getElementData ( source, "ID" ) local r, g, b = getPlayerNametagColor ( source ) local color = string.format("#%02X%02X%02X", r, g, b) outputChatBox("* #A5A5A5[".. ID.. "] #00ff00[superModerator]".. color.. " ".. playerName.. ": #FFFFFF" ..message, getRootElement(),0,255,0, true) end elseif ( hasObjectPermissionTo ( source, "command.Moderator", false ) ) then if messageType == 0 then cancelEvent() local playerName = getPlayerName ( source ) local ID = getElementData ( source, "ID" ) local r, g, b = getPlayerNametagColor ( source ) local color = string.format("#%02X%02X%02X", r, g, b) outputChatBox("* #A5A5A5[".. ID.. "] #00FF00[Moderator]".. color.. " ".. playerName.. ": #FFFFFF" ..message, getRootElement(),0,255,0, true) end elseif ( hasObjectPermissionTo ( source, "command.V.I.P", false ) ) then if messageType == 0 then cancelEvent() local playerName = getPlayerName ( source ) local ID = getElementData ( source, "ID" ) local r, g, b = getPlayerNametagColor ( source ) local color = string.format("#%02X%02X%02X", r, g, b) outputChatBox("* #A5A5A5[".. ID.. "] #FF6400[VIP]".. color.. " ".. playerName.. ": #FFFFFF" ..message, getRootElement(),255,100,0, true) end elseif not ( hasObjectPermissionTo ( source, "command.kick", false ) ) then if messageType == 0 then cancelEvent() local playerName = getPlayerName ( source ) local ID = getElementData ( source, "ID" ) local r, g, b = getPlayerNametagColor ( source ) local color = string.format("#%02X%02X%02X", r, g, b) outputChatBox("#A5A5A5[".. ID.. "]".. color.. " ".. playerName.. ": #E0D0B0" ..message, getRootElement(),0,255,0, true) end end end addEventHandler("onPlayerChat", root, OnChat) function quitHandler() lastChatMessage[source] = nil end addEventHandler('onPlayerQuit', root, quitHandler) و الادمن ابي اغير مكان ID الي التيم والي يساعدني الله يوفقه
  4. شكرآ تسلم راح اسويه
  5. ماراح تلاقي احد عنده ذا المود والمود لو يبي يتسوى راح يكون بمقابل مادي ماراح تلاقي احد عنده ذا المود انا ما قلت مود انا قلت كود
  6. ابي كود زي بداية البيس مود اختيار التيم بس بدل الثلاثه ابيه اثنين تيم بس وابي ادمجه مع الديث ماتش لاهنتم
  7. function assignNewTeam ( source, commandName, teamName ) local theTeam = createTeam ( teamName ) -- انشاء فريق جديد مع الاسم المحدد if theTeam then -- إذا تم إنشاء بنجاح setPlayerTeam ( source, theTeam ) --إضافة إلى لاعب جديد فريق end end addCommandHandler ( "gimmeateam", assignNewTeam ) function unassignTeam ( source, commandName ) local theTeam = getPlayerTeam ( source ) -- تحقق مما إذا كان اللاعب في فريق if theTeam then -- هذا اللاعب هو على الفريق، حتى نتمكن من إزالتها منه setPlayerTeam ( source, nil ) -- إزالة لاعب من الفريق الحالي end end addCommandHandler ( "takeawaymyteam", unassignTeam ) Look Explanation
  8. شباب يقصد شوب مثل الي في جراند العرب حرب العصابات اذا نت تعر فتسويه سويه انت تقول 100% في الشوبت ورنآ يا عبققري
  9. ملهآ داعي بس اخي تعلم برمجه قبل لا تطلب كود وانت ما تعرف تسويه
  10. اخي لا تجيب الامثله الي بالوكي وتركبهآ تقول صاح الامثله لو شغلتهآ نسخ ولصق كان البرمجه سهله لكن الامثله حطوها تستفيد منهآ انت سوي الكود على احسب ما تفهمه من الامثله اذا فيه مشكله اطرحهآ اهنأ مافي شيء مستحيل
  11. طيب شنو الاضافه الي اضفتهآ للموضوع بردك ذا ؟ كما تدينو تدان
  12. الحين onClientRender وش دخل setElementData الكلام على بدون مااجرب كودك قبل ماتعدله ميه بالميه خطا وأتحداك اذا كودي خطآ بس عرفت تسوي لك مخرج ب بس وين بتروح مني، الجآيات إكثر وثإني شي انا ماني حبيبك مع نفسسك الحمد لله على نعمة العقل الحمد لله
  13. ادخل الرابط ذا الي حآطه الاخ تابل
  14. client-side function onGuiClick (button, state, absoluteX, absoluteY) if ( source == shop99 ) then local PlayerMoney = getPlayerMoney() if ( PlayerMoney > 100 ) then takePlayerMoney(100) guiSetVisible ( Window ,false ) showCursor (false ) guiSetInputEnabled(false) triggerServerEvent ("aLaser", getLocalPlayer()) triggerEvent ("laaser", getLocalPlayer()) SetLaserEnabled(getLocalPlayer(), true) bindKey ( "l", "up", ToggleLaserEnabled ) setTimer(function () outputChatBox("*** [ Laser ] HAS END ***",255,255,0) triggerEvent("ChangeLaserState",getLocalPlayer(),false) triggerEvent("ublth",getLocalPlayer()) end,80000,1) else outputChatBox("Error #ffff00You don't have #00ff00[ $100 ] #ff0000 to buy laser #ffffff| #ffff00u have money #00ff00[ $".. PlayerMoney.. " ]",255,0,0,true) end end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) server-side addEvent("aLaser", true) addEventHandler("aLaser", getRootElement(), function() local name = getPlayerName(source) local r, g, b = getPlayerNametagColor ( source ) local color = string.format("#%02X%02X%02X", r, g, b) local playerTeam = getTeamName(getPlayerTeam(source)) or "N/A" outputChatBox ( "*** #ffffff[ #00ff00" .. name .. " #ffffff]#ffff00 Has Bought #ff0000laser#ffffff [ ".. color.. ""..playerTeam.."#ffffff ]", getRootElement(), 255, 0, 0, true ) outputChatBox ( "You Will Have Laser For 2 Minutes",source, 0, 255, 0, true ) outputChatBox ( "Press #ffffff[#00ff00 L #ffffff ]#ff0000 to open or close",source, 255, 255, 0, true ) triggerClientEvent(source,"LaserWin",source) triggerClientEvent(source,"blth",source) end )
  15. يوه انا نسيت النقطه هذي
  16. bindKey ( "F2" , "down" , function() if ( guiGetVisible ( shopWindow ) == true ) then guiSetVisible ( shopWindow , false ) showCursor ( false ) guiSetInputEnabled ( false ) else guiSetVisible ( shopWindow , true ) showCursor ( false ) guiSetInputEnabled ( true ) playSound ("other/open.wav") end end ) علمن ان shopWindow انهآ اسم النافذه وا هذي playSound ("other/open.wav") الصوت الي يطلع مع فتح النافذه
  17. ودي اساعدك بس ما فهمتك اخي
×
×
  • Create New...