Scofield
New Member
as the title say u need a command or lua codethat remove a player's 1 frag
Not sure there is such function ;o
db.executeQuery("UPDATE `killers` SET `killers`.`unjustified` = 0 WHERE `killers`.`id` = `player_killers`.`kill_id` AND `player_id` = "..cid.." LIMIT 1;")
No No guys u dont understand me, i need a script that if i have for example 2 frags this day then i used it my frags go 1
i need it coz i want to make a battle which ppl die and the killer not getting frags like guild wars
so i will excutethe scipt then the other player die
script to decrease the frags by 1 so ..
if i have 2 frags, then i killed the player it will be 3 frags and immediatly the script will be executed and remove 1 frag so the player will be as he got no frags
function removeFrag(cid)
local FragTime = getConfigInfo('timeToDecreaseFrags')
local myFragTime = getPlayerRedSkullTicks(cid)
local Remo = (myFragTime - FragTime)
if Remo < 0 then
Remo = 0
end
doPlayerSetRedSkullTicks(cid, Remo)
end
why don't look in the guild wars script then?
LUA:function removeFrag(cid) local FragTime = getConfigInfo('timeToDecreaseFrags') local myFragTime = getPlayerRedSkullTicks(cid) local Remo = (myFragTime - FragTime) if Remo < 0 then Remo = 0 end doPlayerSetRedSkullTicks(cid, Remo) end
was in the guildwar script![]()
getConfigInfo('timeToDecreaseFrags')
db.executeQuery("UPDATE `killers` SET `killers`.`unjustified` = 0 WHERE `killers`.`id` = `player_killers`.`kill_id` AND `player_id` = "..cid.." LIMIT 1;")
db.executeQuery("UPDATE `killers` SET `killers`.`unjustified` = 0)
db.executeQuery("UPDATE `killers` SET `killers`.`unjustified` = 0 WHERE `killers`.`id` = `player_killers`.`kill_id` AND `player_id` = "..cid.." LIMIT 1;")