LucasFerraz
Systems Analyst
Hello,
is possible a script that if player logout he loses all frags? (PVP-E)
is possible a script that if player logout he loses all frags? (PVP-E)
function onLogout(cid)
if isPlayer(cid) then
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
end
return true
end
function onLogin(cid)
if isPlayer(cid) then
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
end
return true
end