Jump to content

استفسار


Recommended Posts

@Master_MTA

function setplus10(player,text)
   if isElement(player)then
    if text then
  if text == "Health" then
        local plhel=getElementHealth(player)
                if plhel >= 100 then   outputChatBox('Your Health is 100',player) return end
        setElementHealth(player,plhel+10)
        elseif text == "Armor" then
        local plrarm=getPedArmor(player)
        if plrarm >= 100 then outputChatBox('Your Armor is 100',player) return end
        setPedArmor(player,plrarm+10)
      end
  end
    else
    outputChatBox('Type at argument 1 got nil',player)
    end
  else
      outputChatBox('Player at argument 1 got nil',player)
  end
addEvent('ss',true)-----------------هذا دم
addEventHandler('ss',root,function()
  setplus10(source,"Health")
end)
addEvent('s1',true)----------------هذا يعطي درع
addEventHandler('s1',root,function()
  setplus10(source,"Armor")
end)

 

Edited by #_iMr.[E]coo
Link to comment
1 minute ago, #_iMr.[E]coo said:

@Master_MTA


function setplus10(player,text)
   if isElement(player)then
    if text then
  if text == "Health" then
        local plhel=getElementHealth(player)
                if plhel >= 100 then   outputChatBox('Your Health is 100',player) return end
        setPlayerHealth(player,plhel+10)
        elseif text == "Armor" then
        local plrarm=getPedArmor(player)
        if plrarm >= 100 then outputChatBox('Your Armor is 100',player) return end
        setPedArmor(player,plrarm+10)
      end
  end
    else
    outputChatBox('Type at argument 1 got nil',player)
    end
  else
      outputChatBox('Player at argument 1 got nil',player)
  end
addEvent('ss',true)-----------------هذا دم
addEventHandler('ss',root,function()
  setplus10(source,"Health")
end)
addEvent('s1',true)----------------هذا يعطي درع
addEventHandler('s1',root,function()
  setplus10(source,"Armor")
end)

 

ما اتوقع في غلط بكودي السابق فقط غيرت 1 وما الى ذلك

3 minutes ago, mahmod3 said:

يطلهلي is not aded server side او شي متع كدا 

معناتها في مشكله بملف السيرفر عندك

الاكواد داخله على بعض

Link to comment
1 minute ago, Master_MTA said:

ما اتوقع في غلط بكودي السابق فقط غيرت 1 وما الى ذلك

معناتها في مشكله بملف السيرفر عندك

الاكواد داخله على بعض

الغلط كله ي الطيب من 

setPlayerHealth ?

صاحب الموضوعجرب ردي فوق

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...