Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 00576957e7 |
16
killsay.lua
16
killsay.lua
@@ -652,18 +652,18 @@ function sampev.onShowTextDraw(id, data)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function sampev.onPlayerDeathNotification(killer_id, victim_id)
|
function sampev.onPlayerDeathNotification(killer_id, victim_id)
|
||||||
if not imgui_buffers.script_state[0] then return end
|
lua_thread.create(function() wait(0)
|
||||||
|
if not imgui_buffers.script_state[0] then return end
|
||||||
if sampIsPlayerConnected(victim_id) then
|
|
||||||
local nick = sampGetPlayerNickname(victim_id)
|
if sampIsPlayerConnected(victim_id) then
|
||||||
if killer_id == select(2, sampGetPlayerIdByCharHandle(PLAYER_PED)) and not killed_players[nick] then
|
local nick = sampGetPlayerNickname(victim_id)
|
||||||
lua_thread.create(function()
|
if killer_id == select(2, sampGetPlayerIdByCharHandle(PLAYER_PED)) and not killed_players[nick] then
|
||||||
killed_players[nick] = true
|
killed_players[nick] = true
|
||||||
killsay(victim_id) wait(1500)
|
killsay(victim_id) wait(1500)
|
||||||
killed_players[nick] = nil
|
killed_players[nick] = nil
|
||||||
end)
|
end
|
||||||
end
|
end
|
||||||
end
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user