Svira
Active Member
- Joined
- Jan 27, 2008
- Messages
- 267
- Solutions
- 11
- Reaction score
- 36
Hello, I want the script to be for all players, unfortunately, works only for GOD
TFS 1.2
ZNOTE DB
Actions ItemID
Code:
local function doPlayerAddPremiumPoints(cid, count)
db.query('UPDATE znote_accounts SET points = points+'.. count ..' WHERE id = ' .. getAccountNumberByPlayerName(getCreatureName(cid)))
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = Player(cid)
doPlayerAddPremiumPoints(cid, 500)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have recived 500 shop points to your account.")
player:getPosition():sendMagicEffect(28)
item:remove(1)
return true
end
TFS 1.2
ZNOTE DB
Actions ItemID