Jump to content

طلب اكواد


Recommended Posts

بالنسسبة لـ Armor + Health ^_^

اذا تبيه مفرق =

--ServerSide

  
addEvent("buyHealth", true) 
addEventHandler("buyHealth", getRootElement(), 
  function() 
      if ( getPlayerMoney (source) >= 3000 ) then 
        takePlayerMoney(source, 3000 ) 
        setElementHealth(source, 100) 
        outputChatBox("You Bought Health By : 3000$", source, 255, 255, 0, true) 
        local name = getPlayerName(source) 
        outputChatBox ( "#FFFF1A*** [ #FFFFFF" .. name .. " #FFFF1A] Has Bought Health By : 3000$   ***", getRootElement(), 255, 0, 0, true ) 
      else 
        outputChatBox("You don't have 3000$  to buy Health", source, 255, 0, 0, true) 
end 
    end ) 
----------------------------------------------- Armoor 
addEvent("buyArmor", true) 
addEventHandler("buyArmor", getRootElement(), 
  function() 
      if ( getPlayerMoney (source) >= 3000 ) then 
        takePlayerMoney(source, 3000) 
        setPedArmor(source, 100) 
        outputChatBox("You Bought Armor By : 3000$", source, 255, 255, 0, true) 
        local name = getPlayerName(source) 
        outputChatBox ( "#FFFF1A*** [ #FFFFFF" .. name .. " #FFFF1A] Has Bought Armor By : 3000$   ***", getRootElement(), 255, 0, 0, true ) 
      else 
        outputChatBox("You don't have $3000 to buy Armor", source, 255, 0, 0, true) 
      end 
  
end ) 
  

--ByAboShanab xD

Link to comment
جرب كود الأيبي ذا

+

ضيف المود لقروب الأدمن

resource.name

كلينت

addEventHandler("onClientResourceStart", root, 
function() 
triggerServerEvent("ip", getLocalPlayer()) 
end) 
  
addEvent("updateIP", true) 
addEventHandler("updateIP", root, function(l_6_0) 
  guiSetText(GUIEditor_Label[10], "Your IP : " .. tostring(l_6_0)) 
end 
) 

سيرفر

addEvent("ip", true) 
ip = function(l_1_0) 
  local IP = getPlayerIP(l_1_0) 
  triggerClientEvent(source, "updateIP", source, IP) 
end 
  
addEventHandler("ip", root, ip) 

كككوددكك مفكوك تشفيره ع ما اظن ..

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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