Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6a16e3d697 |
12
RAMPAGE.lua
12
RAMPAGE.lua
@@ -230,16 +230,16 @@ end
|
||||
|
||||
-- kill list
|
||||
function sampev.onPlayerDeathNotification(killer_id, victim_id)
|
||||
if sampIsPlayerConnected(victim_id) then
|
||||
local nick = sampGetPlayerNickname(victim_id)
|
||||
if killer_id == select(2, sampGetPlayerIdByCharHandle(PLAYER_PED)) and not killed_players[nick] then
|
||||
lua_thread.create(function()
|
||||
lua_thread.create(function() wait(0)
|
||||
if sampIsPlayerConnected(victim_id) then
|
||||
local nick = sampGetPlayerNickname(victim_id)
|
||||
if killer_id == select(2, sampGetPlayerIdByCharHandle(PLAYER_PED)) and not killed_players[nick] then
|
||||
killed_players[nick] = true
|
||||
rampage() wait(1500)
|
||||
killed_players[nick] = nil
|
||||
end)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
-- standart check
|
||||
|
||||
Reference in New Issue
Block a user