bpm91
Intermediate OT User
- Joined
- May 23, 2019
- Messages
- 941
- Solutions
- 7
- Reaction score
- 129
- Location
- Brazil
- YouTube
- caruniawikibr
hello guys, I have an old system, where there is no blacskull. the player has redskull and ban like old times.
however I have a table in my database that counts the kills.
however there is a problem, let's say I remove the player's skull and the ban. then the "player_murders" continues without updating, so when the player loses redskull/ban he kills 1 person he is banned again. can anybody help me?
the table in mysql
my config data
if i remove skull in player in the table and the ban in account_ban
and the player kills 1 person he is banned again.
however I have a table in my database that counts the kills.
however there is a problem, let's say I remove the player's skull and the ban. then the "player_murders" continues without updating, so when the player loses redskull/ban he kills 1 person he is banned again. can anybody help me?
the table in mysql
XML:
CREATE TABLE `player_murders` (
`id` bigint(20) NOT NULL,
`player_id` int(11) NOT NULL,
`date` bigint(20) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
my config data
Lua:
-- Red Skull
killsDayRedSkull = 3
killsWeekRedSkull = 5
killsMonthRedSkull = 10
-- Ban
killsDayBanishment = 5
killsWeekBanishment = 10
killsMonthBanishment = 20
redSkullTime = 30 * 24 * 60 * 60
if i remove skull in player in the table and the ban in account_ban
and the player kills 1 person he is banned again.