• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

War System and Frag Rank !! (SQLite)

lucas280

New Member
Joined
Apr 21, 2011
Messages
4
Reaction score
0
hi guys, i need war system script for my otserver someone have? and i need frag rank script( rank showing players with the most kills) example: talkaction "!rankfrag" and shows >> 1.Spark = 67 frags 2.Lowel = 45 frags 3.Opix= 34... (similar to the level rank but with frags)and if possible, one showing their deaths by players !
sorry for bad english !
 
function doPlayerShowHighscore(uid, storage)
local showPlayers = 10
local str = "Frags Highscore:\n# Player - [Score]\n"
local result = db.getResult('SELECT `value`, `player_id` FROM `player_storage` WHERE `key`=19999 ORDER BY cast(`value` as DECIMAL) DESC;')
local i = 1
while i <= showPlayers do
str = str .. "\n " .. i .. ". "..getPlayerNameByGUID(result:getDataInt("player_id")).." - [" .. (result:getDataInt("value") + 1) .. "]"
if not(result:next())then
break
end
i = i+1
end
result:free()
if(str ~= "") then
doShowTextDialog(uid, 8977, str)
end
return true
end

function onSay(cid, words, param)
doPlayerShowHighscore(cid, 19999)
return true
end


<talkaction words="!topranks" script="top.lua"/>
 
Back
Top