elseif ( source == btn.box ) then
playSound("open.wav")
guiSetEnabled (btn.box ,false)
setTimer(guiSetEnabled, 150000, 1 ,btn.box ,true)
setElementData(localPlayer,"Damage",true)
outputChatBox ("#00FF00=(VIP-System)=#CC0000 : Wait 5 minutes to again.|You take Super Box successfully ",255,255,0,true)
addEventHandler("onPlayerDamage",root,
function(attacker, weapon, bodypart)
if ( getElementData(attacker,"Damage") == true ) then
if attacker and attacker ~= source and getElementType(attacker) == "player" then
if weapon == 0 then
killPed(source, attacker, weapon, bodypart)
end
end
end
end
)
جرب