From 0f3c3010ac3b86864a8731924910ecdd7de4f7f6 Mon Sep 17 00:00:00 2001 From: MiranDMC Date: Mon, 28 Oct 2024 14:36:12 +0100 Subject: [PATCH] :memo: update commands --- sa/snippets/default/0806.txt | 16 ++++++++++++++++ sa_mobile/snippets/default/0806.txt | 16 ++++++++++++++++ sa_unreal/snippets/default/0806.txt | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 sa/snippets/default/0806.txt create mode 100644 sa_mobile/snippets/default/0806.txt create mode 100644 sa_unreal/snippets/default/0806.txt diff --git a/sa/snippets/default/0806.txt b/sa/snippets/default/0806.txt new file mode 100644 index 00000000..06bd6994 --- /dev/null +++ b/sa/snippets/default/0806.txt @@ -0,0 +1,16 @@ +int prevKillCount = get_total_number_of_peds_killed_by_player $player1 +while true + wait 250 + + int killCount = get_total_number_of_peds_killed_by_player $player1 + killCount -= prevKillCount + + if + killCount > 0 + then + print_formatted_now {format} "Another %d bites the dust!" {time} 3000 {args} killCount + add_one_off_sound {pos} 0.0 0.0 0.0 {soundId} ScriptSound.SoundCheckpointRed + end + + prevKillCount = get_total_number_of_peds_killed_by_player $player1 +end \ No newline at end of file diff --git a/sa_mobile/snippets/default/0806.txt b/sa_mobile/snippets/default/0806.txt new file mode 100644 index 00000000..06bd6994 --- /dev/null +++ b/sa_mobile/snippets/default/0806.txt @@ -0,0 +1,16 @@ +int prevKillCount = get_total_number_of_peds_killed_by_player $player1 +while true + wait 250 + + int killCount = get_total_number_of_peds_killed_by_player $player1 + killCount -= prevKillCount + + if + killCount > 0 + then + print_formatted_now {format} "Another %d bites the dust!" {time} 3000 {args} killCount + add_one_off_sound {pos} 0.0 0.0 0.0 {soundId} ScriptSound.SoundCheckpointRed + end + + prevKillCount = get_total_number_of_peds_killed_by_player $player1 +end \ No newline at end of file diff --git a/sa_unreal/snippets/default/0806.txt b/sa_unreal/snippets/default/0806.txt new file mode 100644 index 00000000..06bd6994 --- /dev/null +++ b/sa_unreal/snippets/default/0806.txt @@ -0,0 +1,16 @@ +int prevKillCount = get_total_number_of_peds_killed_by_player $player1 +while true + wait 250 + + int killCount = get_total_number_of_peds_killed_by_player $player1 + killCount -= prevKillCount + + if + killCount > 0 + then + print_formatted_now {format} "Another %d bites the dust!" {time} 3000 {args} killCount + add_one_off_sound {pos} 0.0 0.0 0.0 {soundId} ScriptSound.SoundCheckpointRed + end + + prevKillCount = get_total_number_of_peds_killed_by_player $player1 +end \ No newline at end of file