ما بيشتغل اصلا عشان سطر 21
شل القوس منه
#Edit:
function setplus10(player,type)
if isElement(player)then
if type then
if type==1 then
local plhel=getElementHealth(player)
if plhel >= 100 then outputChatBox('Your Health is 100',player) return end
setPlayerHealth(player,plhel+10)
elseif type==2 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,1)
end)
addEvent('s1',true)----------------هذا يعطي درع
addEventHandler('s1',root,function()
setplus10(source,2)
end)
جرب