Amiroslo
Excellent OT User
- Joined
- Jul 28, 2009
- Messages
- 6,768
- Solutions
- 5
- Reaction score
- 769
Hello,
I made this script for my OT and I am releasing it for the public.
When you say !points , it checks your premium points in-game, instead of going to the website and logging in.
Simple but useful
Tested on TFS 0.4
I don't believe its hard to change it to any other TFS, but I never took a look on TFS 1.x.
I made this script for my OT and I am releasing it for the public.
When you say !points , it checks your premium points in-game, instead of going to the website and logging in.
Simple but useful
Tested on TFS 0.4
I don't believe its hard to change it to any other TFS, but I never took a look on TFS 1.x.
New file in talkactions:
znotepoints.lua
Code:
function onSay(cid, words, param, channel)
local Info = db.getResult("SELECT `points` FROM `znote_accounts` WHERE `account_id` = " .. getPlayerAccountId(cid) .. " LIMIT 1")
local points = Info:getDataInt("points")
if isPlayer(cid) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your Account has " .. points .. " premium points.")
end
return TRUE
end
Code:
<talkaction words="!points" event="script" value="znotepoints.lua" />
Last edited: