View difference between Paste ID: hySZVwge and Bwt6MyPc
SHOW: | | - or go back to the newest paste.
1
local msg = {
2
	msg1 = "Parabens, voce obteve double exp!.",
3
	msg2 = "Desculpe, voce nao obteve double exp!."
4
	}
5
local rates = 2
6
7
-- End Configs --
8
function onUse(cid, item, frompos, item2, topos)
9
   if isPremium(cid) and doPlayerRemoveMoney(cid, 2000) == TRUE then
10-
	if isPremium(cid) and doPlayerRemoveMoney(cid, 2000) == TRUE then
10+
     doPlayerSetMagicRate(cid, rates*60)
11-
		doPlayerSetMagicRate(cid, rates*60)
11+
       doPlayerPopupFYI(cid, msg.msg1)
12-
		   doPlayerPopupFYI(cid, msg.msg1)
12+
    end
13-
		end
13+
    else
14-
	else
14+
       doPlayerPopupFYI(cid, msg.msg2)
15-
		doPlayerPopupFYI(cid, msg.msg2)
15+
    end
16-
	end
16+
17
end