forked from 0x2XPx/2Take1-script-Archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSound-Spam.lua
232 lines (204 loc) · 8.47 KB
/
Sound-Spam.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
--Squidbq--
--Credit to Gee-Man521 for helping--
local local_parent = menu.add_feature("Earrape", "parent", 0)
local local_very_loud = menu.add_feature("very loud", "parent", local_parent.id)
local local_loud = menu.add_feature("loud", "parent", local_parent.id)
local local_not_that_loud = menu.add_feature("not that loud", "parent", local_parent.id)
local player_parent = menu.add_player_feature("Earrape", "parent", 0)
local player_very_loud = menu.add_player_feature("very loud", "parent", player_parent.id)
local player_loud = menu.add_player_feature("loud", "parent", player_parent.id)
local player_not_that_loud = menu.add_player_feature("not that loud", "parent", player_parent.id)
local function checknumber(_num)
if _num ~= nil and tonumber(_num) ~= nil then
return true
end
return false
end
local function text_input(_title,_default,_max,_type)
local status,str=1
while status == 1 do
system.yield(0)
status, str = input.get(_title, _default, _max, _type)
end
return status,str
end
--very loud all players
menu.add_feature("Earrape all v1", "action", local_very_loud.id, function(f)
menu.notify("Sending earrape v1 to all players...",nil,5, 0x00FF00)
for i = 0, 100 do
for pid = 0,31 do
if player.is_player_valid(pid) then
audio.play_sound_from_coord(-1, "BED", player.get_player_coords(pid), "WASTEDSOUNDS", true, 9999, false)
end
end
end
end)
menu.add_feature("Earrape all v2", "action", local_very_loud.id, function(f)
menu.notify("Sending earrape v2 to all players...",nil,5, 0x00FF00)
for i = 0, 100 do
for pid = 0,31 do
if player.is_player_valid(pid) then
audio.play_sound_from_coord(-1, "ScreenFlash", player.get_player_coords(pid), "WastedSounds", true, 9999, false)
end
end
end
end)
menu.add_feature("Earrape all v3", "action", local_very_loud.id, function(f)
menu.notify("Sending earrape v3 to all players...",nil,5, 0x00FF00)
for i = 0, 100 do
for pid = 0,31 do
if player.is_player_valid(pid) then
audio.play_sound_from_coord(-1, "Air_Defences_Activated", player.get_player_coords(pid), "DLC_sum20_Business_Battle_AC_Sounds", true, 9999, false)
end
end
end
end)
--loud all players
menu.add_feature("Earrape all v1", "action", local_loud.id, function(f)
menu.notify("Sending earrape v1 to all players...",nil,5, 0x00FF00)
for i = 0, 100 do
for pid = 0,31 do
if player.is_player_valid(pid) then
audio.play_sound_from_coord(-1, "LOSER", player.get_player_coords(pid), "HUD_AWARDS", true, 9999, false)
end
end
end
end)
--not that loud all players
menu.add_feature("Earrape all v1", "action", local_not_that_loud.id, function(f)
menu.notify("Sending earrape v1 to all players...",nil,5, 0x00FF00)
for i = 0, 100 do
for pid = 0,31 do
if player.is_player_valid(pid) then
audio.play_sound_from_coord(-1, "Horn", player.get_player_coords(pid), "DLC_Apt_Yacht_Ambient_Soundset", true, 9999, false)
end
end
end
end)
menu.add_feature("Earrape all v2", "action", local_not_that_loud.id, function(f)
menu.notify("Sending earrape v2 to all players...",nil,5, 0x00FF00)
for i = 0, 100 do
for pid = 0,31 do
if player.is_player_valid(pid) then
audio.play_sound_from_coord(-1, "1st_Person_Transition", player.get_player_coords(pid), "PLAYER_SWITCH_CUSTOM_SOUNDSET", true, 9999, false)
end
end
end
end)
--very loud on players
menu.add_player_feature("Earrape v1", "action", player_very_loud.id, function(f,pid)
local status,str = text_input("Type range... | Minimum = 1 | Maximum = 9999","",128,3)
if status == 0 then
if tonumber(str) < 1 then
menu.notify("Value is to low "..str,nil,5, 0x0000FF)
return
end
if tonumber(str) > 9999 then
menu.notify("Value is to high "..str,nil,5, 0x0000FF)
return
end
menu.notify("Send earrape v1 with range: "..str,nil,5, 0x00FF00)
for i = 0, 100 do
audio.play_sound_from_coord(-1, "BED", player.get_player_coords(pid), "WASTEDSOUNDS", true, str, false)
end
else
menu.notify("Cancelled",nil,3, 211)
end
end)
menu.add_player_feature("Earrape v2", "action", player_very_loud.id, function(f,pid)
local status,str = text_input("Type range... | Minimum = 1 | Maximum = 9999","",128,3)
if status == 0 then
if tonumber(str) < 1 then
menu.notify("Value is to low "..str,nil,5, 0x0000FF)
return
end
if tonumber(str) > 9999 then
menu.notify("Value is to high "..str,nil,5, 0x0000FF)
return
end
menu.notify("Send earrape v2 with range: "..str,nil,5, 0x00FF00)
for i = 0, 100 do
audio.play_sound_from_coord(-1, "ScreenFlash", player.get_player_coords(pid), "WastedSounds", true, str, false)
end
else
menu.notify("Cancelled",nil,3, 211)
end
end)
menu.add_player_feature("Earrape v3", "action", player_very_loud.id, function(f,pid)
local status,str = text_input("Type range... | Minimum = 1 | Maximum = 9999","",128,3)
if status == 0 then
if tonumber(str) < 1 then
menu.notify("Value is to low "..str,nil,5, 0x0000FF)
return
end
if tonumber(str) > 9999 then
menu.notify("Value is to high "..str,nil,5, 0x0000FF)
return
end
menu.notify("Send earrape v3 with range: "..str,nil,5, 0x00FF00)
for i = 0, 100 do
audio.play_sound_from_coord(-1, "Air_Defences_Activated", player.get_player_coords(pid), "DLC_sum20_Business_Battle_AC_Sounds", true, str, false)
end
else
menu.notify("Cancelled",nil,3, 211)
end
end)
--loud on players
menu.add_player_feature("Earrape v1", "action", player_loud.id, function(f,pid)
local status,str = text_input("Type range... | Minimum = 1 | Maximum = 9999","",128,3)
if status == 0 then
if tonumber(str) < 1 then
menu.notify("Value is to low "..str,nil,5, 0x0000FF)
return
end
if tonumber(str) > 9999 then
menu.notify("Value is to high "..str,nil,5, 0x0000FF)
return
end
menu.notify("Send earrape v1 with range: "..str,nil,5, 0x00FF00)
for i = 0, 100 do
audio.play_sound_from_coord(-1, "LOSER", player.get_player_coords(pid), "HUD_AWARDS", true, str, false)
end
else
menu.notify("Cancelled",nil,3, 211)
end
end)
--not that loud on players
menu.add_player_feature("Earrape v1", "action", player_not_that_loud.id, function(f,pid)
local status,str = text_input("Type range... | Minimum = 1 | Maximum = 9999","",128,3)
if status == 0 then
if tonumber(str) < 1 then
menu.notify("Value is to low "..str,nil,5, 0x0000FF)
return
end
if tonumber(str) > 9999 then
menu.notify("Value is to high "..str,nil,5, 0x0000FF)
return
end
menu.notify("Send earrape v1 with range: "..str,nil,5, 0x00FF00)
for i = 0, 100 do
audio.play_sound_from_coord(-1, "Horn", player.get_player_coords(pid), "DLC_Apt_Yacht_Ambient_Soundset", true, str, false)
end
else
menu.notify("Cancelled",nil,3, 211)
end
end)
menu.add_player_feature("Earrape v2", "action", player_not_that_loud.id, function(f,pid)
local status,str = text_input("Type range... | Minimum = 1 | Maximum = 9999","",128,3)
if status == 0 then
if tonumber(str) < 1 then
menu.notify("Value is to low "..str,nil,5, 0x0000FF)
return
end
if tonumber(str) > 9999 then
menu.notify("Value is to high "..str,nil,5, 0x0000FF)
return
end
menu.notify("Send earrape v2 with range: "..str,nil,5, 0x00FF00)
for i = 0, 100 do
audio.play_sound_from_coord(-1, "1st_Person_Transition", player.get_player_coords(pid), "PLAYER_SWITCH_CUSTOM_SOUNDSET", true, str, false)
end
else
menu.notify("Cancelled",nil,3, 211)
end
end)