Jump to content

AliAlanzi

Members
  • Posts

    247
  • Joined

  • Last visited

Everything posted by AliAlanzi

  1. شكلك غلطان اخوي قرأت الامثلة الي عليه؟ اقرها كويس و شوف حسب ما فهمت من الامثلة انه يجيب كم شخص بسيارة و كم شخص يمشي على رجلة او يجيب كم شخص بالتيم هو يبي عدد سيرفر كامل مو كم شخص يمشي و مدري وشو افهم الطلب
  2. setTimer( playSoundFrontEnd , 20000,1,root,45 ); ترا كذا بشغل الصوت ما رح يسحب او يسوي شي
  3. local teams = { getTeamFromName("Name"), } زي كذا يعني؟
  4. انت جاي تساعد ولا تطقطق علي؟ حركات بزران ترا! اتوقع الغلط من حقت التيم او القروب
  5. setTimer( 3000, 1, source) اتوقع بس اكيد مو اكيد اتوقع كذا ض انا جديد بالبرمجه
  6. جبتها من ال Wiki و خلت استضافه و سويت debugscript 3 صلحت كل شي بس ما يجي علامة و ولا كلام شات للقروب الي ابيه او التيم و اتحدا اي مبرمج مبتدا لمن يبدا يسوي اكواد من نفسه الكل يجيب من wiki
  7. بتساعدوني ولا وش وضعكم ياخي؟؟؟؟؟؟؟؟؟؟ تردون على غيري و انا لا وش ذا؟
  8. هذا كلينت نسيت اخليه function onPlayerSpawnHandler ( ) local playerName = getPlayerName( source ) outputChatBox ( playerName .. " has spawned!" ) local teamID = tonumber(getElementData(theTeam, "id")) if (teamID==1) end addEventHandler( "onPlayerSpawn", root, onPlayerSpawnHandler ) يا جماعة حد يرد او يشوف الاكواد صح ول لا
  9. function player_Wasted ( ammo, attacker, weapon, bodypart ) if ( attacker ) then local tempString -- if the element that killed him was a player, if ( getElementType ( attacker ) == "player" ) then -- put the attacker, victim and weapon info in the string tempString = getPlayerName ( attacker ).." killed "..getPlayerName ( source ).." ("..getWeaponNameFromID ( weapon )..")" -- else, if it was a vehicle, elseif ( getElementType ( attacker ) == "vehicle" ) then -- we'll get the name from the attacker vehicle's driver tempString = getPlayerName ( getVehicleController ( attacker ) ).." killed "..getPlayerName ( source ).." ("..getWeaponNameFromID ( weapon )..")" end -- if the victim was shot in the head, append a special message if ( bodypart == 9 ) then tempString = tempString.." (HEADSHOT!)" -- else, just append the bodypart name else tempString = tempString.." ("..getBodyPartName ( bodypart )..")" end -- display the message outputChatBox ( tempString ) -- if there was no attacker, else -- output a death message without attacker info outputChatBox ( getPlayerName ( source ).." died. ("..getWeaponNameFromID ( weapon )..") ("..getBodyPartName ( bodypart )..")" ) blip = createBlip ( x, y, z , player_Wasted ) blips = getElementsByType ( "blip" ) -- Loop through the list, storing the blip from the table in the variable blipValue for blipKey, blipValue in ipairs(blips) do -- Retrieve the blip's colors into the variables red, green, blue and alpha red, green, blue, alpha = getBlipColor ( blipValue ) -- If the blip's icon isn't white already if ( red ~= 255 or green ~= 255 or blue ~= 255 or alpha ~= 255 ) then -- Set the blip's color to white setBlipColor ( blipValue, 255, 255, 255, 255 ) blips = getElementsByType ( "blip" ) -- Loop through the list, storing the blip from the table in the variable blipValue for blipKey, blipValue in ipairs(blips) do -- Retrieve the blip's icon into the variable 'blipIcon' blipIcon = getBlipIcon ( blipValue ) -- If the blip's icon wasn't the default already if ( blipIcon ~= 0 ) then -- Set the blip's icon to the default setBlipIcon ( blipValue, 0 ) local teamID = tonumber(getElementData(theTeam, "id")) if (teamID==1) end end addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted ) بقولكم وش سالفة انا قصدي انه لمن شخص يموت يطلع ل فكشن محدد او تيم محدد يطلع انه في شخص مات و يطلع له علامة على مكانة و غير كذا يطلع بشات الفريق حقكم انه شخص قتل هذا بسلاح كذا و الخ ادري نص ابو الترتيب و اكواد غلط بس ابي انا اصمم الاكواد و كل شي و احاول الكود كذا سليم ولا في شي ناقص له؟
  10. انا شريت جهاز جديد لمن اجيت احمل Mtasa يطلع لي الموقع محظور وش اسوي؟ ويندوز 10 انا وش الحل ؟
  11. هذا كود حق تصليح سيارة local fixingMarkers = { createMarker(1577, 577.40002441406, 10.39999961853-1, "cylinder", 4.5, 128, 64, 0, 255) } addEventHandler("onMarkerHit", root, function(hitElement) if getElementType(hitElement) == "player" and getElementData(hitElement, "Group") == "Pro's" then for i,v in ipairs(healthMarkers) do if v == source then break end end elseif getElementType(hitElement) == "vehicle" then for i,v in ipairs(fixingMarkers) do if v == source then local player = getVehicleOccupant(hitElement, 0) if player and getElementData(player, "Group") == "Pro's" then setElementVelocity(hitElement, 0, 0, 0) fixVehicle(hitElement) exports.guimessages:outputServer(player, "[Pro's]: Your vehicle has been fixed!", 0, 0, 255) else outputChatBox ( "Only For [Pro's]", player, 244 , 87, 10, true ) end break end end end end ) جربة و رد علي ركبة في ملف سيرفر server.lua الي عندك
  12. اها يعني تشتغل معاي و مع غيري لا؟
  13. مو خرابيط هذا انا استخدمه ! ثاني شي شدخلك هذا خوي و انا الي معرفه على الموقع
  14. function onSpawnDD(x,y,z,rot,team) setTimer(function(source) if ( getElementData(source,"Group") == "Pro's" ) and ( getTeamN(source) == "No Team" ) and ( getElementData(source,"Stats") ~= 3 ) then rnx = math.random(-2,2) rny = math.random(-2,2) rsp = math.random(1,3) setElementPosition(source, 140.57130+rnx,1378.62305+rny,1088.36719) -- setElementInterior(source, 5) setElementDimension(source, 1826) setPedRotation(source, 0) setPedSkin(source, 30) setPedArmor(source, 100) setPedHealth (source, 200) setHealthAndArmor(source, 200) resetHealthArmy(source, 200) elseif getElementData( source, 'Group' ) == groupName and getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' then rnx = false rny = false rsp = false end end,50,1,source) end جرب ذا
  15. ياطيب وين كود حق التيم الحين اذا كان هو شرطي يرسبن بالمقر و حرامي بالمقر اتوقع هو يبي تيم محدد يرسبن في مقر
  16. لمن تجي تكتب الكود في زر <> ادعسها و حدد Lua و اكتب كودك
  17. ما تبي تساعد محد قلك تدخل هنا ما تبي تساعد خلص لا تقول انت كذا و مدري وش تقصد سطر 10؟ و 72 و هم اصلن true
  18. ردو علي !! تردون على غيري و انا لا
  19. الحين انا عندي صوت ابيه مثلا لمن ادعس حرف يشتغل الصوت عندي كود بس يكرر الصوت اول ما يخلص النغمة يرجع يعيدها انا ما ابي يعيدها و ابي الي قريب منك يسمعها معك بعطيك كود الي استخدمه local sounds = { } -- Bind Keys required function bindKeys(res) bindKey("n", "down", toggleSirens) for key, value in ipairs(getElementsByType("vehicle")) do if isElementStreamedIn(value) then if getElementData(value, "lspd:siren") then sounds[value] = playSound3D("policebeep.mp3", 0, 0, 0, true) attachElements( sounds[value], value ) setSoundVolume(sounds[value], 0.4) setSoundMaxDistance(sounds[value], 180) setElementDimension(sounds[value], getElementDimension(value)) setElementInterior(sounds[value], getElementInterior(value)) end end end end addEventHandler("onClientResourceStart", getResourceRootElement(), bindKeys) function toggleSirens() local theVehicle = getPedOccupiedVehicle(getLocalPlayer()) if (theVehicle) then local occupants = getVehicleOccupants(theVehicle) if occupants[0]==getLocalPlayer() then triggerServerEvent("lspd:setSirenState", theVehicle) end end end addCommandHandler("togglesirens", toggleSirens, false) function streamIn() if getElementType( source ) == "vehicle" and getElementData( source, "lspd:siren" ) and not sounds[ source ] then sounds[source] = playSound3D("policebeep.mp3", 0, 0, 0, true) attachElements( sounds[source], source ) setSoundVolume(sounds[source], 0.4) setSoundMaxDistance(sounds[source], 180) setElementDimension(sounds[source], getElementDimension(source)) setElementInterior(sounds[source], getElementInterior(source)) end end addEventHandler("onClientElementStreamIn", getRootElement(), streamIn) function streamOut() if getElementType( source ) == "vehicle" and sounds[source] then destroyElement( sounds[ source ] ) sounds[ source ] = nil end end addEventHandler("onClientElementStreamOut", getRootElement(), streamOut) function updateSirens( name ) if name == "lspd:siren" and isElementStreamedIn( source ) and getElementType( source ) == "vehicle" then local attached = getAttachedElements( source ) if attached then for key, value in ipairs( attached ) do if getElementType( value ) == "sound" and value ~= sounds[ source ] then destroyElement( value ) end end end if not getElementData( source, name ) then if sounds[ source ] then destroyElement( sounds[ source ] ) sounds[ source ] = nil end else if not sounds[ source ] then sounds[source] = playSound3D("policebeep.mp3", 0, 0, 0, true) attachElements( sounds[source], source ) setSoundVolume(sounds[source], 0.4) setSoundMaxDistance(sounds[source], 180) setElementDimension(sounds[source], getElementDimension(source)) setElementInterior(sounds[source], getElementInterior(source)) end end end end addEventHandler("onClientElementDataChange", getRootElement(), updateSirens)
  20. طيب رابط استضافه؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ و الي يبي دعم فني او مبرمج حياة واقعية يكلمني ترا ابرمج مجانا
  21. هذي لمن مود يشتغل بس اتوقع اذا ابيها للاعب لمن يدخل onPlayerJoin
  22. سلام عليكم و رحمة الله وربركاتة الي يبي مبرمج حياة واقعية يكلمني سكايب viipblack المقابل: لا شي الي يقول انه انا اقول لا شي عشان ناس تجي و اهكر سيرفرها لا حبيبي لا تظلم غيرك انا ما عندي PayPal و الاشياء ذي حقت الدفع و انا بالامارات مقدر اخذ سوا و ولا شي شخص متواضع بس
  23. شات ابيها كل ما يدخل سيرفر تطلع له
×
×
  • Create New...