Jump to content

Rockyz

Members
  • Posts

    1,862
  • Joined

  • Days Won

    8

Everything posted by Rockyz

  1. انت شفت الساينتكس اول ؟ ليش تتخطى اول قيمة اول قيمة هي الي تبيها ( الي مسوي الضرر ) ش
  2. هذي ماتفرق حطيتها ولا لا
  3. وش سويت غير انك حطيت مسافات ؟
  4. المشكلة هي ارقمنتات زائدة جرب هذا -- Server # addEventHandler("onResourceStart", root, function () for k, v in ipairs (getElementsByType ("player")) do local ipp = getPlayerIP (v) if (ipp) then setElementData (v, "ip", ipp) end end end )
  5. تقدر تسوي نفس الطريقة الي فوق اذا دخل الاعب تجيب الايبي ماله وتخلي عليه داتا باستعمال getPlayerIP
  6. -- Server # addEventHandler("onPlayerLogin", root, function (_,acc) if (acc) then setElementData (source, "AccName", getAccountName (acc)) end end ) -- Client # dxDrawText("Your Name Account : " ..(getElementData (localPlayer, "AccName") or "N/A"), 402, 450, 1012, 493, tocolor(255, 255, 255, 255), 0.70, "bankgothic", "left", "top", false, false, false, false, false)
  7. يا احمد كودك خرابيط addEventHandler("onPlayerDamage", root, function(plr,_, killer) if killer and killer ~= source and getElementType(killer) == "player" then local team = getPlayerTeam(plr) if team and getTeamName(team) == "Police" then setPlayerWantedLevel ( killer, 6 ) end end end ) addEventHandler("onPlayerDamage", root, function(plr,_,killer) if killer and killer ~= source and getElementType(killer) == "player" then local team = getPlayerTeam( plr ) local level = getPlayerWantedLevel ( killer ) if team and getTeamName(team) == "Police" then if level < 3 then cancelEvent() end end end ) من وين جايب plr,_
  8. فيه عندك طريقتين الطريقة الاولى اذا كان عندك رمز للنجمة تقدر تستخدم string.rep يعني مثلا كذا local sx, sy = guiGetScreenSize ( ); local cx, cy = 1366, 768; dxDrawText(string.rep ( "رمز النجمة",getPlayerWantedLevel (localPlayer) ), 583*sx/cx, 191*sy/cy, 897, 237*sy/cy, tocolor(255, 255, 0, 255), 1.00, dxfont0_Tfont, "left", "top", false, false, false, false, false) الطريقة الثانية هي اذا عندك صورة تصمم الصور وتخفي الهود وتحط 6 نجوم وبعدها مثلا اذا كان عدد النجوم مالته 1 يضهر الصورة واحد واذا عدد النجوم 2 يضهر الصورة واحد واثنين
  9. local tTEAM = createTeam ( "Nteam", 255, 0, 0 ) addEventHandler ( "onPlayerDamage", root, function ( atk, _, _, los ) if ( atk ) and ( atk ~= source ) and ( getElementType ( atk ) == "player" ) then local teamm = getPlayerTeam ( atk ) if ( teamm ) then if ( getTeamName ( teamm ) ~= "Police" ) then setPlayerWantedLevel ( atk, getPlayerWantedLevel ( atk ) + 1 ) else outputChatBox ("",atk,0,0,0,true) end else setPlayerTeam ( atk, tTEAM ) end end )
  10. طيب ليه ماتعتمد على نفسك ناسخ جزء من الكود وكله هريس كيف نساعدك
  11. السلام عليكم ................................................................................... . ابي فنكشنات مثلا انا شرطي و اذا ضربت واحد عنده 1 نجمة او اكثر الاعب الي ضربته يلحق وراء الشرطي . . ..............................................................................................
  12. قدرنا بس ماقدرنا ^
  13. تقصد جاهز ؟ لا لا مفهومة
  14. ليش ماخليته يحاول كود سهل ^ وانت تعرف وشش معنى not guiGetVisible(WindowName) ؟
  15. يعني ماعنده يد يكتب هو ؟ ^
  16. idont understand what are you trying to do
  17. --#Client addEventHandler ( "onClientGUIClick", root, function () if ( source == btn1 ) then triggerServerEvent ( "GiveMeTeam1", localPlayer ) end if ( source == btn2 ) then triggerServerEvent ( "GiveMeTeam2", localPlayer ) end end ) --------------- --#Server addEvent ( "GiveMeTeam1",true ) addEventHandler ( "GiveMeTeam1", root, function() setPlayerTeam(source, getTeamFromName ("Police1")) end ) addEvent ( "GiveMeTeam2",true ) addEventHandler ( "GiveMeTeam2", root, function() setPlayerTeam(source, getTeamFromName ("Police")) end )
  18. PleaseSelect = { {"ساحة القتال الاول",273.73892211914, 1990.8371582031, 17.640625 }, {"ساحة القتال الثاني",1611.3591308594, 754.52416992188, 10.87656211853 }, {"حرب السكاكين",-415.7585144043, -634.93737792969, 11.637937545776 }, {"الستراحه",-724.26849365234, 971.14849853516, 12.31086063385 }, {"محل بيع الاسلحه",1348.0174560547, -1279.7244873047, 13.3828125 }, {"البنك الرئيسي",1480.1080322266, -1738.6528320313, 13.546875 }, {"النخيل",2121.5476074219, 1390.9613037109, 10.812517166138 }, {"الدائري",1686.3471679688, 1396.9626464844, 10.74236869812 }, {"الفندق",-1755.3333740234, 949.79974365234, 24.7421875 }, {"مهمة سرقة البنك",591.33178710938, -1238.0036621094, 17.89847946167 }, {"ساحة التفجير",-2087.2016601563, -125.29878234863, 35.327392578125 }, {"ساحة الدرفت",1002.9132080078, -2323.3430175781, 13.095125198364 }, {"ساحة الرفع",2849.1574707031, -1754.2189941406, 11.046875 }, {"المجمع السكني1",2602.2561035156, 1779.1556396484, 10.8203125 }, {"المجمع السكني2",-1687.9128417969, 1356.2553710938, 7.1721897125244 }, {"الـغـروب",635.01287841797, 1696.4790039063, 6.9921875 }, {"الـمـطـآر الاول",-1022.7536621094, 471.78393554688, 14.346378326416 }, {"الـمـطـآر الـثـآني",1470.1495361328, 1172.9645996094, 13.132493019104 }, {"الـمـطـآر الـثـآلـث",-1367.5183105469, -90.866271972656, 14.1484375 }, } --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. --]]------------------------------------------------- GUIEditor = { gridlist = {}, staticimage = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.button[1] = guiCreateButton(649, 613, 120, 33, "", false) guiSetAlpha(GUIEditor.button[1], 0.00) GUIEditor.label[1] = guiCreateLabel(687, 617, 159, 40, "انتقل", false) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 249, 230, 13) GUIEditor.staticimage[1] = guiCreateStaticImage(515, 151, 417, 462, "dot_white.png", false) guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FEE7E6E7 tr:FEE7E6E7 bl:FEE7E6E7 br:FEE7E6E7") GUIEditor.gridlist[1] = guiCreateGridList((417 - 402) / 2, (462 - 425) / 2, 402, 425, false, GUIEditor.staticimage[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Please Select", 0.9) GUIEditor.staticimage[2] = guiCreateStaticImage(514, 118, 418, 33, ":gggg/images/dot_white.png", false) guiSetProperty(GUIEditor.staticimage[2], "ImageColours", "tl:FEDFF303 tr:FEDFF303 bl:FEDFF303 br:FEDFF303") GUIEditor.label[2] = guiCreateLabel(75, 0, 250, 33, "Mr.sA~~eF~~", false, GUIEditor.staticimage[2]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 167, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") GUIEditor.staticimage[3] = guiCreateStaticImage(514, 613, 418, 33, "dot_white.png", false) guiSetProperty(GUIEditor.staticimage[3], "ImageColours", "tl:FEE7E6E7 tr:FEE7E6E7 bl:FEE7E6E7 br:FEE7E6E7") GUIEditor.label[3] = guiCreateLabel(49, -490, 306, 23, "SeRveR", false, GUIEditor.staticimage[3]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 167, 0, 0) GUIEditor.staticimage[4] = guiCreateStaticImage(482, -98, 128, 54, "dot_white.png", false, GUIEditor.staticimage[3]) GUIEditor.staticimage[5] = guiCreateStaticImage(649, 617, 117, 25, "dot_white.png", false) guiSetProperty(GUIEditor.staticimage[5], "ImageColours", "tl:FEDD0000 tr:FEDD0000 bl:FEDD0000 br:FEDD0000") GUIEditor.button[2] = guiCreateButton(-244, -8, 16, 19, "", false, GUIEditor.staticimage[5]) GUIEditor.staticimage[6] = guiCreateStaticImage(630, 601, 162, 41, "dot_white.png", false) guiSetProperty(GUIEditor.staticimage[6], "ImageColours", "tl:FEDD0000 tr:FEDD0000 bl:FEDD0000 br:FEDD0000") restartGRID ( ) end ) function restartGRID ( ) for i,mk in ipairs(PleaseSelect) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,1,mk[1],false,false) guiGridListSetItemData(GUIEditor.gridlist[1],row,1,{tonumber (mk[2]),tonumber (mk[3]),tonumber (mk[4])}) guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) end end addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(GUIEditor.gridlist[1],sel,1)) setElementPosition(localPlayer,x,y,z) guiSetVisible (GUIEditor.staticimage[1], false ) showCursor(false) guiSetInputEnabled(false) else outputChatBox("* You Must Select Place First | يجب تحديد ألمكان اولآ",255,100,100,true) end end end ) bindKey('F6','down', function ( ) guiSetVisible (GUIEditor.staticimage[1], not guiGetVisible (GUIEditor.staticimage[1])) showCursor (guiGetVisible (GUIEditor.staticimage[1])) end)
  19. Try to stop the 'play gamemode' <
×
×
  • Create New...