Prizes = { "Points","Money" }
addCommandHandler("giveme",
function ( source )
local randomNum = math.random(1,100)
local vPrizes = Prizes[ math.random ( #Prizes ) ]
if vPrizes == "Points" then
givePlayerPoint(source, randomNum)
outputChatBox("نقآط "..randomNum.." لقد حصلت علي",source,255,0,0,true)
elseif vPrizes == "Money" then
givePlayerMoney(source, randomNum)
outputChatBox("فلوس "..randomNum.." لقد حصلت علي",source,255,0,0,true)
end
end
)
جرب