-
Posts
451 -
Joined
-
Last visited
Everything posted by AhmadQTR
-
Even if i didn't edit mtaserver.conf or acl it happens to me
-
اسمحلي ماقريت الموضوع كامل
-
English please , if you want to use your langauge (not english) use it at your section viewforum.php?f=117
-
شكرا طلال الكود شغال بس أذا أبي اركب عليه تايمر يعني أخليه اذا مات بعد 10 ثواني يرجع كيف أو على شنو أركبه setTimer spawnPlayer
-
Yes and nothing get saved if i tryed to change from the acl or mtaserver.conf and the server is online
-
Nice! keep the good work.
-
Help me please
-
حاولت اشغله بس عيا عطني الكود كامل لاهنت اكتب في اف 8 serverinfo وراح يطلعلك اسم الماب الي قاعد تلعبه و اسم السيرفر و عدد المتواجدين
-
لاكن الاسعار غليه جدا يعني 24 سلوت 5دولار؟
-
تفضل 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 )
-
وعليكم السلام و رحمة الله و بركاته اخوي عناد ليش مافي 32 سلوت؟ ارجو اضافتة سلوتس جداد ك 32 او 30 وكذا ووفقك الله شكرا
-
جنبه يعني وين؟ في الماركر ولا شنو
-
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
-
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
-
use [lua] [ /lua] tags to 'paste the code with color in functions'
-
manuals وtutorials في هنا viewtopic.php?f=148&t=40809
-
قسم الأقترحات والأستفسارات للأستضافة FPSSERVER
AhmadQTR replied to Micro's topic in Arabic / العربية
روعه واللهـ بس الافضل تحط اختيار اللغه في البدايه ويكون مكتوب ( العربيه ) بدل arabic ما في فرق -
طيب هذا الكود انا ابيه لما يكون اكثر من لاعب واحد بس يلمس الماركر وينقل كل الاعبين 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 ) ينقلهم وين؟ وضح لو سمحت
-
هو قصده اذا مات مب لما يصاب الاعب
-
function explosionOnWasted ( ) local pX, pY, pZ = getElementPosition ( source ) createExplosion ( pX, pY, pZ, 6, source ) end addEventHandler ( "onPlayerWasted", getRootElement(), explosionOnWasted ) ماجربته
-
انا ابي كودـ مثل الصورة مثلا ولكنها فيديو يعني فديو يشتغل في لوحة ياليت تكون فهمتني >< ماأظن انك تقدر تسويه
-
تقصد هذا؟ viewtopic.php?f=108&t=27006&hilit=stage
-
Bump. So any another thing i can do?
