Jump to content

استفسار


Recommended Posts

Posted (edited)

@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

- Hashemite Kingdom Of Jordan -

Posted
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 او شي متع كدا 

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

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

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted

اعرض ملف الميتا حقك 

 

721195519.png

595770773.png

 

76561198277320954.pngAddFriend.png

خلك احسن من غيرك,

لا تقول عندهم اشياء ماهي عندي

انت عندك اشياء ماهي عند غيرك #

Posted
1 minute ago, Master_MTA said:

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

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

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

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

setPlayerHealth ?

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

- Hashemite Kingdom Of Jordan -

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