Jump to content

αвυ-wαleed

Members
  • Posts

    495
  • Joined

  • Last visited

Everything posted by αвυ-wαleed

  1. طيب جيب كودك الي يفتح لتيمات وبعدله لك
  2. طيب انت ماسويت الي ابغاه انت عدلت الزر صار يزيد 50 % الحين لو ضغطت على زر مرتين ماراح يصير 100% فهمتني هذي مشكلتي اضغط على الزر مرتين ينقص فلوس لكن الدرع يبقى 50 % ذذ
  3. addEvent("Armor",true) addEventHandler("Armor",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 50) then takePlayerMoney(source,50) giveWeapon ( source , 33,50 ) setPedArmor ( source, 25 ) outputChatBox ("#330079" .. name .. " #00FF00 Has Bought weapon Armor",source,255,0,0) else outputChatBox("أنت لاتملك المال", source, 255, 0, 0, true) end end الكود هذا اذا اشرتيت يزيد درعي 25 % واذا اشتريت ثاني مرة من نفس الزر يبقى الدرع 25 % والفلوس تنقص ابغاه يزيد يصير 50 % ياليت فهمتوني يعني 25% ظغتطت على زر مرتين يصير درعي 50 % اسنى ردكم
  4. addEventHandler("onClientGUIClick",root, function () if ( source == X ) then guiSetVisible(shop_1,false) showCursor(false) guiSetInputEnabled(false) end end ) هذا كود يخلي الزر اكس يقفل النافذة الي اسمها shop_1 ابغى تعديل بدل يقلها يفتحها ممكن التعديل معى شوية شرح
  5. طلب كووود انا مسوي نافذة حاط فيها زر ابغى اذا ضغطت على الزر تفتنح نافذة جديدة + ابغى كود النافذة تفتح اذا دخلت ماركر + كود اغلاق النافذة بزر
  6. انا اعرف كيف ابرمج مقر عندي مقر مبرمج لكن ابغى اشياء جديدة مثل ماركر يصلح السيارة للقروب او كود ماركر تفتح نافذة اصوات والاصوات ابيها تطلع مثلن في غرفة او بيت ياليت فهمتنوني وابغاكم تطمأنوا والله ما احط اغاني لان اكسب ذنب كل من يسمع وابغى توضيح اكبر ماركر السيارات لو حطيت أي دي سيارتين تجي في نافذة ولالا
  7. بووور يب اتا شايفة لكن مو طالب كل الحاجات الي ابغاها
  8. للمقراااااات كود respawn كود ماركر السيارات كود ماركر الدم وادرع كود البوابة واي كووود ثاني ساحة بيت يعني أي شيء حلووو ويفيد المقر
  9. مشكووور بوووور + هذا الي كنت بسوية وماقصرت ياتابل انا فاهمك من البداية
  10. مطلوب كودات اذا بسوي مهمة مثل كود الماركر مايفتح الا كل 30 دقيقة وقبل لايفتح ب 5 دقايق يجي تنبية في الشات وكود فريقين الي يدخلون ويتقاتلون
  11. ممكن طلب تغير لي في الكود هذا الالمنت والداتا لان في بعضها بلير ومدري وش ومتكرر اكثر من مرة ابغى تغير هذا واشوف التغيير واطبقة في الثاني انا ترى خذيت الاسم حق الداتا مثلا bank وسيوت له استبدال الكل bank1 ينفع ؟؟
  12. غيرت بس الاحداثيات كل شيء نفسة اشرح لي كيف اغيرها
  13. SERVER TimerStart = {} TimerStop = {} AllTable = {} rRoot = getResourceRootElement(getThisResource()) r,g,b = 255,0,0 -- اللون posX,posY = 0.2, 0.5 -- المكان على الشاشة size = 2.0 -- الحجم robbertimerStart = 1 robbertimerstop = 15 robbertime = robbertimerStart * 60 * 1000 robbertimeStop = robbertimerstop * 60 * 1000 function createTeamsOnStart () TimerStart["timer"] = setTimer ( start_Roob, robbertime,1) ---time on start roobB = createObject (3095, 1521.9000244141, -2455.1000976563, -67, 0, 0, 186) for i,player in ipairs(getElementsByType("player")) do setElementData(player, "Marker_destoy", 0) setElementData(player, "MiissoinStart", false) end AllowUseFunctionRoob() end addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) addEvent ("roob", true) function openRampLVSF () setElementData( source, "Marker_destoy", tonumber( getElementData( source, "Marker_destoy" ) or 0 ) + 1 ) textDisplayAddObserver ( RobberDisplay, source ) setElementData(source, "Timeleft", 10) setPedAnimation (source, "ROB_BANK", "CAT_Safe_Rob" ) setTimer(updateTimeLeft, 1000, getElementData(source, "Timeleft"), source) end addEventHandler ("roob", getRootElement(), openRampLVSF) function updateTimeLeft(player) setElementData(player, "Timeleft", getElementData(player, "Timeleft") - 1) setTextRobber("Time remaining: [" .. getElementData(player, "Timeleft").. "] :الوقت المتبقي") playSoundFrontEnd ( player, 101 ) if tonumber(getElementData(player, "Timeleft")) == 0 then setPedAnimation (player, false) if isTimer(theTimer) and isTimer(theTime) then killTimer(theTimer) end move() theTimer = setTimer(setTextRobber,50, 1 , "" ) if tonumber(getElementData(player, "Marker_destoy")) == 6 then setElementData(player, "Marker_destoy", 0) makeobject(player) textDisplayAddObserver ( RobberDisplay, player ) end end end function makeobject(plr) notrolley = getAttachedElements ( plr ) for k,v in pairs(notrolley) do if getElementType ( v ) == "object" then destroyElement ( v ) end end local x,y,z = getElementPosition ( plr ) object = createObject ( 1550, x, y, z ) if object then attachElements ( object, plr, 0, -0.4, 0.4 ) --attachElements ( object, plr, -0.1, -0.20, 0.90, 0.000000, 45.000000, 0 ) local x,y,z = getElementPosition(plr) setElementCollisionsEnabled(object, false) end Finsh_Missoin(plr) end function dd(plr) notrolley = getAttachedElements ( plr ) for k,v in pairs(notrolley) do if getElementType ( v ) == "object" then destroyElement ( v ) end end end function player_Quit () notrolley = getAttachedElements ( source ) for k,v in pairs(notrolley) do if getElementType ( v ) == "object" then destroyElement ( v ) end end if tonumber(getElementData(source, "Marker_destoy")) >= 1 then end end addEventHandler ( "onPlayerQuit", getRootElement(), player_Quit ) function move() setTimer (moveObject, 2500, 1, roobB, 1000, 1521.9000244141, -2455.1000976563, -67) end function Doore ( player ) if ( source == Doorentry ) then if ( getElementType ( player ) == "player" ) then fadeCamera ( player, false, 1, 0, 0, 0 ) setTimer ( function ( player ) if ( player and isElement ( player ) ) then fadeCamera ( player, true, 1 ) end end ,1000, 1, player ) --[[ local Team = getPlayerTeam ( player ) if ( Team == getTeamFromName ( "Police" ) ) then else setPlayerTeam ( player, getTeamFromName ( "Robber" ) ) textDisplayAddObserver ( RobberDisplay, player ) end --]] end end end addEventHandler ( "onMarkerHit", getRootElement(), Doore ) -- 390.7548828125, 173.8486328125, 1008.3828125 function Exitd( player ) if (source == Exitdoor) then if getElementType(player) == "player" then fadeCamera ( player, false, 1, 0, 0, 0 ) textDisplayRemoveObserver ( RobberDisplay, player ) setTimer ( fadeCamera, 1000, 1, player, true, 1 ) end end end addEventHandler ("onMarkerHit", getRootElement() ,Exitd ) function close() setTimer (moveObject, 500, 1, roobB, 1000, 1521.9000244141, -2295.1000976563, -67) end function startRobber () if isTimer(TimerStart["timer"]) then killTimer(TimerStart["timer"]) end --kill timee --TimerStop["timer"] = setTimer ( stop_Roob, robbertimeStop,1) -- time stop if marker then destroyElement ( marker ) end close() marker = createMarker ( 1521.8994140625, -2296.599609375, -65.400001525879, "cylinder", 3, 0, 0, 0, 0 ) addEventHandler("onMarkerHit", marker,onHit) end function AllowUseFunctionRoob() bindRoob = 1 end function onHit(hitter) if bindRoob == 1 then if ( hitter and getElementType(hitter) == "player" ) then bind_key( hitter ) bindRoob = 0 setTimer(AllowUseFunctionRoob, 90000, 1) end end end function bind_key ( player ) bindKey ( player, "Tab", "down", "open_dooor" ) end function unbind_key ( player ) unbindKey ( player, "Tab", "down", "open_dooor" ) end function updateTimeLeftDoor(player) setElementData(player, "Timeleft", getElementData(player, "Timeleft") - 1) setTextRobber("Will try to open the door:[" .. getElementData(player, "Timeleft").. "] :سيتم محاولة تحريك المصعد") playSoundFrontEnd ( player, 101 ) if tonumber(getElementData(player, "Timeleft")) == 0 then setElementData(player, "Timeleft", 0) if isTimer(theTimer) and isTimer(theTime) then killTimer(theTimer) end move() triggerClientEvent(player,"Make_Marker",root) theTimer = setTimer(setTextRobber,50, 1 , "" ) if isTimer(TimerStop["timer"]) then killTimer(TimerStop["timer"]) end --kill timee TimerStop["timer"] = setTimer ( stop_Roob, robbertimeStop,1) -- time stop end end function key_bind (player) if marker then removeEventHandler("onMarkerHit", marker,onHit) destroyElement ( marker ) end triggerClientEvent(root,"roob_bank",root) exports['topbarchat']:sendClientMessage ( "* * * * * * * * * * * * * * *", root, 255, 000, 000, true ) exports['topbarchat']:sendClientMessage ( "#C0C0C0 يقوم بسرقه البنك الأحمر [" .. getPlayerName(player) .. "] #C0C0C0 اللاعب", root, 255, 000, 000, true ) exports['topbarchat']:sendClientMessage ( "* * * * * * * * * * * * * * *", root, 255, 000, 000, true ) setElementData(player, "MiissoinStart", true) textDisplayAddObserver ( RobberDisplay, player ) setElementData(player, "Timeleft", 10) setPlayerWantedLevel ( player, 6 ) setTimer(updateTimeLeftDoor, 1000, getElementData(player, "Timeleft"), player) end addEventHandler("onPlayerWasted", root, function() local missin = getElementData(source, "MiissoinStart") if missin then notrolley = getAttachedElements ( source ) for k,v in pairs(notrolley) do if getElementType ( v ) == "object" then destroyElement ( v ) end end textDisplayRemoveObserver ( RobberDisplay, source ) if dropMarker and dropBlip then destroyElement ( dropMarker ) destroyElement ( dropBlip ) end removeEventHandler("onMarkerHit",dropMarker,onDrop) local x,y,z = getElementPosition ( source ) object_wast = createObject ( 1550, x, y, z ) marker_wast = createMarker ( x, y, z, "cylinder", 3, 0, 0, 0, 0 ) addEventHandler("onMarkerHit", marker_wast,onHiter) setElementData(source, "MiissoinStart", false) end end ) function onHiter(hitter) if ( hitter and getElementType(hitter) == "player" ) then removeEventHandler("onMarkerHit",dropMarker,onDrop) destroyElement ( source ) wasted(hitter,true) end end
  14. عندي مودين بنكين مختلفت الاماكن ومختلف مكان توصيل شنطة البنك لكن المشكلة اذا شغلت البنكين يتلبط الوقت وفي التوصيل يطلع مكانين واذا شغلت أي واحد منهم الوقت مايتلخبط ويجي مكان واحد للتوصيل يعني 100% لكن كيف اسوي ابغى اشغل الاثنين معى بعض
  15. ممكن طلب تحددولي الشطر الي فيه مدة بدأ مهمة السرق هي تبدأ كل 3 دقايق ابغاها كل 10 وأبغى اعرف السطر كم TimerStart = {} TimerStop = {} AllTable = {} rRoot = getResourceRootElement(getThisResource()) r,g,b = 255,0,0 -- اللون posX,posY = 0.2, 0.5 -- المكان على الشاشة size = 2.0 -- الحجم robbertimerStart = 3 robbertimerstop = 15 robbertime = robbertimerStart * 60 * 1000 robbertimeStop = robbertimerstop * 60 * 1000 function createTeamsOnStart () outputChatBox ( "* * * تم تشغيل مود سرقة البنك ستبدأ المهمه بعد 3 دقائق * * * ", hitter, 0, 0, 255, true ) TimerStart["timer"] = setTimer ( start_Roob, robbertime,1) ---time on start roobB = createObject (2634, 308.10000610352, 2516.3999023438, 17.5, 0, 0, 186) for i,player in ipairs(getElementsByType("player")) do setElementData(player, "Marker_destoy", 0) setElementData(player, "MiissoinStart", false) end AllowUseFunctionRoob() end addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) addEvent ("roob", true) function openRampLVSF () setElementData( source, "Marker_destoy", tonumber( getElementData( source, "Marker_destoy" ) or 0 ) + 1 ) textDisplayAddObserver ( RobberDisplay, source ) setElementData(source, "Timeleft", 10) setPedAnimation (source, "ROB_BANK", "CAT_Safe_Rob" ) setTimer(updateTimeLeft, 1000, getElementData(source, "Timeleft"), source) end addEventHandler ("roob", getRootElement(), openRampLVSF) function updateTimeLeft(player) setElementData(player, "Timeleft", getElementData(player, "Timeleft") - 1) setTextRobber("Time remaining: [" .. getElementData(player, "Timeleft").. "] :الوقت المتبقي") playSoundFrontEnd ( player, 101 ) if tonumber(getElementData(player, "Timeleft")) == 0 then setPedAnimation (player, false) if isTimer(theTimer) and isTimer(theTime) then killTimer(theTimer) end move() theTimer = setTimer(setTextRobber,50, 1 , "" ) if tonumber(getElementData(player, "Marker_destoy")) == 6 then setElementData(player, "Marker_destoy", 0) makeobject(player) textDisplayAddObserver ( RobberDisplay, player ) end end end function makeobject(plr) notrolley = getAttachedElements ( plr ) for k,v in pairs(notrolley) do if getElementType ( v ) == "object" then destroyElement ( v ) end end local x,y,z = getElementPosition ( plr ) object = createObject ( 1550, x, y, z ) if object then attachElements ( object, plr, 0, -0.4, 0.4 ) --attachElements ( object, plr, -0.1, -0.20, 0.90, 0.000000, 45.000000, 0 ) local x,y,z = getElementPosition(plr) setElementCollisionsEnabled(object, false) end outputChatBox ( "* * * [D] اذهب الى حرف دي الموجود بالخريطة للأخـذ المبلغ * * * ", plr, 0, 0, 255, true ) outputChatBox ( "* * * Please GO To icon D in The Map To Get Money* * * ", plr, 0, 0, 255, true ) Finsh_Missoin(plr) end function dd(plr) notrolley = getAttachedElements ( plr ) for k,v in pairs(notrolley) do if getElementType ( v ) == "object" then destroyElement ( v ) end end end function player_Quit () notrolley = getAttachedElements ( source ) for k,v in pairs(notrolley) do if getElementType ( v ) == "object" then destroyElement ( v ) end end if tonumber(getElementData(source, "Marker_destoy")) >= 1 then end end addEventHandler ( "onPlayerQuit", getRootElement(), player_Quit ) function move() setTimer (moveObject, 2500, 1, roobB, 1000, 308.10000610352, 2516.3999023438, 17.5) end local Doorentry = createMarker(598.90692138672, -1245.0686035156, 18.253646850586, "cylinder", 1.5, 255, 0, 0, 255 ) function Doore ( player ) if ( source == Doorentry ) then if ( getElementType ( player ) == "player" ) then fadeCamera ( player, false, 1, 0, 0, 0 ) setTimer ( function ( player ) if ( player and isElement ( player ) ) then fadeCamera ( player, true, 1 ) setElementPosition ( player, 316.66882324219, 2509.2736816406, 29.418315887451) end end ,1000, 1, player ) --[[ local Team = getPlayerTeam ( player ) if ( Team == getTeamFromName ( "Police" ) ) then else setPlayerTeam ( player, getTeamFromName ( "Robber" ) ) textDisplayAddObserver ( RobberDisplay, player ) end --]] end end end addEventHandler ( "onMarkerHit", getRootElement(), Doore ) -- 390.7548828125, 173.8486328125, 1008.3828125 local Exitdoor = createMarker( 319.14627075195, 2509.6701660156, 28.418315887451, "cylinder", 1.5, 255, 0, 0, 255 ) function Exitd( player ) if (source == Exitdoor) then if getElementType(player) == "player" then fadeCamera ( player, false, 1, 0, 0, 0 ) textDisplayRemoveObserver ( RobberDisplay, player ) setTimer ( fadeCamera, 1000, 1, player, true, 1 ) setTimer ( setElementPosition, 1000, 1, player, 594.21179199219, -1248.2237548828, 18.187507629395) end end end addEventHandler ("onMarkerHit", getRootElement() ,Exitd ) function close() setTimer (moveObject, 500, 1, roobB, 1000, 306.10000610352, 2516, 17.299999237061) end function startRobber () if isTimer(TimerStart["timer"]) then killTimer(TimerStart["timer"]) end --kill timee --TimerStop["timer"] = setTimer ( stop_Roob, robbertimeStop,1) -- time stop if marker then destroyElement ( marker ) end close() marker = createMarker ( 306.18820, 2514.06616, 17.03035, "cylinder", 3, 0, 0, 0, 0 ) addEventHandler("onMarkerHit", marker,onHit) end function AllowUseFunctionRoob() bindRoob = 1 end function onHit(hitter) if bindRoob == 1 then if ( hitter and getElementType(hitter) == "player" ) then outputChatBox ( "* * * [Tab] اضغط تاب لسرقة البنك * * * ", hitter, 0, 0, 255, true ) outputChatBox ( "* * * Press [Tab] To Steal Bank * * * ", hitter, 0, 0, 255, true ) bind_key( hitter ) bindRoob = 0 setTimer(AllowUseFunctionRoob, 30000, 1) end end end function bind_key ( player ) bindKey ( player, "Tab", "down", "open_dooor" ) end function unbind_key ( player ) unbindKey ( player, "Tab", "down", "open_dooor" ) end function updateTimeLeftDoor(player) setElementData(player, "Timeleft", getElementData(player, "Timeleft") - 1) setTextRobber("Will try to open the door:[" .. getElementData(player, "Timeleft").. "] :سيتم محاولة فتح الباب") playSoundFrontEnd ( player, 101 ) if tonumber(getElementData(player, "Timeleft")) == 0 then setElementData(player, "Timeleft", 0) if isTimer(theTimer) and isTimer(theTime) then killTimer(theTimer) end move() triggerClientEvent(player,"Make_Marker",root) outputChatBox ( "* * * #C0C0C0[ إذهب للدوائر لسرقة البنك ] * * * ", player, 255, 255, 255, true ) theTimer = setTimer(setTextRobber,50, 1 , "" ) if isTimer(TimerStop["timer"]) then killTimer(TimerStop["timer"]) end --kill timee TimerStop["timer"] = setTimer ( stop_Roob, robbertimeStop,1) -- time stop end end function key_bind (player) if marker then removeEventHandler("onMarkerHit", marker,onHit) destroyElement ( marker ) end triggerClientEvent(root,"roob_bank",root) outputChatBox ( "* * * * * * * * * * * * * * *", root, 255, 000, 000, true ) outputChatBox ( "#C0C0C0 يقوم بسرقه البنك [" .. getPlayerName(player) .. "] #C0C0C0 اللاعب", root, 255, 000, 000, true ) outputChatBox ( "#C0C0C0 Player [" .. getPlayerName(player) .. "]#C0C0C0 steals the bank", root, 255, 000, 000, true ) outputChatBox ( "* * * * * * * * * * * * * * *", root, 255, 000, 000, true ) setElementData(player, "MiissoinStart", true) textDisplayAddObserver ( RobberDisplay, player ) setElementData(player, "Timeleft", 10) setPlayerWantedLevel ( player, 6 ) setTimer(updateTimeLeftDoor, 1000, getElementData(player, "Timeleft"), player) end addEventHandler("onPlayerWasted", root, function() local missin = getElementData(source, "MiissoinStart") if missin then notrolley = getAttachedElements ( source ) for k,v in pairs(notrolley) do if getElementType ( v ) == "object" then destroyElement ( v ) end end textDisplayRemoveObserver ( RobberDisplay, source ) if dropMarker and dropBlip then destroyElement ( dropMarker ) destroyElement ( dropBlip ) end removeEventHandler("onMarkerHit",dropMarker,onDrop) local x,y,z = getElementPosition ( source ) object_wast = createObject ( 1550, x, y, z ) marker_wast = createMarker ( x, y, z, "cylinder", 3, 0, 0, 0, 0 ) addEventHandler("onMarkerHit", marker_wast,onHiter) setElementData(source, "MiissoinStart", false) end end ) function onHiter(hitter) if ( hitter and getElementType(hitter) == "player" ) then removeEventHandler("onMarkerHit",dropMarker,onDrop) destroyElement ( source ) wasted(hitter,true)
  16. كم تساوي هذي 60 * 1000 وابغى 10 دقايق ؟؟ وكمان ابغى 13 دقيقة ؟؟
  17. انا عندي مود البنك ابغى اذا سرقت الشنطة وقدني في الشارع ابغى اوصل الشنطة يجي علي علامة بالخريطة لين اوصلها وتروح انا حاولت باكثر من كود لكن المكان مدري
  18. server ver = "v3.0" rRoot = getResourceRootElement(getThisResource()) local root = getRootElement() local Key = "F4" Teams = { -- here all team name {"Grove", 0, 255, 0}, {"Aztecas", 0, 150, 255}, {"Police", 0, 50, 255}, {"Ballas", 255, 0, 150}, {"No Team", 255, 255, 255}, {"Medic", 6, 183, 248} } local function set(plr, data, bole) if not isElement(plr) then return end return setElementData(plr, data, bole) end local function get(plr, data) if not isElement(plr) then return end return getElementData(plr, data) end addEventHandler("onResourceStart", resourceRoot, function() setGameType("Gang Wars v3.0") outputChatBox(".:[ GameMode ]:. " .. ver .. "", root, 0, 255, 0, true) setTimer(OutPut, 50, 1, ".:[ GameMode ]:By MR.S3D " .. ver .. "", root, 0, 255, 0) for _,theTeam in ipairs(Teams) do createTeam(theTeam[1], theTeam[2], theTeam[3], theTeam[4]) end for _,AllTeams in ipairs(getElementsByType("team")) do if getTeamFriendlyFire(AllTeams) == true then setTeamFriendlyFire(AllTeams, false) end end setTeamFriendlyFire(getTeamFromName("No Team"), true) for i,v in ipairs(getElementsByType("player")) do bindKey(v, Key, "down", "changeTeame") setElementData(v, "OnJoinFirstSpawn", false) end setElementData(rRoot,"maxPlayer",getMaxPlayers()) end ) addEventHandler("onResourceStop", resourceRoot, function() local players = getElementsByType("player") for k,v in ipairs(players) do set(v, "hjwalah", false) set(v, "Grove", false) set(v, "Aztecs", false) set(v, "Police", false) set(v, "Ballas", false) set(v, "noTeam", false) set(v, "Medic", false) set(v, "GameModeActive", false) end end ) addEvent("onLoadedClient", true) addEventHandler("onLoadedClient", root, function(player) versionDisplay = textCreateDisplay() local versionText = textCreateTextItem(".:[ Game Mode ]:. By MR.S3D| " .. ver .. "]:.", 0.975, 0.02, "medium", 255, 0, 0, 255, 1.1, "right") textDisplayAddText(versionDisplay, versionText) textDisplayAddObserver(versionDisplay, player) setElementData(player, "CancleFirstSpawn", true) playSoundFrontEnd(player, 16) OutPut("The download was successful|", player, 255, 255, 0) setElementData(player, "OnJoinFirstSpawn", false) end ) addEventHandler("onPlayerJoin", root, function() showTextForPlayer ( source, 6000, 255, 0, 0, 1.5, "Wlecom To Server Gangs War") showTextForPlayer1 ( source, 6000, 255, 0, 0, 1.5, "Please wait to download all server resources....!") setCameraMatrix(source,512.2, -1263.57, 32.53,542.16, -1287.07, 17.24) end ) addEventHandler("onPlayerSpawn", root, function() checkWeapon(source) end ) function checkWeapon(player) setTimer(function(player) if isElement(player) then if getElementData(player, "Police") == true then giveWeapon(player, 3) end else takeWeapon(player, 3) end end, 800, 1, player) end addEvent("onClientWantsToSpawn", true) addEventHandler("onClientWantsToSpawn", getRootElement(), function(player, ID, TeamName) if TeamName == "Grove" then setElementData(player, "ID", ID) GroveTeam(player) elseif TeamName == "Aztecas" then setElementData(player, "ID", ID) AztecsTeam(player) elseif TeamName == "Police" then setElementData(player, "ID", ID) PoliceTeam(player) elseif TeamName == "Ballas" then setElementData(player, "ID", ID) Ballas(player) elseif TeamName == "No Team" then setElementData(player, "ID", ID) NoTeam(player) elseif TeamName == "Medic" then setElementData(player, "ID", ID) MedicTeam(player) elseif TeamName == "Drift" then setElementData(player, "ID", ID) hjwalah(player) end end ) function checkWeapon(player) setTimer(function(player) if isElement(player) then if getElementData(player, "Police") == true then giveWeapon(player, 3) end else takeWeapon(player, 3) end end, 800, 2, player) end function onSelectTeam(player) if not isElement(player) then return end local playerTeam = getPlayerTeam(player) showTextForPlayer(player, 5000, 255, 0, 0, 1.5, "You have been assigned to team [" .. tostring(getTeamName(playerTeam)) .. "]") OutPut("To return to spawn press["..Key.."]", player, 255, 255, 255) local playeraccount = getPlayerAccount(player) if playeraccount and not isGuestAccount(getPlayerAccount(player)) then if getElementData(player, "hjwalah") == true then return false end if getElementData(player, "wasgied") == true then return false end setElementData(player, "wasgied", true) local weap0 = getAccountData(playeraccount, "s.weap0") local weap1 = getAccountData(playeraccount, "s.weap1") local weap2 = getAccountData(playeraccount, "s.weap2") local ammo2 = getAccountData(playeraccount, "s.ammo2") local weap3 = getAccountData(playeraccount, "s.weap3") local ammo3 = getAccountData(playeraccount, "s.ammo3") local weap4 = getAccountData(playeraccount, "s.weap4") local ammo4 = getAccountData(playeraccount, "s.ammo4") local weap5 = getAccountData(playeraccount, "s.weap5") local ammo5 = getAccountData(playeraccount, "s.ammo5") local weap6 = getAccountData(playeraccount, "s.weap6") local ammo6 = getAccountData(playeraccount, "s.ammo6") local weap7 = getAccountData(playeraccount, "s.weap7") local ammo7 = getAccountData(playeraccount, "s.ammo7") local weap8 = getAccountData(playeraccount, "s.weap8") local ammo8 = getAccountData(playeraccount, "s.ammo8") local weap9 = getAccountData(playeraccount, "s.weap9") local ammo9 = getAccountData(playeraccount, "s.ammo9") local weap10 = getAccountData(playeraccount, "s.weap10") local weap11 = getAccountData(playeraccount, "s.weap11") local weap12 = getAccountData(playeraccount, "s.weap12") local wanted = getAccountData(playeraccount, "WantedLevel") if tonumber(wanted) then setPlayerWantedLevel(player, wanted) elseif tonumber(weap0) then giveWeapon(player, weap0, 1) elseif tonumber(weap1) then giveWeapon(player, weap1, 1) elseif tonumber(weap2) and tonumber(ammo2) then giveWeapon(player, weap2, ammo2) elseif tonumber(weap3) and tonumber(ammo3) then giveWeapon(player, weap3, ammo3) elseif tonumber(weap4) and tonumber(ammo4) then giveWeapon(player, weap4, ammo4) elseif tonumber(weap6) and tonumber(ammo5) then giveWeapon(player, weap5, ammo5) elseif tonumber(weap6) and tonumber(ammo6) then giveWeapon(player, weap6, ammo6) elseif tonumber(weap7) and tonumber(ammo7) then giveWeapon(player, weap7, ammo7) elseif tonumber(weap8) and tonumber(ammo8) then giveWeapon(player, weap8, ammo8) elseif tonumber(weap9) and tonumber(ammo9) then giveWeapon(player, weap9, ammo9) elseif tonumber(weap10) then giveWeapon(player, weap10, 30) elseif tonumber(weap11) then giveWeapon(player, weap11, 30) elseif tonumber(weap12) then giveWeapon(player, weap12, 10) end end end function camera(plr) if not isElement(plr) then return end setTimer(fadeCamera, 50, 1, plr, false, 1) setTimer(fadeCamera, 100, 1, plr, true, 3) setCameraTarget(plr, plr) showChat(plr, true) end addEventHandler("onPlayerSpawn", root, function() setElementData(source, "FristTimeSpawn", false) bindKey(source, Key, "down", "changeTeame") setElementData(source, "WasChangeTeam", false) end ) Change = false addCommandHandler("changeTeame", function(plr) if getElementData(plr, "WasChangeTeam") == false then setElementData(plr, "ChangeTeam", true) OutPut("The team will change after you die", plr, 255, 0, 255) setTimer(cancleTeam, 1700, 1, plr) setElementData(plr, "WasChangeTeam", true) else OutPut("Change the team has been canceled", plr, 255, 255, 0) setElementData(plr, "ChangeTeam", false) setElementData(plr, "WasChangeTeam", false) end Change = not Change end ) function cancleTeam(plr) if Change == false then return false end OutPut("To cancel the change team press again", plr, 255, 255, 0) end
  19. ابغى ابعد الخلل الحين ابغى اظيف تيم للقيم مود مايجي ابغى اشيل شخصية مايجي ابغى اظيف شخصية للتيم مايجي ؟ وش الحل
  20. شوف اذا ضغطت تاب مو يطلع اسمك والبنق ابغى الاي دي يطلع كمان كيف
  21. ابو شنب ماظبطت شغلته واضفت الكود ول نقع
  22. جربتة ماصار شيء شوف السكور وعدد القتلى والفلوس مو تجي بالتاب اذا ظغتطته ابغى الاي دي مثل حرب العصابات منه فايدة في مثل ابغى احولة فلوس من صراف بدل اكتب اسمة اكتب الاي دي حقة وارسل الفلوس
×
×
  • Create New...