I have two events the first one works the second one does not work why?
First Event
AddEventHandler(“baseevents:onPlayerDied”, function()
TriggerEvent(“startcooldown”)
end)
Second Event
AddEventHandler(“baseevents:onPlayerKilled”, function()
TriggerEvent(“startcooldownt”)
end)
baseevents:onPlayerKilled Don’t Work if a player kill me don’t TriggerEvent(“startcooldown”), even if I get killed by a “bot”
Hi,
In the second one, you trying to trigger "startcooldownt"
instead of "startcooldown"
You don’t need this one
Bombrider130:
AddEventHandler(“playerSpawned”, function()
cooldown = 0
end)
But, the script should works
yes but it does not work anyway if player killed
since it does not work I added it later
then I don’t know ^^
As I see in “baseevents”, "baseevents:onPlayerKilled"
seem to not be triggered when killed by a bot, but "baseevents:onPlayerDied"
is triggered instead.
yes … if I throw myself from a high place it activates
“baseevents:onPlayerDied”
1 Like