جرب ذا
price.shealth = 3000
addEvent("buySuperHealth", true)
addEventHandler("buySuperHealth",root,
function()
if ( getPlayerMoney (source) >= price.shealth ) then
takePlayerMoney(source, price.shealth)
outputChatBox("You Bought Super Health By : "..price.shealth.."", source, 255, 255, 0, true)
local name = getPlayerName(source)
outputChatBox ( "#FFFF1A*** [ #FFFFFF" .. name .. " #FFFF1A] Has Bought Super Health By : "..price.shealth.."$ ***", getRootElement(), 255, 0, 0, true )
setPedStat(source,24,999)
setElementHealth(source,200)
addEventHandler("onPlayerWasted",getRootElement(),
function()
setPedStat(source,24,569)
end
)
else
outputChatBox("You don't have $"..price.shealth.." to buy Super Health ", source, 255, 0, 0, true)
end
end )
-------
ملاحظة بياخذ 3 آلاف من الاعب اذا تبي تزود او تنقص رح ل
price.shealth = 3000
غير ال رقم
ملاحظة أخرى , انا مو متطمن ل
.
ذي
بعض الاوقات تعطيك اخطاء
price.shealth
..