Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5d7b7ac538 |
@@ -626,6 +626,8 @@ function main()
|
||||
end
|
||||
|
||||
function sampev.onShowTextDraw(id, data)
|
||||
if not imgui_buffers.script_state[0] then return end
|
||||
|
||||
if id == 2050 and data.text:find(".- %- .- %- KILL") then
|
||||
local current_time = os.clock()
|
||||
recent_textdraws[data.text] = current_time
|
||||
@@ -650,6 +652,8 @@ function sampev.onShowTextDraw(id, data)
|
||||
end
|
||||
|
||||
function sampev.onPlayerDeathNotification(killer_id, victim_id)
|
||||
if not imgui_buffers.script_state[0] then return end
|
||||
|
||||
if sampIsPlayerConnected(victim_id) then
|
||||
local nick = sampGetPlayerNickname(victim_id)
|
||||
if killer_id == select(2, sampGetPlayerIdByCharHandle(PLAYER_PED)) and not killed_players[nick] then
|
||||
@@ -664,6 +668,8 @@ end
|
||||
|
||||
|
||||
function sampev.onSendGiveDamage(id, damage)
|
||||
if not imgui_buffers.script_state[0] then return end
|
||||
|
||||
if sampIsPlayerConnected(id) then
|
||||
local nick = sampGetPlayerNickname(id)
|
||||
if id == 65535 or killed_players[nick] then return end
|
||||
|
||||
Reference in New Issue
Block a user