Lava Titan
Developer
Hey guys, I'm working on a script for a war server which will set skull to players with kill streak, the question I have is that I can't find the correct function to get player current frags..
Example of what I'm trying todo:
"player:getCurrentFrags" is just to show what I'm trying todo, I'm totally aware this is not a function XD
Example of what I'm trying todo:
Code:
function onKill(cid, target, lastHit)
if player:getCurrentFrags == 5 then
player:setSkull(SKULL_WHITE)
elseif player:getCurrentFrags == 10 then
player:setSkull(SKULL_RED)
elseif player:getCurrentFrags == 15 then
player:setSkull(SKULL_BLACK)
end
return true
end
"player:getCurrentFrags" is just to show what I'm trying todo, I'm totally aware this is not a function XD