Jump to content

nxFairlywell

Members
  • Posts

    1,849
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by nxFairlywell

  1. تقصد أنك تريد أن يحصل اللاعب على راتب محدد كل 24 ساعه ؟ وإذا خرج من السيرفر يتوقف التايمر إلى أن يدخل مرة أخرى ؟
  2. أها , آسف اجل كنت احسب الكونفق حق الأخطاء
  3. يمكن انه حاط سكربت اول ما يبدأ السيرفر يشتغل و فيه دالة طرد اللاعب هذا مقصدي من ملف الكونفق :)
  4. MTA SA\server\mods\deathmatch\mtaserver.conf إذا ما نفع أعرض لنا الملف هذا إذا كان السيرفر محلي فقط إعرض الملف , إذا كان سيرفرك الرسمي لا تعرضه
  5. ايش نوع السيرفر ؟ إذا فيه حياة واقعية أنا معكم
  6. كرت الشاشة اللي عندك تعبان
  7. لازم يكون عندك دومين اضن والله اعلم
  8. انت تقول انو الصفحة ما تفتح معاك
  9. ارسل الرمز لملف البي اتش بي من خلال لوا و استخدم الماث عشان تجيب ارقام عشوائية , اما بالنسبة للحروف سوي جدول فيه الحروف و سوي قيمة عشوائية من 1 الى عدد الحروف في الجدول math.random mysqli.connect echo
  10. بالنسبة انا استخدم اكسامب برنامج ممتاز جداً و اعتقد انه الأفضل لأنه سهل جداً انصحك تستخدمه اما بالنسبة للبرنامج اللي تستخدمه ما ادري كيف طريقته بالضبط
  11. local انا ما اقدر اشوفها لأنك حاطها في سيرفر خاص فيك لكن تقدر ترفعها على رابط و انا احطها عندي في مجلد البرنامج اللي استخدمه و ادخل على الرابط من جهتي و اشوفها
  12. أتوقع ان المصمم و المبرمج تخصصين مختلفة , المصمم له شغل لحاله و المبرمج له شغل لحاله صعب جدا جداً تاخذ الشغلتين بنفس الوقت أما بالنسبة لموضوع استنقاص السيرفرات العربية , كان الاحرى بك تسميه انتقاد مو استنقاص انا اشوفه كذا ,,, فعلاً يا اخي السيرفرات العربية أغلبها هجولة , والهجولة راح وقتها , عندي جي تي اي 5 و عندي العاب عربية نزلت حتى على الجوالات كلها هجوله SA ليش ادخل جي تي اي لو كانت فيه أفكار جديده و قيم مودات جديده كان ما بتحصل انتقادات حول السيرفرات العربية
  13. أساساً دالة إضافة فلوس للاعب مو موجوده في السكربت أضفتها لك في السطر رقم 108 , تأكد الآن كود السيرفر فقط : local Tufrs = { } local TufrsPos = { { 2652, -1264, 60, 60, "Ballas" , 5000 }, { 2646, -1888, 170, 215, "Ballas" , 5000 }, { 2415, -2155, 300, 95, "Grove Street" , 5000 }, { 2741, -1388, 120, 120, "Ballas" , 5000 }, { 2650, -1412, 75, 140, "Rifa" , 5000 }, { 2533, -1939, 120, 190, "Aztecas" , 5000 }, { 2742, -1495, 120, 110, "Ballas" , 5000 }, { 2646, -1664, 90, 250, "Grove Street" , 5000 }, { 2411, -1938, 120, 190, "Vagos" , 5000 }, { 2654, -1939, 50, 50, "Vagos" , 5000 } --{ X, Y, H, W, Team , Money }, } addEventHandler ( "onResourceStart", resourceRoot, function ( ) for i, v in ipairs(TufrsPos) do local ColShape = createColRectangle(v[1], v[2], v[3], v[4]) local Team = getTeamFromName(v[5]) local TeamName = "N/A" local R, G, B = 255, 255, 255 if Team then R, G, B = getTeamColor(Team) TeamName = getTeamName(Team) end Tufrs[ColShape] = { Radar = createRadarArea(v[1], v[2], v[3], v[4] , R, G, B, 180) , TeamName = TeamName , occupier = 100 , Money = v[6] , } end end ) addEventHandler("onMouseEnter",root, function(mouse) if source == BTN.Open then guiSetAlpha(BTN.Open,0.80) end end ) addEventHandler("onMouseLeave",root, function(Leave) if source == BTN.Open then guiSetAlpha(BTN.Open,1) end end ) function getColPlayerTeam (Col, Team) for i, pla in pairs(getElementsWithinColShape(Col, "player")) do if getPlayerTeam(pla) and getPlayerTeam(pla) ~= getTeamFromName("Criminals") and getTeamName(getPlayerTeam(pla)) == getTeamName(Team) then return true else exports.TopBarChat:sendClientMessage( "~Warning : You must kill the other team members in the zone~",pla ,232 ,0 ,0 ) return false end end return false end function getTeamTufrs(Team) local Tufr = { } for Col, v in pairs(Tufrs) do if v.TeamName == getTeamName(Team) then table.insert( Tufr, Col ) end end return Tufr end addEventHandler("onColShapeHit",root, function(pla) local Rader = Tufrs[source] if ( Rader ) then setElementData(pla, "TeamTufrs",Rader ) end end) addEventHandler("onColShapeLeave",root, function(pla) setElementData(pla, "TeamTufrs",false ) end) setTimer (function ( ) for Col, v in pairs(Tufrs) do for i, pla in pairs(getElementsWithinColShape(Col, "player")) do local Team = getPlayerTeam ( pla ) if Team and getColPlayerTeam (Col, Team) then if getTeamName(Team) ~= Tufrs[Col].TeamName then if Tufrs[ Col ].occupier > 1 then Tufrs[ Col ].occupier = Tufrs[ Col ].occupier - 1 setRadarAreaFlashing ( Tufrs[ Col ].Radar, true ) elseif Tufrs[ Col ].occupier == 1 then local r, g, b = getTeamColor ( getPlayerTeam ( pla ) ) setRadarAreaFlashing ( Tufrs[ Col ].Radar, false ) setRadarAreaColor ( Tufrs[ Col ].Radar, r, g, b, 150 ) Tufrs[ Col ].TeamName = getTeamName(Team) Tufrs[ Col ].occupier = 100 exports.TopBarChat:sendClientMessage( "~Your Team now controls the turf~",pla ,0 ,255 ,0 ) for i, player in ipairs(getPlayersInTeam( Team )) do local Money = Tufrs[ Col ].Money exports.TopBarChat:sendClientMessage("You won ~$~"..Money, player, 0, 255, 0) setElementData(player, "Money", getElementData(player, "Money") + Money) givePlayerMoney(player,Money); end end else if Tufrs[ Col ].occupier < 99 then Tufrs[ Col ].occupier = Tufrs[ Col ].occupier + 1 elseif Tufrs[ Col ].occupier == 99 then local r, g, b = getTeamColor ( getPlayerTeam ( pla ) ) setRadarAreaFlashing ( Tufrs[ Col ].Radar, false ) setRadarAreaColor ( Tufrs[ Col ].Radar, r, g, b, 150 ) Tufrs[ Col ].TeamName = getTeamName(Team) Tufrs[ Col ].occupier = 100 end end end setElementData(pla, "TeamTufrs",Tufrs[Col] ) end end end,5000, 0)
  14. -- #EXAMPLE x,y,z=2003.22,212.33,14 locations = { { "Streets", { { "First street", x, y, z }, { "Second street", x, y, z }, { "Third street", x, y, z } } }, { "Main Locations", { { "First location", x, y, z }, { "Second location", x, y, z }, { "Third location", x, y, z } } }, { "Server Cities", { { "First city", x, y, z }, { "Second city", x, y, z }, { "Third city", x, y, z } } }, }; GUIEditor = { label = {}, window = {}, } mainRow=nil addEventHandler('onClientResourceStart',resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(90, 86, 280, 390, "# الانتقالات / Warp ~ !", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFFFFFF") grid = guiCreateGridList(10, 53, 260, 272, false, GUIEditor.window[1]) guiGridListAddColumn(grid, "Positions", 0.9) edit = guiCreateEdit(9, 25, 261, 24, "البحث / Search :", false, GUIEditor.window[1]) guiSetFont(edit,FontSearch) move = guiCreateButton(53, 335, 166, 29, "[ انتقال / Warp ] !", false, GUIEditor.window[1]) label = guiCreateLabel(209, 366, 85, 24, " ", false, GUIEditor.window[1]) guiLabelSetColor(label, 255, 0, 0) [[ INSERT POSITION NAMES ]] for _, pos in ipairs (locations) do mainRow = guiGridListAddRow(grid); guiGridListSetItemText(grid,mainRow,1,pos[1],false,false); guiGridListSetItemData(grid,mainRow,1,pos[2]) end addEventHandler('onClientGUIDoubleClick', root, function() if source == grid then local row, col = guiGridListGetSelectedItem(grid); if row ~= -1 and guiGridListGetItemText(grid,row,1) ~= ".." then local positionsData = guiGridListGetItemData(grid, row, 1); if positionsData then if type(positionsData) == "table" then clearMainRows(); backRow = guiGridListAddRow(grid); guiGridListSetItemText(grid,backRow,1,"..",false,false) addEventHandler("onClientGUIDoubleClick", root, aBackFunc) for index=1, #positionsData do secondRow=guiGridListAddRow(grid); guiGridListSetItemText(grid,secondRow,1,positionsData[index][1],false,false); guiGridListSetItemData(grid,secondRow,1,{ positionsData[index][2],positionsData[index][3],positionsData[index][4] }); end end end end end end ) end ); aBackFunc=function() return addMainRows(); end function clearMainRows() local count = guiGridListGetRowCount(grid); if count == #locations then for i = 1, count do guiGridListRemoveRow(grid,i) end return true end return false end function addMainRows() local selectedRow, selectedColumn = guiGridListGetSelectedItem(grid); if selectedRow ~= -1 then local text=guiGridListGetItemText(grid,selectedRow,1); if text == '..' then guiGridListClear(grid); for k, pos in ipairs (locations) do mainRow = guiGridListAddRow(grid); guiGridListSetItemText(grid,mainRow,1,pos[1],false,false); guiGridListSetItemData(grid,mainRow,1,pos[2]) end return true end end return false end addEventHandler ("onClientGUIClick", root, function() if (source == ff) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler("onClientGUIDoubleClick", root, function() if source == grid then local row,col = guiGridListGetSelectedItem(grid); if row ~= -1 then if guiGridListGetItemText(grid,1,1) == ".." then if row > 1 then local pos = guiGridListGetItemData(grid,row-1,1); local x, y, z = pos[2],pos[3],pos[4] setElementPosition(localPlayer,x,y,z); end end end end end );
  15. سهله بالنسبة لك حبيبي بس هو ما يشوفها سهله , لو يشوفها سهله مانزل موضوع ثاني شي , الإكس ام ال لها وظائف كثيرة في الويكي xmlCopyFile xmlCreateChild xmlCreateFile xmlDestroyNode xmlFindChild xmlLoadFile xmlNodeGetAttribute xmlNodeGetAttributes xmlNodeGetChildren xmlNodeGetName xmlNodeGetParent xmlNodeGetValue xmlNodeSetAttribute xmlNodeSetName xmlNodeSetValue xmlSaveFile xmlUnloadFile انت كاتب خطوات الحل و مو كاتب ايش يستخدم بالضبط ,,, والجداول اسهل بالنسبة لطلبه ( أما سالفة اللاق و ما اللاق , هذي كلها ( كلام فاضي لا لاق ولا هم يحزنون .
  16. لو تستعمل الجداول تكون اسهل لك مثال : -- #EXAMPLE x,y,z=2003.22,212.33,14 locations = { { "Streets", { "First street", x, y, z }, { "Second street", x, y, z }, { "Third street", x, y, z } }, { "Main Locations", { "First location", x, y, z }, { "Second location", x, y, z }, { "Third location", x, y, z } }, { "Server Cities", { "First city", x, y, z }, { "Second city", x, y, z }, { "Third city", x, y, z } }, } for i = 1, #locations do print ("Name : "..locations[i][1].. " & : "..locations[i][2][1].." & x, y, z = : "..locations[i][2][2]..","..locations[i][2][3]..","..locations[i][2][3]) print ("Name : "..locations[i][1].. " & : "..locations[i][3][1].." & x, y, z = : "..locations[i][3][2]..","..locations[i][3][3]..","..locations[i][3][3]) print ("Name : "..locations[i][1].. " & : "..locations[i][4][1].." & x, y, z = : "..locations[i][4][2]..","..locations[i][4][3]..","..locations[i][4][3]) end
×
×
  • Create New...