Forum

> > CS2D > Scripts > mute lua
Forums overviewCS2D overview Scripts overviewLog in to reply

English mute lua

10 replies
To the start Previous 1 Next To the start

old mute lua

limonata
User Off Offline

Quote
Hello guys here is the mute script by Sniper95 but When I add colour say script its not work for example I want to write with yellow also use this script. Help please.
P.S: "when you are write !mute it shouldnt appear in chat panel".
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
function Array(size,value) 
    local array = {}
    for i = 1, size do
        array[i]=value
    end
    return array
end
-------------------------

admins = {63092,50998}

yasak = Array(32,0)

addhook("say","mute")
function mute(id,txt)
for _, usgn in pairs(admins) do
if player(id,"usgn") == usgn then
if string.sub(txt,1,5) == "!mute" then
local ida = tonumber(string.sub(txt,7,8))
yasak[ida] = 1
msg2(id,"©000255000Player has been muted : "..player(ida,"name"))
msg2(ida,"©255000000You have been muted by admin.")
return 1
elseif string.sub(txt,1,7) == "!unmute" then
local ida = tonumber(string.sub(txt,8,9))
yasak[ida] = 0
msg2(id,"©000255000Player unmuted : "..player(ida,"name"))
msg2(id,"©255000000Admin forgived you.")
return 1
end
end
end
if yasak[id] == 1 then
msg2(id,"©255000000You have been muted by admin.")
return 1
end
end

addhook("sayteam","eng")
function eng(id,txt)
if yasak[id] == 1 then
msg2(id,"©255000000You have been muted by admin.")
return 1
end
end

old Re: mute lua

Untitled
User Off Offline

Quote
Can't help you with the Lua thing but when you use a command like the one your saying with a ! you don't see it in the chat panel.

old Re: mute lua

limonata
User Off Offline

Quote
The first problem is when I get write colour mute doesnt work. Is there anyone for do this?
edited 2×, last 24.01.13 10:19:51 am

old Re: mute lua

Xirot
User Off Offline

Quote
Improve your english , because you can't be a good scripter if you're english suck.
1
2
3
4
yasak[ida] = 0
msg2(id,"©000255000Player unmuted : "..player(ida,"name"))
msg2(id,"©255000000Admin forgave you.")
return 1

old Re: mute lua

limonata
User Off Offline

Quote
Firstly I solved the problems thanks for your helping. Secondly I didnt do this script and thats owner is turkish. So I changed some places quickly for you. So i did some mistakes in english term.

Problem solved. Thanks.

old Re: mute lua

Obviously Exactly Myself
User Off Offline

Quote
@user Xirot: Your script will cause errors, and also, his English is better than yours.

user Xirot has written
Improve your english , because you can't be a good scripter if you're english suck.

Improve your English, it's because you can't be a good scripter if your English sucks.

old Re: mute lua

krabob
User Off Offline

Quote
You can keep acting like you speak English perfectly well on the internet, but I bet most of ya don't actually SPEAK it very well.

So yeah.

old Re: mute lua

Xirot
User Off Offline

Quote
@user krabob: Totaly agree , but this guy here is trying to spell some words make no sense.

old Re: mute lua

DannyDeth
User Off Offline

Quote
user Obviously Exactly Myself has written
Improve your English, it's because you can't be a good scripter if your English sucks.

inb4 person who can't speak English correcting other person's English.
     His original sentence did not need an "it's" added to it, he was missing some punctuation but that was it. Your modification completely changes the context of the statement. New rule necessary: Refrain from trying to change another's sentences when you cannot speak so well in the first place.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview