Forum

> > CS2D > Scripts > Say script issue
Forums overviewCS2D overview Scripts overviewLog in to reply

English Say script issue

7 replies
To the start Previous 1 Next To the start

old Say script issue

SuperKHALED
User Off Offline

Quote
Admin and vip can't use commands !help , !pm unlike the normal players with no tags

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
addhook("say","say")
function say(id,txt,arguments)
if (player(id,"team")==1) then
color[id] = "255000000"
else
if (player(id,"team")==2) then
color[id] = "050150255"
else
color[id] = "255220000"
end
end
if (txt:sub(1,3)=="!pm") then
msg2(txt:sub(5,6),"\169255255000"..player(id,"name")..": ".."\169255255255"..txt:sub(7,100).."")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Message sent successful")
return 1
end
if vip[id] == 1 then
if (player(id,"health")>0) then
msg("\169"..color[id]..""..player(id,"name").." \169190190190[VIP]:\169255220000 "..txt)
return 1
else
if vip[id] == 1 then
if (player(id,"health")==0) then
msg("\169"..color[id]..""..player(id,"name").." \169190190190[VIP]\169255220000 *DEAD*: "..txt)
return 1
end
end
end
end
if admin[id] == 1 then
if (player(id,"health")>0) then
msg("\169"..color[id]..""..player(id,"name").." \169255255255[Admin]:\169255220000 "..txt)
return 1
else
if admin[id] == 1 then
if (player(id,"health")==0) then
msg("\169"..color[id]..""..player(id,"name").." \169255255255[Admin]\169255220000 *DEAD*: "..txt)
return 1
end
end
end
end
if (txt=="!help") then
if admin[id] == 1 then
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!help")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!rs")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!bringall")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!mute \169000255000<id>")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!unmute \169000255000<id>")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!kick \169000255000<id> <reason>")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!ban \169000255000<id>")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!kill \169000255000<id>")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!killall")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!freeze \169000255000<id>")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!unfreeze \169000255000<id>")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!goto \169000255000<id>")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!bring \169000255000<id>")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!rcon \169000255000<command>")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!pm \169000255000<id> <message>")
return 1
else
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!help")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!rscore")
msg2(id,"\169255255000[ Information ]: ".."\169000255000Say \169255255255!pm \169000255000<id> <message>")
return 1
end
end
end

anyhelp?
edited 1×, last 17.04.20 09:11:59 pm

old Re: Say script issue

SuperKHALED
User Off Offline

Quote
user Marcell has written
Any errors at least? We can't just magically find it for you.


Admin and vip can't use commands !help , !pm unlike the normal players with no tags

old Re: Say script issue

Marcell
Super User Off Offline

Quote
user SuperKHALED has written
user Marcell has written
Any errors at least? We can't just magically find it for you.


Admin and vip can't use commands !help , !pm unlike the normal players with no tags


I meant like console errors upon you say !pm or such. You should know basic debug stuffs, even if you don't understand the script itself. Understanding the error leads you to use Google which leads to fix the script by yourself.

old Re: Say script issue

Cure Pikachu
User Off Offline

Quote
As I look at it... so messy
And yeah, user Marcell has a point as well.
Code >

P.S. I saw you bumping the thread
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview