Загрузить файлы в «/»
This commit is contained in:
@@ -230,17 +230,17 @@ end
|
|||||||
|
|
||||||
-- kill list
|
-- kill list
|
||||||
function sampev.onPlayerDeathNotification(killer_id, victim_id)
|
function sampev.onPlayerDeathNotification(killer_id, victim_id)
|
||||||
|
lua_thread.create(function() wait(0)
|
||||||
if sampIsPlayerConnected(victim_id) then
|
if sampIsPlayerConnected(victim_id) then
|
||||||
local nick = sampGetPlayerNickname(victim_id)
|
local nick = sampGetPlayerNickname(victim_id)
|
||||||
if killer_id == select(2, sampGetPlayerIdByCharHandle(PLAYER_PED)) and not killed_players[nick] then
|
if killer_id == select(2, sampGetPlayerIdByCharHandle(PLAYER_PED)) and not killed_players[nick] then
|
||||||
lua_thread.create(function()
|
|
||||||
killed_players[nick] = true
|
killed_players[nick] = true
|
||||||
rampage() wait(1500)
|
rampage() wait(1500)
|
||||||
killed_players[nick] = nil
|
killed_players[nick] = nil
|
||||||
|
end
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- standart check
|
-- standart check
|
||||||
function sampev.onSendGiveDamage(id, damage)
|
function sampev.onSendGiveDamage(id, damage)
|
||||||
|
|||||||
Reference in New Issue
Block a user