i want make a !say <color> function
Like if say !say_blue <txt> then
[Admin] black-sheep : txt ... (in blue color)
That the script that i use
If anyone can help me , please do it
B.S Admin Script V2.2
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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
---- B.S Admin Script V2.1 ---- ---- made by black_sheep ---- ---- USGN : #105753 ---- ---- visit www.blacksheep.freeforums.tv ---- -------------------Admins/Mod/VIP--------------------------- ------------------------------------------------------------ Admin = {105753} -- your usgn here VIP = {} -- your usgn here Mod = {} -- your usgn here colors = 1 --- Hooks ------------------------ addhook("say","tags") addhook("say","colors") addhook("say","log") addhook("say","commands") addhook("menu","rer_menu") addhook("leave","vip_leave") addhook("join","vip_join") addhook("second","servername") addhook("minute","advertise") ---------------------------------- --------------------Tags-------------------------------- -------------------------------------------------------- function tags(id,t) -------------------------------------------------------- admin_color = "©255100000" admin_say_color = "©255255255" -------------------------------------------------------- --- Admin ---------------------------------------------- for _, usgn in ipairs(Admin) do if player(id,'usgn') == usgn then if colors == 1 then msg(""..admin_color.."[Admin] "..player(id,"name").." :"..admin_say_color.." "..t) return 1 end end end -------------------------------------------------------- vip_color = "©000075255" vip_say_color = "©255255255" -------------------------------------------------------- --- Vips ----------------------------------------------- for _, usgn in ipairs(VIP) do if player(id,'usgn') == usgn then 	if colors == 1 then msg(""..vip_color.."[VIP] "..player(id,"name").." :"..vip_say_color.." "..t) return 1 end end end -------------------------------------------------------- mod_color = "©000255255" mod_say_color = "©255255255" --- Moderators ----------------------------------------- for _, usgn in ipairs(Mod) do if player(id,'usgn') == usgn then 	if colors == 1 then msg(""..mod_color.."[Moderator] "..player(id,"name").." :"..mod_say_color.." "..t) return 1 end end end end --------------Log on , out system----------------- -------------------------------------------------- function colors(id,t) 	if colors == 0 then return false end end -------------------------------------------------- function log(id,txt) --- Admins --- for __, usgn in ipairs(Admin) do if player(id,'usgn') == usgn then if txt == "!on" then 	colors = 1 elseif txt == "!off" then 	colors = 0 end return 1 end end --- Vips --- for _, usgn in ipairs(VIP) do if player(id,'usgn') == usgn then if txt == "!on" then 	colors = 1 elseif txt == "!off" then 	colors = 0 end return 1 end end --- Moderators --- for _, usgn in ipairs(Mod) do if player(id,'usgn') == usgn then if txt == "!on" then 	colors = 1 elseif txt == "!off" then 	colors = 0 end return 1 end end end --------------------Admin commands------------------ ---------------------------------------------------- function commands(id,txt) for _, usgn in ipairs(Admin) do if player(id,'usgn') == usgn then -- Kick if txt:lower():sub(1,5) == "!kick" then 	tokick = txt:sub(7,8) 	toreason = txt:sub(9) 	parse("kick "..tokick.." "..toreason) -- Counter-Terrorist elseif txt:lower():sub(1,7) == "!makect" then 	tomake = txt:sub(8) 	parse("makect "..tomake) -- Terrorist elseif txt:lower():sub(1,6) == "!maket" then 	tomake = txt:sub(8) 	parse("maket "..tomake) -- Kill elseif txt:lower():sub(1,5) == "!kill" then 	tokill = txt:sub(6) 	parse("killplayer "..tokill) -- Ban elseif txt:lower():sub(1,4) == "!ban" then 	toban = txt:sub(5) 	parse("banusgn "..toban) 	parse("banip "..toban) -- Spectator elseif txt:lower():sub(1,6) == "!makes" then 	tospec = txt:sub(8) 	parse("makespec "..tospec) elseif txt == "!restart" then -- Restart 	parse("restartround 0") ---Bots--- elseif txt =="!bot_ct" then 	parse("bot_add ct") elseif txt =="!bot_t" then 	parse("bot_add t") elseif txt =="!bot_remove" then 	parse("bot_remove_all") elseif txt =="!bot_remove_t" then 	parse("bot_remove_t") elseif txt =="!bot_remove_ct" then 	parse("bot_remove_ct") ---Fog of War--- elseif txt == "!fog_on" then 	parse("sv_fow 1") msg("©000255000Fog of War Enabled") 	elseif txt == "!fog_off" then 	parse("sv_fow 0") msg("©255000000Fog of War Disabled") ---Frienfly Fire--- elseif txt == "!ff_on" then 	parse("sv_friendlyfire 1") 	msg("©000255000Friendly Fire Enabled") elseif txt == "!ff_off" then 	parse("sv_friendlyfire 0") 	msg("©255000000Friendly Fire Disabled") ---USGN Only--- elseif txt == "!us_on" then 	parse("sv_usgnonly 1") 	msg("©000255000USGN only Enabled") elseif txt == "!us_off" then 	parse("sv_usgnonly 0") 	msg("©255000000USGN only Disabled") ---Lan--- elseif txt == "!lan_on" then 	parse("sv_lan 1") 	msg("©000255000Lan Server Enabled") elseif txt == "!lan_off" then 	parse("sv_lan 0") 	msg("©255000000Lan Server Disabled") ---Special help--- elseif txt=="!spc_help" then msg("©255000000[B.S] Script - Special Help") msg("©000255100VIP/Admin/Mod Commands :") msg("©000255100!on/off , !kick <id> , !kill <id> , !restart (Admin)") msg("©000255100!bot_ct/t , !bot_remove_t/ct , !bot_remove") msg("©000255100!maket <id> , !makes <id> , !makect <id> , !ban <id> (Mod/Admin)") msg("©000255100!fow_on/off (Admin) !ff_on/off (Admin) !us_on/off (Admin) ") end end end ------------------Moderator Commands--------------------- --------------------------------------------------------- for _, usgn in ipairs(Mod) do if player(id,'usgn') == usgn then -- Kick if txt:lower():sub(1,5) == "!kick" then 	tokick = txt:sub(7,8) 	toreason = txt:sub(9) 	parse("kick "..tokick.." "..toreason) elseif txt:lower():sub(1,7) == "!makect" then -- Counter-Terrorist 	tomake = txt:sub(8) 	parse("makect "..tomake) elseif txt:lower():sub(1,6) == "!maket" then -- Terrorist 	tomake = txt:sub(8) 	parse("maket "..tomake) elseif txt:lower():sub(1,5) == "!kill" then -- Kill 	tokill = txt:sub(6) 	parse("killplayer "..tokill) elseif txt:lower():sub(1,4) == "!ban" then -- Ban 	toban = txt:sub(5) 	parse("banusgn "..toban) 	parse("banip "..toban) elseif txt:lower():sub(1,6) == "!makes" then -- Spectator 	tospec = txt:sub(8) 	parse("makespec "..tospec) ---Bots--- elseif txt =="!bot_ct" then 	parse("bot_add ct") elseif txt =="!bot_t" then 	parse("bot_add t") elseif txt =="!bot_remove" then 	parse("bot_remove_all") elseif txt =="!bot_remove_t" then 	parse("bot_remove_t") elseif txt =="!bot_remove_ct" then 	parse("bot_remove_ct") ---Special help--- elseif txt=="!spc_help" then msg("©255000000[B.S] Script - Special Help") msg("©000255100VIP/Admin/Mod Commands :") msg("©000255100!on/off , !kick <id> , !kill <id> , !restart (Admin)") msg("©000255100!bot_ct/t , !bot_remove_t/ct , !bot_remove") msg("©000255100!maket <id> , !makes <id> , !makect <id> , !ban <id> (Mod/Admin)") msg("©000255100!fow_on/off (Admin) !ff_on/off (Admin) !us_on/off (Admin) ") end end end ---------------VIP Commands----------------- -------------------------------------------- for _, usgn in ipairs(VIP) do if player(id,'usgn') == usgn then if txt:lower():sub(1,5) == "!kick" then -- Kick 	tokick = txt:sub(7,8) 	toreason = txt:sub(9) 	parse("kick "..tokick.." "..toreason) elseif txt:lower():sub(1,7) == "!makect" then -- Counter-Terrorist 	tomake = txt:sub(8) 	parse("makect "..tomake) elseif txt:lower():sub(1,6) == "!maket" then -- Terrorist 	tomake = txt:sub(8) 	parse("maket "..tomake) elseif txt:lower():sub(1,5) == "!kill" then -- Kill 	tokill = txt:sub(6) 	parse("killplayer "..tokill) elseif txt:lower():sub(1,6) == "!makes" then -- Spectator 	tospec = txt:sub(8) 	parse("makespec "..tospec) ---Bots--- elseif txt =="!bot_ct" then 	parse("bot_add ct") elseif txt =="!bot_t" then 	parse("bot_add t") elseif txt =="!bot_remove" then 	parse("bot_remove_all") elseif txt =="!bot_remove_t" then 	parse("bot_remove_t") elseif txt =="!bot_remove_ct" then 	parse("bot_remove_ct") ---Special help--- elseif txt=="!spc_help" then msg("©255000000[B.S] Script - Special Help") msg("©000255100VIP/Admin/Mod Commands :") msg("©000255100!on/off , !kick <id> , !kill <id> , !restart (Admin)") msg("©000255100!bot_ct/t , !bot_remove_t/ct , !bot_remove") msg("©000255100!maket <id> , !makes <id> , !makect <id> , !ban <id> (Mod/Admin)") msg("©000255100!fow_on/off (Admin) !ff_on/off (Admin) !us_on/off (Admin) ") end end end ------------ALL Player Commands----------------- ------------------------------------------------ --- !reset --- if txt=="!reset" then 	parse ("setscore "..id.." ..sc") 	parse ("setdeaths "..id.." ..sc") 	msg("©255255255"..player(id,"name").." reset their scores!") end --- !rs --- if txt=="!rs" then 	parse ("setscore "..id.." ..sc") 	parse ("setdeaths "..id.." ..sc") 	msg("©255255255"..player(id,"name").." reset their scores!") end --- !help --- if txt=="!help" then 	msg("©255000000[B.S] Script - Help") 	msg("©000255100Commands :") 	msg("©000255100!rs , !reset , !server , !help , !script_info") 	msg("©000255100!spc_help (Mod/Admin/VIP)") end --- !script_info --- if txt=="!script_info" then --- Script INFO 	msg("©255000000[B.S] Script - Script Info") 	msg("©000255100Creator : black_sheep") 	msg("©000255100Usgn : 105753") 	msg("©000255100Visit www.blacksheep.freeforums.tv") 	msg("©000255100say !help to more help commands") end --- !server --- if txt=="!server" then menu(id, "Clan name here,Name server #1,Name server #2,Name server #3,Name server #4,Name server #5") end end ------------Server Re-Route---------------- ------------------------------------------- ---IP's------------------------------------ --- Examples : ---------------------------- --- server_route[1] = "1.2.3.4:1230" --- server_route[1] = "1.2.3.4:1231" ------------------------------------------- server_route = {} 	server_route[1] = "Your IP and Port here" 	server_route[2] = "Your IP and Port here" 	server_route[3] = "Your IP and Port here" 	server_route[4] = "Your IP and Port here" 	server_route[5] = "Your IP and Port here" ------------------------------------------- function rer_menu(id, title, button) if (title=="Clan name here") then -- Menu Name if button==1 then 	parse("reroute "..id.." "..server_route[1]) end if button==2 then 	parse("reroute "..id.." "..server_route[2]) end if button==3 then 	parse("reroute "..id.." "..server_route[3]) end if button==4 then 	parse("reroute "..id.." "..server_route[3]) end if button==5 then 	parse("reroute "..id.." "..server_route[3]) end end end ----------------Join------------------ -------------------------------------- function vip_join(id) --------------- join_color = "©000255000" --------------- --- Admins --- for _, usgn in ipairs(Admin) do if player(id,'usgn') == usgn then 	msg(""..join_color.." Admin "..player(id,"name").." (#"..player(id,"usgn")..") Joined the server @C") 	msg(""..join_color.." Admin "..player(id,"name").." (#"..player(id,"usgn")..") Joined the server") end end --- Moderators --- for _, usgn in ipairs(Mod) do if player(id,'usgn') == usgn then 	msg(""..join_color.." Moderator "..player(id,"name").." (#"..player(id,"usgn")..") Joined the server @C") 	msg(""..join_color.." Moderator "..player(id,"name").." (#"..player(id,"usgn")..") Joined the server ") end end --- vips --- for _, usgn in ipairs(VIP) do if player(id,'usgn') == usgn then 	msg(""..join_color.." Vip "..player(id,"name").." (#"..player(id,"usgn")..") Joined the server @C") 	msg(""..join_color.." Vip "..player(id,"name").." (#"..player(id,"usgn")..") Joined the server ") end end end ---------------Leave------------------ -------------------------------------- function vip_leave(id,reason) --------------- leave_color = "©255000000" --------------- --- Admins --- for _, usgn in ipairs(Admin) do if player(id,'usgn') == usgn then 	msg(""..leave_color.."Admin "..player(id,"name").." (#"..player(id,"usgn")..") Leave The server ") end end --- Vips --- for _, usgn in ipairs(VIP) do if player(id,'usgn') == usgn then 	msg(""..leave_color.."Vip "..player(id,"name").." (#"..player(id,"usgn")..") Leave The server ") end end --- Moderator --- for _, usgn in ipairs(Mod) do if player(id,'usgn') == usgn then 	msg(""..leave_color.."Moderator "..player(id,"name").." (#"..player(id,"usgn")..") Leave The server ") end end end ------- Servername --------- ---------------------------- function servername(t) --- (1 = Yes , 0 = No) -- hud = 1 --- The Hud color --- hud_color= "©255100000" if hud == 1 then 	parse('hudtxt 49 " '..hud_color..'Black sheep Adm in Script V2.2" 5 110') 	parse('hudtxt 48 " '..hud_color..'Say !script_info for more info" 5 125') end end ---------Minute----------- -------------------------- function advertise() -------------------------- adv = 1 -------------------------- if adv == 1 then 	msg('©000255000Server is using : Black Sheep Admin Script V2.2') 	msg('©255255255Say !help for more info') end end --------------BADWORDS---------------- -------------------------------------- -- (1 = enabled , 0 = Disabled) ------ badword = 1 --Dont Change , it lead bugs ! -- if badword == 1 then if sample==nil then sample={} end sample.badwords={} --Badwords list -- Dont change please !!! badwords_words = {"fuck","wtf","whythefuck","w.t.f","why the fuck","wth","what the hell","what tha hell","whathehell","w.t.h","fucker","whathahell","bunda","what the fuck","whatthefuck","whathefuck","wha da fuck","watafuk","wadafuq","bitch","your ass","take on ass","poha","vai pro inferno","caralho","go to hell","porra","bosta","merda","fdp","filho da puta","f.d.p","moda faka","motherfuck","motherfock","motherfucker","motherfocker","mada faka","carai","karai","karalho","cú","whore","nigger","shit","i love devil"} --Badwords Lua Codes --- addhook("say","badwords") function badwords(p,t) --- action to make with a player that said a badword ----- action = "makespec " ---------------------------------------------------------- t=string.lower(t) for i = 1,#badwords_words do if (string.find(t,badwords_words[i])~=nil) then 	msg("©000255100".. player(p,"name").." said a bad word!") 	parse(''..action..' '..p) 	break end end end end -------------------------------------------------------------- --------------------------------------------------------------