fargot.. Posted February 23, 2017 Share Posted February 23, 2017 السلام عليكم و رحمة الله وبركاته كيف اضيف للمهمة وارب عشان ينتقلو لها بدون ما يروحون الى العلامة كيف ؟؟ Link to comment
خلف Posted February 23, 2017 Share Posted February 23, 2017 https://wiki.multitheftauto.com/wiki/SetElementPosition 2 Link to comment
fargot.. Posted February 24, 2017 Author Share Posted February 24, 2017 17 hours ago, خلف said: https://wiki.multitheftauto.com/wiki/SetElementPosition كيف يعني تراني مبتدئ في برمجة ض Link to comment
_Kinan Posted February 24, 2017 Share Posted February 24, 2017 (edited) local cmd = "gotomission" local x,y,z = 0,0,0 local msg = "Teleported to mission" addCommandHandler(cmd,function(source) setElementPosition(source,x,y,z) outputChatBox(msg,source,255,0,0) end) Edited February 24, 2017 by _Kinan Link to comment
^iiEcoo'x_) Posted February 24, 2017 Share Posted February 24, 2017 20 minutes ago, _Kinan said: local cmd = "gotomission" local x,y,z = 0,0,0 local msg = "Teleported to mission" addCommandHandler(cmd,function(source) setElementPosition(source,x,y,z) outputChatBox(msg,source,255,0,0) end) X X X X X X X X function (source) ? Link to comment
_Kinan Posted February 24, 2017 Share Posted February 24, 2017 Just now, #_iMr.[E]coo said: X X X X X X X X function (source) ? https://wiki.multitheftauto.com/wiki/AddCommandHandler اتمنى تراجع الويكي 1 Link to comment
^iiEcoo'x_) Posted February 24, 2017 Share Posted February 24, 2017 2 minutes ago, _Kinan said: https://wiki.multitheftauto.com/wiki/AddCommandHandler اتمنى تراجع الويكي خخخخخخخخ خطا كله @Master_MTA خخخخ فهمه يولدي @Ad[N]a[N]e اطرحلي اكواد المهمة Link to comment
_Kinan Posted February 24, 2017 Share Posted February 24, 2017 (edited) 16 minutes ago, #_iMr.[E]coo said: خخخخخخخخ خطا كله @Master_MTA خخخخ فهمه يولدي بأنتظاركم يا حلوين يحليلكم يا مبرمجين 16 minutes ago, #_iMr.[E]coo said: خخخخخخخخ خطا كله @Master_MTA خخخخ فهمه يولدي @Ad[N]a[N]e اطرحلي اكواد المهمة ليش أكواد المهمة؟ ما طلب شي الا ان ينتقلوا اللاعبين... Edited February 24, 2017 by _Kinan 1 Link to comment
#Wizard Posted February 24, 2017 Share Posted February 24, 2017 19 minutes ago, #_iMr.[E]coo said: خخخخخخخخ خطا كله @Master_MTA خخخخ فهمه يولدي @Ad[N]a[N]e اطرحلي اكواد المهمة شوف الصورة وفهم نفسك انت وخويك 1 Link to comment
Abdul KariM Posted February 24, 2017 Share Posted February 24, 2017 @#_iMr.[E]coo كوده صحيح من ناحية جهة السيرفر 2 Link to comment
Jw8. Posted February 25, 2017 Share Posted February 25, 2017 ضيف الاكود ذي في ملف client ----Warp-Mission--- local g_resRoot = getResourceRootElement( getThisResource( ) ) WarpMission = guiCreateWindow(0, 296, 326, 190, "[ Warp Missions ]", false) guiSetVisible(WarpMission, false) centerWindow(WarpMission) guiMoveDownToCenter(WarpMission) WarpButton = guiCreateButton(62, 118, 180, 27, "Warp To Missions", false, WarpMission) CloseButton = guiCreateButton(62, 153, 180, 27, "Colse Warp", false, WarpMission) PlayersLabel = guiCreateLabel(1, 24, 81, 19, "Gang ", false, WarpMission) guiLabelSetHorizontalAlign(PlayersLabel, "center", false) VsLabel = guiCreateLabel(105, 24, 81, 19, "Vs", false, WarpMission) guiLabelSetHorizontalAlign(VsLabel, "center", false) PoliceLabel = guiCreateLabel(228, 24, 81, 19, "Police", false, WarpMission) guiLabelSetHorizontalAlign(PoliceLabel, "center", false) --- addEvent("showPlayerCountTowMission", true) addEventHandler("showPlayerCountTowMission", root, function( ) guiSetText(PlayerCountLabel, getElementData(g_resRoot,"PlayerCount") or "0") guiSetText(PoliceCountLabel, getElementData(g_resRoot,"PoliceCount") or "0") end) addEvent("showWarpTowMission", true) addEventHandler("showWarpTowMission", root, function( ) guiSetVisible(WarpMission, true) guiMoveDownToCenter(WarpMission) showCursor(true) setTimer(guiSetVisible,60000,1,WarpMission,false) setTimer(showCursor,60000,1,false) end) addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == WarpButton ) then if getElementData(localPlayer, "LegalStatus") == "Jailed" then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Are Jailed !", 255, 255, 0) return end if getElementData(localPlayer, "LegalStatus") == "Arrested" then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Are Arrested !", 255, 255, 0) return end if getElementData(localPlayer,"Stats") == 4 then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Not Go Mission Because You Are Kidnapped !", 255, 255, 0) return end if getElementData(localPlayer,"Stats") == 5 then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Not Go Mission Because You Are Kidnapped !", 255, 255, 0) return end if getElementData(localPlayer, "bag") then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Have The Bag !", 255, 255, 0) return end if getElementData(localPlayer, "ShowMarkerPoor") then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Have The Poor Marker !", 255, 255, 0) return end if getElementData(localPlayer, "ShopPanel") then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000Close The Panel First!", 255, 255, 0) return end if getElementDimension(localPlayer) == 55 then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Are Already in The Mission !", 255, 255, 0) return end if (getTeamName(getPlayerTeam(localPlayer)) == "Medic") then exports["guimessages"]:outputClient("#3399FF[Drug Mission] #FF0000You Can't Go The Mission. Medic is Not Allowed To Join This Mission !", 0, 255, 255) return end if (isPedDead (localPlayer)) then exports["guimessages"]:outputClient("#3399FF[Drug Mission] #FF0000You Can't Go The Mission. You Are Dead !", 255, 255, 0) return end if not getPlayerTeam(localPlayer) then exports["guimessages"]:outputClient("#3399FF[Drug Mission] #FF0000You Can't Go The Mission. Not Join To Any Team First !", 255, 255, 255) return end fadeCamera(false) setTimer(fadeCamera, 3000, 1, true) triggerServerEvent ( "WarpTowMission", localPlayer ) guiSetVisible(WarpMission, false) showCursor(false) elseif ( source == CloseButton ) then guiSetVisible(WarpMission, false) showCursor(false) end end) عل عموم ذي سويته لك بانه منشورة Just now, DmAr511 said: والباقي عليك ْ Link to comment
_Kinan Posted February 25, 2017 Share Posted February 25, 2017 2 hours ago, DmAr511 said: ضيف الاكود ذي في ملف client ----Warp-Mission--- local g_resRoot = getResourceRootElement( getThisResource( ) ) WarpMission = guiCreateWindow(0, 296, 326, 190, "[ Warp Missions ]", false) guiSetVisible(WarpMission, false) centerWindow(WarpMission) guiMoveDownToCenter(WarpMission) WarpButton = guiCreateButton(62, 118, 180, 27, "Warp To Missions", false, WarpMission) CloseButton = guiCreateButton(62, 153, 180, 27, "Colse Warp", false, WarpMission) PlayersLabel = guiCreateLabel(1, 24, 81, 19, "Gang ", false, WarpMission) guiLabelSetHorizontalAlign(PlayersLabel, "center", false) VsLabel = guiCreateLabel(105, 24, 81, 19, "Vs", false, WarpMission) guiLabelSetHorizontalAlign(VsLabel, "center", false) PoliceLabel = guiCreateLabel(228, 24, 81, 19, "Police", false, WarpMission) guiLabelSetHorizontalAlign(PoliceLabel, "center", false) --- addEvent("showPlayerCountTowMission", true) addEventHandler("showPlayerCountTowMission", root, function( ) guiSetText(PlayerCountLabel, getElementData(g_resRoot,"PlayerCount") or "0") guiSetText(PoliceCountLabel, getElementData(g_resRoot,"PoliceCount") or "0") end) addEvent("showWarpTowMission", true) addEventHandler("showWarpTowMission", root, function( ) guiSetVisible(WarpMission, true) guiMoveDownToCenter(WarpMission) showCursor(true) setTimer(guiSetVisible,60000,1,WarpMission,false) setTimer(showCursor,60000,1,false) end) addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == WarpButton ) then if getElementData(localPlayer, "LegalStatus") == "Jailed" then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Are Jailed !", 255, 255, 0) return end if getElementData(localPlayer, "LegalStatus") == "Arrested" then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Are Arrested !", 255, 255, 0) return end if getElementData(localPlayer,"Stats") == 4 then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Not Go Mission Because You Are Kidnapped !", 255, 255, 0) return end if getElementData(localPlayer,"Stats") == 5 then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Not Go Mission Because You Are Kidnapped !", 255, 255, 0) return end if getElementData(localPlayer, "bag") then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Have The Bag !", 255, 255, 0) return end if getElementData(localPlayer, "ShowMarkerPoor") then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Have The Poor Marker !", 255, 255, 0) return end if getElementData(localPlayer, "ShopPanel") then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000Close The Panel First!", 255, 255, 0) return end if getElementDimension(localPlayer) == 55 then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Are Already in The Mission !", 255, 255, 0) return end if (getTeamName(getPlayerTeam(localPlayer)) == "Medic") then exports["guimessages"]:outputClient("#3399FF[Drug Mission] #FF0000You Can't Go The Mission. Medic is Not Allowed To Join This Mission !", 0, 255, 255) return end if (isPedDead (localPlayer)) then exports["guimessages"]:outputClient("#3399FF[Drug Mission] #FF0000You Can't Go The Mission. You Are Dead !", 255, 255, 0) return end if not getPlayerTeam(localPlayer) then exports["guimessages"]:outputClient("#3399FF[Drug Mission] #FF0000You Can't Go The Mission. Not Join To Any Team First !", 255, 255, 255) return end fadeCamera(false) setTimer(fadeCamera, 3000, 1, true) triggerServerEvent ( "WarpTowMission", localPlayer ) guiSetVisible(WarpMission, false) showCursor(false) elseif ( source == CloseButton ) then guiSetVisible(WarpMission, false) showCursor(false) end end) عل عموم ذي سويته لك بانه منشورة كودك غير كامل ي الطيب Link to comment
fargot.. Posted February 25, 2017 Author Share Posted February 25, 2017 local Display = textCreateDisplay() local CrText = textCreateTextItem("0 player in shooter", 0.05, 0.65, "high", 255, 255, 0, 255, 1.2, "center", "center", 255) textDisplayAddText(Display, CrText) textDisplayAddText(Display, VsText) textDisplayAddText(Display, PoText) function outButDxChat (Text,player,r,p,g) exports["guimessages"]:outputServer(player,Text,r,p,g) end CrTable = {} local vehicle = {} function updateText() textItemSetText(CrText, #CrTable.." player in shooter") end function AddPlayer(player, Table) if not getPlayerTable(player, CrTable) then textDisplayAddObserver(Display, player) table.insert(Table, player) updateText() setElementData(player, "shooter", true) end end function RemovePlayer(player, Table) textDisplayRemoveObserver(Display, player) for i, v in ipairs (Table) do if (v == player) then table.remove(Table, i) setElementData(player, "shooter", false) end end updateText() end function getPlayerTable(player, Table) for i, v in ipairs (Table) do if (v == player) then return true end end end local shooter = createMarker(2720.20020, -1825.1149, 10, "cylinder", 2, 255, 255, 0, 150) createBlip(2720.20020, -1825.1149, 10, 53) addEventHandler("onResourceStart", resourceRoot, function(player) outButDxChat("*Go To The Flag Blip on The Map !", root, 255, 0, 255) outButDxChat("*shooter Mission Will Begin After 5 Minutes.", root, 255, 255, 0) standByMission = setTimer(function() for i,p in ipairs (getElementsByType ("vehicle")) do if ( getElementDimension ( p ) == 5 ) then setElementFrozen(p, false) end end for i, player in ipairs(CrTable) do triggerClientEvent(player,"startgo",player) end outButDxChat("shooter Mission Started!!!", root, 0, 255, 0) setTimer(checkForWinner, 1000, 1, true) end, 5*60*1000, 1) end) function getTimeLeft(Timer) if startTheMission == Timer then ms = getTimerDetails(Timer) + 300000 else ms = getTimerDetails(Timer) end local m = math.floor(ms/60000) local s = math.floor((ms-m*60000)/1000) if m < 10 then m = ""..m end if s < 10 then s = ""..s end return "("..m.." Min and "..s.." Sec)" end addCommandHandler("alltime", function(player) if isTimer(standByMission) then outButDxChat("Time left before shooter Mission Start: "..getTimeLeft(standByMission), player, 255, 255, 0) elseif isTimer(startTheMission) then outButDxChat("Time left before shooter Mission Start: "..getTimeLeft(startTheMission), player, 255, 255, 0) else outButDxChat("shooter Mission is in progress now!", player, 255, 255, 0) end end) local CriminalPosition = { {3413.26196 ,-1963.17139 ,0.8}, {3389.78687 ,-1875.51697 ,0.8}, {3435.09863 ,-1804.26611 ,0.8}, {3443.23853 ,-1751.27991 ,0.8}, {3370.80054 ,-1668.35889 ,0.8}, {3268.22754 ,-1720.39880 ,0.8}, {3307.02026 ,-1787.60266 ,0.8}, {3357.29858 ,-1797.14221 ,0.8}, {3378.52124 ,-1827.02075 ,0.8}, {3364.00171 ,-1872.31409 ,0.8}, {3348.99316 ,-1886.67529 ,0.8}, {3463.64795 ,-1975.03088 ,0.8}, {3503.15381 ,-1957.53943 ,0.8} } local CriminalOutPosition = { {2694.01660, -1847.87488, 9.47427}, {2711.90283, -1851.34412, 9.52092}, {2723.89063, -1847.65210, 9.56061}, {2735.91748, -1851.63098, 9.61507}, {2737.24146, -1861.03857, 9.62285} } addEventHandler("onMarkerHit", root, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then if isTimer(standByMission) then if source == shooter then local x, y, z ,r = unpack(CriminalPosition[math.random(#CriminalPosition)]) if ( isElement( vehicle[ player ] ) ) then destroyElement ( vehicle[ player ] ) vehicle[ player ] = nil end vehicle[player] = createVehicle( 411, x, y, z ) warpPedIntoVehicle ( player , vehicle[player] ) setElementRotation(vehicle[player],0,0,r ) setElementDimension ( vehicle[player], 5 ) setElementDimension ( player, 5 ) setElementFrozen(vehicle[player], true) AddPlayer(player, CrTable) end end end end) addEventHandler ( "onVehicleStartExit", root, function ( player ) if getElementData(player, "shooter") then cancelEvent ( ) end end ) addEvent('desad',true) addEventHandler('desad',root, function () if getElementData(source, "shooter") then for _, theCar in pairs ( getElementsByType 'vehicle' ) do if isElement(theCar) and isElementInWater(theCar) then destroyElement(theCar) end end if isElementInWater(source) then killPed(source) end end end) addEventHandler("onPlayerWasted", root, function(_, killer) if getPlayerTable(source, CrTable) then outButDxChat(getPlayerName(source).." dead in shooter !", root, 255, 0, 255) RemovePlayer(source, CrTable) destroyElement( vehicle[ source ] ) vehicle[ source ] = nil checkForWinner() end end) addEventHandler("onPlayerQuit", root, function() if getPlayerTable(source, CrTable) then RemovePlayer(source, CrTable) destroyElement( vehicle[ source ] ) vehicle[ source ] = nil end checkForWinner() end) addEventHandler( "onVehicleExplode", resourceRoot, function( ) setTimer( destroyElement, 2000, 1, source ) end ) function checkForWinner(cHk) if not isTimer(standByMission) and not isTimer(startTheMission) then if #CrTable == 1 then for _, p in ipairs (CrTable) do textDisplayRemoveObserver(Display, p) setElementData(Player, "Money", (getElementData(Player, "Money") or 0) + 20000) local x, y, z = unpack(CriminalOutPosition[math.random(#CriminalOutPosition)]) removePedFromVehicle (p) setElementPosition(p, x, y, z) setElementDimension ( p, 0 ) setElementData(p, "shooter", false) end for i, player in ipairs(CrTable) do triggerClientEvent(player,"startstart",player) end CrTable = {} PoTable = {} updateText() startTheMission = setTimer(function() outButDxChat("*Go To The Flag Blip on The Map !", root, 255, 0, 255) outButDxChat("*shooter Mission Will Begin After 5 Minutes.", root, 255, 255, 0) standByMission = setTimer(function() outButDxChat("shooter Mission Started!!!", root, 0, 255, 0) for i,p in ipairs (getElementsByType ("vehicle")) do if ( getElementDimension ( p ) == 5 ) then setElementFrozen(p, false) end end for i, player in ipairs(CrTable) do triggerClientEvent(player,"startgo",player) end setTimer(checkForWinner, 1000, 1, true) end, 5*60*1000, 1) end, 26*60*1000, 1) elseif #CrTable == 0 then outButDxChat("The shooter Mission was Draw!", root, 255, 0, 0) startTheMission = setTimer(function() outButDxChat("*Go To The Flag Blip on The Map !", root, 255, 0, 255) outButDxChat("*shooter Mission Will Begin After 5 Minutes.", root, 255, 255, 0) standByMission = setTimer(function() outButDxChat("shooter Mission Started!!!", root, 0, 255, 0) for i,p in ipairs (getElementsByType ("vehicle")) do if ( getElementDimension ( p ) == 5 ) then setElementFrozen(p, false) end end for i, player in ipairs(CrTable) do triggerClientEvent(player,"startgo",player) end setTimer(checkForWinner, 1000, 1, true) end, 5*60*1000, 1) end, 26*60*1000, 1) end end end ذا ملف السيرفير مو كلينت كود الوارب وين احطه في في ملف كلينت او سيرفير ؟ 3 hours ago, DmAr511 said: ضيف الاكود ذي في ملف client ----Warp-Mission--- local g_resRoot = getResourceRootElement( getThisResource( ) ) WarpMission = guiCreateWindow(0, 296, 326, 190, "[ Warp Missions ]", false) guiSetVisible(WarpMission, false) centerWindow(WarpMission) guiMoveDownToCenter(WarpMission) WarpButton = guiCreateButton(62, 118, 180, 27, "Warp To Missions", false, WarpMission) CloseButton = guiCreateButton(62, 153, 180, 27, "Colse Warp", false, WarpMission) PlayersLabel = guiCreateLabel(1, 24, 81, 19, "Gang ", false, WarpMission) guiLabelSetHorizontalAlign(PlayersLabel, "center", false) VsLabel = guiCreateLabel(105, 24, 81, 19, "Vs", false, WarpMission) guiLabelSetHorizontalAlign(VsLabel, "center", false) PoliceLabel = guiCreateLabel(228, 24, 81, 19, "Police", false, WarpMission) guiLabelSetHorizontalAlign(PoliceLabel, "center", false) --- addEvent("showPlayerCountTowMission", true) addEventHandler("showPlayerCountTowMission", root, function( ) guiSetText(PlayerCountLabel, getElementData(g_resRoot,"PlayerCount") or "0") guiSetText(PoliceCountLabel, getElementData(g_resRoot,"PoliceCount") or "0") end) addEvent("showWarpTowMission", true) addEventHandler("showWarpTowMission", root, function( ) guiSetVisible(WarpMission, true) guiMoveDownToCenter(WarpMission) showCursor(true) setTimer(guiSetVisible,60000,1,WarpMission,false) setTimer(showCursor,60000,1,false) end) addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == WarpButton ) then if getElementData(localPlayer, "LegalStatus") == "Jailed" then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Are Jailed !", 255, 255, 0) return end if getElementData(localPlayer, "LegalStatus") == "Arrested" then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Are Arrested !", 255, 255, 0) return end if getElementData(localPlayer,"Stats") == 4 then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Not Go Mission Because You Are Kidnapped !", 255, 255, 0) return end if getElementData(localPlayer,"Stats") == 5 then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Not Go Mission Because You Are Kidnapped !", 255, 255, 0) return end if getElementData(localPlayer, "bag") then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Have The Bag !", 255, 255, 0) return end if getElementData(localPlayer, "ShowMarkerPoor") then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Have The Poor Marker !", 255, 255, 0) return end if getElementData(localPlayer, "ShopPanel") then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000Close The Panel First!", 255, 255, 0) return end if getElementDimension(localPlayer) == 55 then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Are Already in The Mission !", 255, 255, 0) return end if (getTeamName(getPlayerTeam(localPlayer)) == "Medic") then exports["guimessages"]:outputClient("#3399FF[Drug Mission] #FF0000You Can't Go The Mission. Medic is Not Allowed To Join This Mission !", 0, 255, 255) return end if (isPedDead (localPlayer)) then exports["guimessages"]:outputClient("#3399FF[Drug Mission] #FF0000You Can't Go The Mission. You Are Dead !", 255, 255, 0) return end if not getPlayerTeam(localPlayer) then exports["guimessages"]:outputClient("#3399FF[Drug Mission] #FF0000You Can't Go The Mission. Not Join To Any Team First !", 255, 255, 255) return end fadeCamera(false) setTimer(fadeCamera, 3000, 1, true) triggerServerEvent ( "WarpTowMission", localPlayer ) guiSetVisible(WarpMission, false) showCursor(false) elseif ( source == CloseButton ) then guiSetVisible(WarpMission, false) showCursor(false) end end) عل عموم ذي سويته لك بانه منشورة ذي الااكواد شغالا ؟ Link to comment
#BrosS Posted February 25, 2017 Share Posted February 25, 2017 @DmAr511 وش التخبيص ذا نسخ لصق @Ad[N]a[N]eعرفت المهمات اللي عندك وفيها وارب وماتعرف لها Staff شوف روح للكلنت دور على خليها Everyone الوارب موجود لكن للستاف فقط Link to comment
fargot.. Posted February 25, 2017 Author Share Posted February 25, 2017 4 minutes ago, #BrosS said: @DmAr511 وش التخبيص ذا نسخ لصق @Ad[N]a[N]eعرفت المهمات اللي عندك وفيها وارب وماتعرف لها Staff شوف روح للكلنت دور على خليها Everyone الوارب موجود لكن للستاف فقط روح لملف الكلينت ما لقيت شئ اسم Staff CanShoot = true bindKey ( "mouse1", "down", function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ) if ( vehicle ) then if getElementData(localPlayer, "shooter") then if ( CanShoot == true ) then local x, y, z = getElementPosition ( vehicle ) createProjectile ( vehicle, 19, x, y, z , 200 ) CanShoot = false setTimer ( function ( ) CanShoot = true end, 3000, 1 ) end end end end ) setTimer ( function () triggerServerEvent('desad',localPlayer) end, 800, 0 ) function go() playSound("go.mp3") setTimer(playSound,1550,2,"go.mp3") end addEvent("startgo", true) addEventHandler("startgo",root,go) function start() playSound("raceStart.mp3") end addEvent("startstart", true) addEventHandler("startstart",root,start) Link to comment
fargot.. Posted February 25, 2017 Author Share Posted February 25, 2017 2 minutes ago, #BrosS said: ؟؟؟ Link to comment
#BrosS Posted February 25, 2017 Share Posted February 25, 2017 ساعدوك فوق خلاص ، تبي اقولك وين تحط الأكواد كمان ؟ Link to comment
#Soking Posted February 25, 2017 Share Posted February 25, 2017 للمعلوميه 23 hours ago, #_iMr.[E]coo said: X X X X X X X X function (source) ? كوده صح 23 hours ago, _Kinan said: local cmd = "gotomission" local x,y,z = 0,0,0 local msg = "Teleported to mission" addCommandHandler(cmd,function(source) setElementPosition(source,x,y,z) outputChatBox(msg,source,255,0,0) end) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now