Jump to content

AhmadQTR

Members
  • Posts

    451
  • Joined

  • Last visited

Everything posted by AhmadQTR

  1. Even if i didn't edit mtaserver.conf or acl it happens to me
  2. اسمحلي ماقريت الموضوع كامل
  3. English please , if you want to use your langauge (not english) use it at your section viewforum.php?f=117
  4. شكرا طلال الكود شغال بس أذا أبي اركب عليه تايمر يعني أخليه اذا مات بعد 10 ثواني يرجع كيف أو على شنو أركبه setTimer spawnPlayer
  5. Yes and nothing get saved if i tryed to change from the acl or mtaserver.conf and the server is online
  6. حاولت اشغله بس عيا عطني الكود كامل لاهنت اكتب في اف 8 serverinfo وراح يطلعلك اسم الماب الي قاعد تلعبه و اسم السيرفر و عدد المتواجدين
  7. لاكن الاسعار غليه جدا يعني 24 سلوت 5دولار؟
  8. تفضل function serverinfo ( ) outputChatBox ( getServerName( ) ) outputChatBox ( "There are now " .. getPlayerCount() .. " players on this server!" ) local mapName = getMapName() outputChatBox ( "Current Map is "..mapName.."" ) end addCommandHandler ( "serverinfo", serverinfo )
  9. وعليكم السلام و رحمة الله و بركاته اخوي عناد ليش مافي 32 سلوت؟ ارجو اضافتة سلوتس جداد ك 32 او 30 وكذا ووفقك الله شكرا
  10. جنبه يعني وين؟ في الماركر ولا شنو
  11. try this --Client GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor_Window[3] = guiCreateWindow(322,193,361,409,"Aviator Free Car Spawner by Robbster",false) guiSetVisible ( GUIEditor_Window[3], false ) GUIEditor_Label[3] = guiCreateLabel(102,115,117,123,"",false,GUIEditor_Window[3]) GUIEditor_Grid[3] = guiCreateGridList(42,54,277,216,false,GUIEditor_Window[3]) guiGridListAddColumn(GUIEditor_Grid[3],"Airport Cars",0.9) for i = 1, 3 do guiGridListAddRow(GUIEditor_Grid[3]) end guiGridListSetItemText(GUIEditor_Grid[3],0,1,"Baggage",false,false) guiGridListSetItemText(GUIEditor_Grid[3],1,1,"Tug",false,false) guiGridListSetItemText(GUIEditor_Grid[3],2,1,"Utility Van",false,false) GUIEditor_Button[3] = guiCreateButton(40,307,296,80,"Close",false,GUIEditor_Window[3]) addEventHandler ( 'onClientGUIClick', GUIEditor_Button[3], onButtonClick, false ) addEventHandler( "onClientGUIDoubleClick", GUIEditor_Grid[3], doubleClicked, false ) end ) function doubleClicked ( ) local row, col = guiGridListGetSelectedItem ( source ) if ( row and col and row ~= -1 and col ~= -1 ) then local vehicleName = guiGridListGetItemText ( source, row, 1 ) triggerServerEvent ( "spawnVehicle" ) end end
  12. Sorry for double post ^ try this function SpawnZombie () local pacecount = 0 local time = getRealTime() -- ADDED BY ME local hours = time.hour -- ADDED BY ME if ( hours > 00 ) and ( hours < 07 ) then -- ADDED BY ME while pacecount < 5 do --4 ZOMBIES AT A TIME TO PREVENT FPS DROP if (table.getn( everyZombie )+pacecount < newZombieLimit ) and (ZombieStreaming == 1) then local xcoord = 0 local ycoord = 0 local xdirection = math.random(1,2) if xdirection == 1 then xcoord = math.random(15,40) else xcoord = math.random(-40,-15) end local ydirection = math.random(1,2) if ydirection == 1 then ycoord = math.random(15,40) else ycoord = math.random(-40,-15) end local liveplayers = getAlivePlayers () if (table.getn( liveplayers ) > 0 ) then local lowestcount = 99999 local lowestguy = nil for PKey,thePlayer in ipairs(liveplayers) do if isElement(thePlayer) then if (getElementData (thePlayer, "dangercount")) and (getElementData(thePlayer, "zombieProof") ~= true) and (getElementData(thePlayer, "alreadyspawned" ) == true) then if (getElementData (thePlayer, "dangercount") < lowestcount) then local safezone = 0 local gx, gy, gz = getElementPosition( thePlayer ) local allradars = getElementsByType("radararea") for theKey,theradar in ipairs(allradars) do if getElementData(theradar, "zombieProof") == true then if isInsideRadarArea ( theradar, gx, gy ) then safezone = 1 end end end if safezone == 0 then lowestguy = thePlayer lowestcount = getElementData (thePlayer, "dangercount") end end end end end pacecount = pacecount+1 if isElement(lowestguy) then triggerClientEvent ( "Spawn_Placement", lowestguy, ycoord, xcoord ) else pacecount = pacecount+1 end else pacecount = pacecount+1 end else pacecount = pacecount+1 end end end end
  13. use [lua] [ /lua] tags to 'paste the code with color in functions'
  14. manuals وtutorials في هنا viewtopic.php?f=148&t=40809
  15. روعه واللهـ بس الافضل تحط اختيار اللغه في البدايه ويكون مكتوب ( العربيه ) بدل arabic ما في فرق
  16. طيب هذا الكود انا ابيه لما يكون اكثر من لاعب واحد بس يلمس الماركر وينقل كل الاعبين marker5 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 100, 100, 100, 255) function theMarker( hitPlayer, matchingDimension ) if(getTeamName(getPlayerTeam(hitPlayer))=="Police")then setMarkerColor ( marker5, 65, 105, 255, 255 ) elseif (getTeamName(getPlayerTeam(hitPlayer))=="Criminal") then setMarkerColor ( marker5, 255, 0, 0, 255 ) R,G,B = getMarkerColor(marker5) if(R==255 and G==0 and B==0)then removeEventHandler( "onMarkerHit", marker5, theMarker ) if isElementWithinMarker(localPlayer, marker5) then setTimer(givePlayerMoney,20000,1,hitPlayer,16000) end end end end addEventHandler( "onMarkerHit", marker5, theMarker ) ينقلهم وين؟ وضح لو سمحت
  17. هو قصده اذا مات مب لما يصاب الاعب
  18. function explosionOnWasted ( ) local pX, pY, pZ = getElementPosition ( source ) createExplosion ( pX, pY, pZ, 6, source ) end addEventHandler ( "onPlayerWasted", getRootElement(), explosionOnWasted ) ماجربته
  19. انا ابي كودـ مثل الصورة مثلا ولكنها فيديو يعني فديو يشتغل في لوحة ياليت تكون فهمتني >< ماأظن انك تقدر تسويه
  20. تقصد هذا؟ viewtopic.php?f=108&t=27006&hilit=stage
  21. Bump. So any another thing i can do?
×
×
  • Create New...