Jump to content

^iiEcoo'x_)

Members
  • Posts

    2,935
  • Joined

  • Last visited

  • Days Won

    44

Everything posted by ^iiEcoo'x_)

  1. بامكانك تخلي البوابة تفتح كل 12 ساعة createObject setTimer moveObject
  2. رح تستخدم onClientGUIClick guiGetText guiGridListSetItemText guiGetText
  3. طيب انت حاطه ب ميمو م رح يضبط ب امكانك تستخدم ال قريد ليست
  4. لا ذا شبك حماية بس انا عطيتك مثال
  5. اخوي مب فاهم طلبك + انت حاط المعلومات تيجي بالميمو ؟
  6. نسيت استخدم ذي المعلمومة علمني اياها شاطح countPlayersInData
  7. ض1 شوف مثال بس مثال بسيط ممكن تفهم منه اكيد فيه اخطاء local WarMission = createMarker(x, y, z, "cylinder", 2, 255, 0, 0, 150) local 1 = createObject(980, x, y, z, 0, 0, 90) addEventHandler("onResourceStart", resourceRoot, function() outputChatBox("to play mission go to bank", root, 50, 30, 255) moveObject(1, 3500, x, y, z) exports.TopBarChat:sendClientMessage("War Mission Started", root, 0, 150, 255) setTimer(checkForWinner, 1000, 1, true) end, 5*60*1000, 1) end) local war = { {x, y, z}, {x, y, z} } addEventHandler("onMarkerHit", root, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then if source == WarMission local x, y, z = unpack(war[math.random(#war)]) setElementPosition(player, x, y, z) end end end end)
  8. تعرف السهم الي اعلى السيارةذا اسمه اوبجيكت البنك الرئيسي اسمه اوبجيكت الدخان الي من السيارة اسمه اوبجيكت ------------------------------------------------ createObject(980, x,y, z, 0, 0, 90) 980= الايدي حقه x,y, z = الاحداثيات 0, 0, 90 = الانحراف .. الخ
  9. لازم تحط الاسم نفسه الي حطيته من الاعدادات ( Save as ) لازم تحط اسم الماب من الاعدادات وبس تحط
  10. getPlayerAccount setTime aclGroupRemoveObject
  11. يعني انت بس تكتب يجي فوق راسك اكواد الاوان اتوقع انه ذا Remove Hex Code
  12. سوي كذا createMarker ---- نسوي ماركر مثال createMarker(x,y, z, "cylinder", 2, 255, 0, 0, 150) ------------------------------------------------------------- createObject ----- نسوي اوبجيكت مثال createObject(980, x,y, z, 0, 0, 90) --------------------------------------------- onResourceStart ----- بس يبدا المود مثال addEventHandler("onResourceStart", resourceRoot, ------------------------------------------------------------ outputChatBox --- يضهر كلام بالشات مثال outputChatBox ('بدات المهمة') -------------------------------------------------- moveObject --- نحرك الاوبجيكت -------------------------------------- setTimer --- نسوي تايمر مثال setTimer(1000, 1, true) end, 5*60*1000, 1) ------------------------------------------------------- Table ----- نسوي جداول عشان الاحداثيات حق الماركر مثال local 6arh = { {x,y, z} } ------------------------------------------------------- onMarkerHit --- بس يلمس الماركر مثال addEventHandler("onMarkerHit", root, -------------------------------------------------------- getPlayerTeam ---- نحطه بتيم مثال getPlayerTeam(player) ~= getTeamFromName("Police") then ----------------------------------------------------------- math.random ---- عشان الاعبين م يجو فوق بعض بس ينتقلو مثال local x, y, z = unpack(6arh[math.random(#6arh)]) ------------------------------------------------------------ setElementPosition --- نعطيهم الاحداثيات مثال setElementPosition(player, x, y, z) ------------------------------------------------------------------- وتحتاج onPlayerWasted onPlayerQuit عشان نطلعهم من الجدول و كلينت رح تستخدم onClientPlayerDamage اذا في غلط يصلحوه الشباب
  13. لقد قال تم االافادة لا تزود مشاركات وانت ل تزود مشاركات
  14. Race = { Players = { }; Vehicles = { }; Position = { [1] = { x, y, z }; [2] = { x, y, z }; [3] = { x, y, z }; [4] = { x, y, z }; [5] = { x, y, z }; }; Cars = { { 432 }; { 432 }; }; }; local Timer setRaceStats = function ( stats ) if stats then setElementData ( resourceRoot, "RaceStarted", true ) else Race.Players = 0 setElementData ( resourceRoot, "RaceStarted", false ) outputChatBox ( "* تم إفتتاح السباق", root, 255, 255, 0, true ) end end checkPlayers = function ( ) if Race.Players < 2 then for i, v in ipairs ( Race.Vehicles ) do local player = getElementData ( v, "Owner" ) if player then killPed ( player ) end destroyElement ( v ) end outputChatBox ( "* تم إلغاء السباق بسبب قلة اللاعبين", root, 255, 0, 0, true ) end end getPlayerVehicle = function ( element ) if element then local type = getElementType if type ( element ) == "player" or type ( element ) == "ped" then if isPedInVehicle ( element ) then local vehicle = getPedOccupiedVehicle ( element ) if getVehicleController ( vehicle ) == element then return vehicle end return false end return false end return false end return false end addEventHandler ( "onPlayerChat", root, function ( msg ) if string.find ( msg, "سباق" ) then if getElementData ( resourceRoot, "RaceStarted" ) then return outputChatBox ( "* لم ينتهي السباق بعد", source, 255, 0, 0, true ) end if Race.Players < 5 then if not Race.Vehicles[source] then Race.Players = Race.Players+1 if Race.Players == 5 then setRaceStats ( true ) if isTimer ( Timer ) then killTimer ( Timer ) end else if not isTimer ( Timer ) then Timer = setTimer ( checkPlayers, 60000, 1 ) end end Race.Vehicles[source] = createVehicle ( Race.Cars[math.random(#Race.Cars)][1], Race.Position[Race.Players][1], Race.Position[Race.Players][2], Race.Position[Race.Players][3] ) setElementDimension ( Race.Vehicles[source], 1 ) setElementDimension ( source, 1 ) setTimer ( warpPedIntoVehicle, 100, 1, source, Race.Vehicles[source] ) setElementData ( Race.Vehicles[source], "Owner", source ) end else outputChatBox ( "* أكتمل العدد", source, 255, 0, 0, true ) end end end ) addEventHandler ( "onVehicleExplode", resourceRoot, function ( ) if Race.Players == 1 then local player = getElementData ( source, "Owner" ) if isElement ( player ) then if getElementData ( resourceRoot, "RaceStarted" ) then givePlayerMoney ( player, 5000 ) outputChatBox ( "* $5000 لقد ربحت", player, 255, 255, 0, true ) end Race.Vehicles[player] = nil end setTimer ( setRaceStats, 2000, 1, false ) else Race.Players = Race.Players-1 end end ) addEventHandler ( "onElementDestroy", resourceRoot, function ( ) if getElementType ( source ) == "vehicle" then if Race.Players == 1 then local player = getElementData ( source, "Owner" ) if isElement ( player ) then if getElementData ( resourceRoot, "RaceStarted" ) then givePlayerMoney ( player, 5000 ) outputChatBox ( "* $5000 لقد ربحت", player, 255, 255, 0, true ) end Race.Vehicles[player] = nil end setTimer ( setRaceStats, 2000, 1, false ) else Race.Players = Race.Players-1 end end end ) addEventHandler ( "onPlayerQuit", root, function ( ) if Race.Vehicles[source] then if isElement ( Race.Vehicles[source] ) then destroyElement ( Race.Vehicles[source] ) else if Race.Players == 1 then setTimer ( setRaceStats, 2000, 1, false ) else Race.Players = Race.Players-1 end end Race.Vehicles[source] = nil end end ) addEventHandler ( "onVehicleExit", resourceRoot, function ( player ) if getVehicleController ( source ) == player then killPed ( player ) destroyElement ( source ) end end ) addEventHandler ( "onPlayerWasted", root, function ( ) local vehicle = getPlayerVehicle ( source ) if vehicle then local player = getElementData ( vehicle, "Owner" ) if player then if player == source then destroyElement ( vehicle ) end end end end ) setTimer ( function ( ) if isElement( Race.Vehicles[source] ) and isElementInWater( Race.Vehicles[source] ) and getVehicleController ( source ) == player then killPed ( source ) destroyElement ( Race.Vehicles[source] ) end end, 1000, 0 ) setRaceStats ( false )
  15. اخوي شوي شوي ليش معصب هسا بشوفه
  16. Race = { Players = { }; Vehicles = { }; Position = { [1] = { x, y, z }; [2] = { x, y, z }; [3] = { x, y, z }; [4] = { x, y, z }; [5] = { x, y, z }; }; Cars = { { 432 }; { 432 }; }; }; setRaceStats = function ( stats ) if stats then setElementData ( resourceRoot, "RaceStarted", true ) else Race.Players = 0 setElementData ( resourceRoot, "RaceStarted", false ) outputChatBox ( "* تم إفتتاح السباق لدخول اكتب بالشات سباق", root, 255, 255, 0, true ) end end addEventHandler ( "onPlayerChat", root, function ( msg ) if string.find ( msg, "سباق" ) then if getElementData ( resourceRoot, "RaceStarted" ) then return outputChatBox ( "* لم ينتهي السباق بعد", source, 255, 0, 0, true ) end if Race.Players < 5 then if not Race.Vehicles[source] then if Race.Players == 4 then setRaceStats ( true ) end Race.Players = Race.Players+1 Race.Vehicles[source] = createVehicle ( Race.Cars[math.random(#Race.Cars)][1], Race.Position[Race.Players][1], Race.Position[Race.Players][2], Race.Position[Race.Players][3] ) setTimer ( warpPedIntoVehicle, 100, 1, source, Race.Vehicles[source] ) setElementData ( Race.Vehicles[source], "Owner", source ) end else outputChatBox ( "* أكتمل العدد", source, 255, 0, 0, true ) end end end ) addEventHandler ( "onVehicleExplode", resourceRoot, function ( ) if Race.Players == 1 then local player = getElementData ( source, "Owner" ) if isElement ( player ) then if getElementData ( resourceRoot, "RaceStarted" ) then givePlayerMoney ( player, 5000 ) outputChatBox ( "* $5000 لقد ربحت", player, 255, 255, 0, true ) end Race.Vehicles[player] = nil end setTimer ( setRaceStats, 2000, 1, false ) else Race.Players = Race.Players-1 end end ) addEventHandler ( "onElementDestroy", resourceRoot, function ( ) if getElementType ( source ) == "vehicle" then if Race.Players == 1 then local player = getElementData ( source, "Owner" ) if isElement ( player ) then if getElementData ( resourceRoot, "RaceStarted" ) then givePlayerMoney ( player, 5000 ) outputChatBox ( "* $5000 لقد ربحت", player, 255, 255, 0, true ) end Race.Vehicles[player] = nil end setTimer ( setRaceStats, 2000, 1, false ) else Race.Players = Race.Players-1 end end end ) addEventHandler ( "onPlayerQuit", root, function ( ) if Race.Vehicles[source] then if isElement ( Race.Vehicles[source] ) then destroyElement ( Race.Vehicles[source] ) else if Race.Players == 1 then setTimer ( setRaceStats, 2000, 1, false ) else Race.Players = Race.Players-1 end end Race.Vehicles[source] = nil end end ) setRaceStats ( false )
  17. اخوي المود مقلد انت بس معدل عليه هههههه
  18. روح للميتا حق الفري روم روح سطر 80 name="*vehicles/maxperplayer" value="[2]" ذا السطر عدل عليه
  19. اخوي انت تحط احداثيات السيارة ثم تسوي فقط الماركرات من الماب اديتور
×
×
  • Create New...