Jump to content

L3yr

Members
  • Posts

    228
  • Joined

  • Last visited

Everything posted by L3yr

  1. عملتو كده والاسلحه مش بتيجى ف القريد ايه المشكله هل الجدول فيه اخطاء ياريت التصحيح local Weapons = { { 'AK - 47' , 30 , 2000 } , { 'M4 ' , 31 , 2000 } , } --______________________________________________________________________________________________ for _,i in ipairs ( Weapons ) do row = guiGridListAddRow ( gridList ) guiGridListSetItemText ( gridList,row,1,getWeaponNameFromID(i),false,false) end --______________________________________________________________________________________________ function aa() gridlist = guiCreateGridList(267, 342, 209, 329, false) guiGridListAddColumn(gridlist, "Name", 0.3) guiGridListAddColumn(gridlist, "price", 0.3) guiGridListAddColumn(gridlist, "ID", 0.3) guiSetAlpha(gridlist1, 0.80) guiGridListSetItemData ( gridList, aa ) guiSetVisible(gridlist,false) end addEventHandler ( "onClientResourceStart", root, aa )
  2. شباب الخير انا بعمل لوحه بجريد ليست تشترى منه اسلحه عوز فنكشناتو وعوز فنكشن ابرمج الاديت عشان اكتب كام رصاصه عوزو وشكرا مقدما
  3. يعنى دلوقتى الساعه 1.45 عوز جوا اللعبة الطقس مشمس مثلا زى الحقيقى كده
  4. بقولك اخى عوز الطقس يتماشى معا الساعه
  5. اهلا شباب كيف حالكم ان شاء الله تكونو بخير انا محتاج فنكشنات لصنع ساعه حقيقيه جوا اللعبة زى الوقت الحقيقى كده 24 ساعه وشكرا
  6. if isPlayerInACL ( player , "Console") then
  7. مفيش حد هيعملك الكود جاهز ...انت اعمل الكود وهاتو يصححو الشباب لو فيه اخطاء
  8. لو عوز تعمل رتب اعتقد تقدر تستخدم دول getPlayerAccount setAccountData isGuestAccount aclGroupAddObject aclGetGroup
  9. انت ضفت اخففاء الازرار لما يضغط اف 6 مر تانيه صح ......طيب ما انا عدلته قبل ما تنزل موضوعك شكل النت بايظ عندك ومش شايف تعديلى على الكود وهتلاقى تعديلى من 17 دقيقه وانت منزل موضوعك بعدى ب 4 ق
  10. يا حبيبى انا عدلته قبل ما تتكلم شوف التعديل وتعال اتكلم
  11. لو قصدك تظهر اول ما تشغل المود فى وجهك جرب GUIEditor = { button = {} } GUIEditor.button[1] = guiCreateButton(296, 217, 189, 63, "", false) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") guiSetVisible( GUIEditor.button[1],false) GUIEditor.button[2] = guiCreateButton(583, 221, 189, 63, "", false) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") guiSetVisible( GUIEditor.button[2],false) GUIEditor.button[3] = guiCreateButton(301, 338, 189, 63, "", false) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") guiSetVisible( GUIEditor.button[3],false) GUIEditor.button[4] = guiCreateButton(302, 463, 189, 63, "", false) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") guiSetVisible( GUIEditor.button[4],false) GUIEditor.button[5] = guiCreateButton(584, 463, 189, 63, "", false) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFAAAAAA") guiSetVisible( GUIEditor.button[5],false) GUIEditor.button[6] = guiCreateButton(584, 338, 189, 63, "", false) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAAAAAA") guiSetVisible( GUIEditor.button[6],false) local screenW, screenH = guiGetScreenSize() function dx() dxDrawRectangle(245, 140, 573, 459, tocolor(255, 0, 0, 159), false) dxDrawRectangle(292, 211, 208, 79, tocolor(33, 9, 255, 190), false) dxDrawRectangle(574, 211, 208, 79, tocolor(0, 48, 255, 190), false) dxDrawRectangle(292, 328, 208, 79, tocolor(0, 48, 255, 190), false) dxDrawRectangle(292, 453, 208, 79, tocolor(0, 48, 255, 190), false) dxDrawRectangle(574, 328, 208, 79, tocolor(0, 48, 255, 190), false) dxDrawRectangle(574, 453, 208, 79, tocolor(0, 48, 255, 190), false) dxDrawRectangle(245, 140, 573, 61, tocolor(65, 255, 0, 190), false) dxDrawText("Veh System |Salh", 249, 143, 814, 196, tocolor(0, 0, 0, 190), 2.40, "default", "center", "center", false, false, false, false, false) end function Open() if removeEventHandler("onClientRender", root, dx) then showCursor(false) guiSetVisible( GUIEditor.button[1],false) guiSetVisible( GUIEditor.button[2],false) guiSetVisible( GUIEditor.button[3],false) guiSetVisible( GUIEditor.button[4],false) guiSetVisible( GUIEditor.button[5],false) guiSetVisible( GUIEditor.button[6],false) guiSetInputEnabled(false) else addEventHandler("onClientRender", root, dx) showCursor(true) guiSetInputEnabled(true) guiSetVisible( GUIEditor.button[1],true) guiSetVisible( GUIEditor.button[2],true) guiSetVisible( GUIEditor.button[3],true) guiSetVisible( GUIEditor.button[4],true) guiSetVisible( GUIEditor.button[5],true) guiSetVisible( GUIEditor.button[6],true) end end bindKey("F6", "down", Open)
  12. الازرار مش بتظهر يعنى ؟؟
  13. يا جماعه بلاش احباط فى الناس حلو انو لسه مبتدئ وعاوز يساعد ......واصل يا بطل
  14. تعديله انا مش عارف فين الخطاء اخى بروس المشكله ما انحلت لما مسحت سطر L3yr 4
  15. ايه يا شباب محدش عارف ايه الخطاء ؟؟
  16. L3yr4 دا خطاء منى نسيت امسحو لما نقلتلكو الكود
  17. المشكله ما طلعلى اخطاء عشان اعرف اعدلو
  18. السلام عليكم شباب انا عامل كود كده رتب لتيم مافيا المشكله لما بكتب setRank فى F8 مش بيجبلى انا فى انهى رتبه ايه الخطاء شباب function L3yr1 ( _, killer ) local playeraccount = getPlayerAccount ( killer ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then setAccountData ( playeraccount, "scoreData", ( getAccountData ( playeraccount, "scoreData" )+1 ) or 1 ) outputChatBox ( "score +1", killer, 255,255,255 ) end end ------ addEventHandler ( "onPlayerWasted", root, L3yr1 ) ------ function L3yr2 ( _, acc ) if ( acc ) and not isGuestAccount ( acc ) then setAccountData ( acc, "scoreData", ( getAccountData ( acc, "scoreData" ) ) or 1 ) myrank = getAccountData ( acc, "scoreData" ) or 1 outputChatBox ( myrank, source, 255,255,255 ) end end ------ addEventHandler ( "onPlayerLogin", root, L3yr2 ) ------ function L3yr3 ( player ) local playeraccount = getPlayerAccount ( player ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then local team = getPlayerTeam ( source ) if team then local teamname = getTeamName ( team ) if teamname == "MAFIA" then local score = getAccountData ( playeraccount, "scoreData" ) or 1 local accountName = getAccountName ( playeraccount ) if score >= 50 then aclGroupAddObject (aclGetGroup("rank1"), "user."..accountName) outputChatBox ( "Now you get rank1", player, 255,255,255 ) elseif score >= 150 then outputChatBox ( "Now you get rank2", player, 255,255,255 ) aclGroupAddObject (aclGetGroup("rank2"), "user."..accountName) elseif score >= 350 then outputChatBox ( "Now you get rank3", player, 255,255,255 ) aclGroupAddObject (aclGetGroup("rank3"), "user."..accountName) elseif score >= 500 then outputChatBox ( "Now you get rank4", player, 255,255,255 ) aclGroupAddObject (aclGetGroup("rank4"), "user."..accountName) elseif score >= 1000 then outputChatBox ( "Now you get rank5", player, 255,255,255 ) aclGroupAddObject (aclGetGroup("rank5"), "user."..accountName) end end end end end ------- addCommandHandler ( "setRank", L3yr3 ) ------- function L3yr2 ( ) local acc = getPlayerAccount ( source ) if ( acc ) and not isGuestAccount ( acc ) then setAccountData ( acc, "scoreData", ( getAccountData ( acc, "scoreData" ) ) or 1 ) end end addEventHandler ( "onPlayerQuit", root, L3yr4 )
×
×
  • Create New...