zerox4365x
New Member
Good morning, afternoon, evening, night, whenever you see this post haha.
Resources:
The thing is the following,..
I don't know if someone has the idea of how to take the player_kills as a value, like the old !frags command that was used in the 8.6 servers to be able to see the frags.
I tried to create a function, but I have no idea how querys work, then... Here is my humble atrocious creation
Can someone help me hhhhhh?
Resources:
- TFS Version: 1.x+
- Server Type: Canary (Click Here!)
- Client Version: 12.x+
The thing is the following,..
I don't know if someone has the idea of how to take the player_kills as a value, like the old !frags command that was used in the 8.6 servers to be able to see the frags.
I tried to create a function, but I have no idea how querys work, then... Here is my humble atrocious creation
function Player.getKillsPlayer(self)
local Info = db.storeQuery("SELECT * FROMplayer_kills
WHEREplayer_id
= " .. self:getGuid() .. " ANDunavenged
= 1")
local frags = result.getDataInt(Info, 'frags')
result.free(Info)
return frags
end
Can someone help me hhhhhh?