Jump to content

بغيت تعديل في القيم مود


Recommended Posts

بغيت اكواد حق القيم مود

CLIENT

local l_0_0 = {} 
l_0_0.staticimage = {} 
GUIEditor = l_0_0 
l_0_0 = fadeCamera 
l_0_0(true, 10) 
l_0_0 = GUIEditor 
l_0_0.staticthwar = guiCreateStaticImage(0, 0, 1366, 768, "files/blank.png", false) 
l_0_0 = guiCreateStaticImage 
l_0_0 = l_0_0(229, 175, 197, 198, "files/1.png", false, GUIEditor.staticthwar) 
thwar = l_0_0 
l_0_0 = guiCreateStaticImage 
l_0_0 = l_0_0(864, 176, 244, 198, "files/2.png", false, GUIEditor.staticthwar) 
police = l_0_0 
l_0_0 = guiCreateStaticImage 
l_0_0 = l_0_0(564, 175, 197, 198, "files/3.png", false, GUIEditor.staticthwar) 
wfaq = l_0_0 
l_0_0 = setCameraMatrix 
l_0_0(1388.9871826172, -2286.0603027344, 18.976696014404, 400500, 0, 100000) 
l_0_0 = showCursor 
l_0_0(true) 
l_0_0 = addEventHandler 
l_0_0("onClientGUIClick", thwar, function() 
  triggerServerEvent("thwar", localPlayer) 
  guiSetVisible(GUIEditor.staticthwar, false) 
  showCursor(false) 
end 
) 
l_0_0 = addEventHandler 
l_0_0("onClientGUIClick", police, function() 
  triggerServerEvent("police", localPlayer) 
  guiSetVisible(GUIEditor.staticthwar, false) 
  showCursor(false) 
end 
) 
l_0_0 = addEventHandler 
l_0_0("onClientGUIClick", wfaq, function() 
  triggerServerEvent("wfaq", localPlayer) 
  guiSetVisible(GUIEditor.staticthwar, false) 
  showCursor(false) 
end 
) 
l_0_0 = bindKey 
l_0_0("F4", "down", function() 
  if guiGetVisible(GUIEditor.staticthwar) == true then 
    guiSetVisible(GUIEditor.staticthwar, false) 
    showCursor(false) 
    guiSetInputEnabled(false) 
  else 
    if guiGetVisible(GUIEditor.staticthwar) == false then 
      guiSetVisible(GUIEditor.staticthwar, true) 
      showCursor(true) 
      guiSetInputEnabled(true) 
    end 
  end 
end 
) 
l_0_0 = addEventHandler 
l_0_0("onClientPlayerWasted", localPlayer, function() 
  guiSetVisible(GUIEditor.staticthwar, true) 
  setCameraMatrix(1388.9871826172, -2286.0603027344, 18.976696014404, 400500, 0, 100000) 
  showCursor(true) 
end 
) 

بغيت اضيف اختيار شخصيات اخرى

مثلا اخترت police

تالي يطلع ليي شخصيتين اختار وحدة منهم

تبديل الشخصية و اختيار الشخصية بغيته في buttons

مو بالاسهم

SERVER

createTeams = function() 
  teamthwar = createTeam("thwar", 255, 0, 0) 
  teampolice = createTeam("police", 0, 0, 255) 
end 
  
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), createTeams) 
addEvent("thwar", true) 
addEventHandler("thwar", root, function() 
  outputChatBox("......", source, 255, 0, 0, true) 
  setCameraTarget(source, source) 
  spawnPlayer(source, 1579.2481689453, math.random(-1637.4063720703, -1635.4063720703), 13.561396598816, 90, 285, 0, 0, getTeamFromName("thwar")) 
  spawnPlayer(source, 1969.4324951172, math.random(-2159.7834472656, -2157.7834472656), 13.546875, 142) 
  setElementModel(source, 1) 
  giveWeapon(source, 18, 100) 
  giveWeapon(source, 2, 1) 
  giveWeapon(source, 37, 600) 
  giveWeapon(source, 41, 1100) 
  giveWeapon(source, 43, 1100) 
end 
) 
addEvent("police", true) 
addEventHandler("police", root, function() 
  outputChatBox(",,,,,,,", source, 255, 0, 0, true) 
  setCameraTarget(source, source) 
  spawnPlayer(source, 1579.2481689453, math.random(-1637.4063720703, -1635.4063720703), 13.561396598816, 90, 280, 0, 0, getTeamFromName("police")) 
  giveWeapon(source, 30, 1000) 
  giveWeapon(source, 27, 1000) 
  giveWeapon(source, 3, 1) 
end 
) 
addEvent("wfaq", true) 
addEventHandler("wfaq", root, function() 
  outputChatBox("التظاهر بسلمية و ارجاع حقوق الشعب", source, 255, 0, 0, true) 
  setCameraTarget(source, source) 
  spawnPlayer(source, 1579.2481689453, math.random(-1637.4063720703, -1635.4063720703), 13.561396598816, 90, 285, 0, 0, getTeamFromName("thwar")) 
  spawnPlayer(source, 1969.4324951172, math.random(-2159.7834472656, -2157.7834472656), 13.546875, 142) 
  setElementModel(source, 2) 
  giveWeapon(source, 18, 100) 
  giveWeapon(source, 2, 1) 
  giveWeapon(source, 37, 600) 
  giveWeapon(source, 41, 1100) 
  giveWeapon(source, 43, 1100) 
end 
) 

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...