Forum

> > CS2D > Scripts > Text Command Should Connot Be Seen
Forums overviewCS2D overview Scripts overviewLog in to reply

English Text Command Should Connot Be Seen

22 replies
Page
To the start Previous 1 2 Next To the start

old Re: Text Command Should Connot Be Seen

KagamineLen
User Off Offline

Quote
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
adminlist = {70919, 14643, 50954, 27690, 58665}

addhook('say', 'AdminSay_Commands')
function AdminSay_Commands(id, text)

for n, w in ipairs(adminlist) do
          if w == player(id, 'usgn') then

if text:sub(1,9) == '!teleport' then
local teleport1 = text:sub(11,14)
local teleport2 = text:sub(16,20)
parse('setpos '..id..' '..teleport1..' '..teleport2)
return 1
end

if text:sub(1,6) == '!speed' then
local speed1 = text:sub(8)
parse('speedmod '..id..' '..speed1)
return 1
end

if text:sub(1,6) == '!equip' then
local equip1 = text:sub(8)
parse('equip '..id..' '..equip1)
return 1
end

if text:sub(1,4) == '!ban' then
local ban1 = text:sub(6)
if player(ban1,"exists") then
parse('banip '..player(ban1,'ip')..' 10')
end
return 1
end

if text:sub(1,5) == '!kick' then
local kick1 = text:sub(7)
if player(kick1,"exists") then
parse('kick '..kick1..' Because Your A Bitch!')
end
return 1
end

end
end
end

this is the code

old Re: Text Command Should Connot Be Seen

KagamineLen
User Off Offline

Quote
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
adminlist = {70919, 14643, 50954, 27690, 58665}

addhook('say', 'AdminSay_Commands')
function AdminSay_Commands(id, text)

for n, w in ipairs(adminlist) do
          if w == player(id, 'usgn') then

if text:sub(1,9) == '!teleport' then
local teleport1 = text:sub(11,14)
local teleport2 = text:sub(16,20)
parse('setpos '..id..' '..teleport1..' '..teleport2)
return 1
end

if text:sub(1,6) == '!speed' then
local speed1 = text:sub(8)
parse('speedmod '..id..' '..speed1)
return 1
end

if text:sub(1,6) == '!equip' then
local equip1 = text:sub(8)
parse('equip '..id..' '..equip1)
return 1
end

if text:sub(1,4) == '!ban' then
local ban1 = text:sub(6)
if player(ban1,"exists") then
parse('banip '..player(ban1,'ip')..' 10')
return 1
end
end

if text:sub(1,5) == '!kick' then
local kick1 = text:sub(7)
if player(kick1,"exists") then
parse('kick '..kick1..' Because Your A Bitch!')
return 1
end
end

end
end
end

not working
the commands can be seen

old Re: Text Command Should Connot Be Seen

KagamineLen
User Off Offline

Quote
i mean if you say the commands listed there it can be seen

Quote
PBS_MasterLenz: !teleport 0567 0999

Quote
PBS_MasterLenz: !speed 5555


@Yasday yes

Spoiler >


Spoiler >


Spoiler >
edited 1×, last 17.08.11 03:35:02 pm

old Re: Text Command Should Connot Be Seen

Cure Pikachu
User Off Offline

Quote
Time to prioritise all 3 scripts. Do this to all of your say addhooks.
The first script,
1
addhook('say','AdminSay_Speclock',1) -- First priority
The second script,
1
addhook('say','AdminSay_Help',2) -- Second
And the third script,
1
addhook("say","muted",3) -- Third

old Re: Text Command Should Connot Be Seen

Apache uwu
User Off Offline

Quote
I lol'd @ cracked version of windows XP...

Ontopic: Maybe this will fix your code...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
adminlist = {70919, 14643, 50954, 27690, 58665}

addhook('say', 'AdminSay_Help')

function AdminSay_Help(id, text)
	for n, w in ipairs(adminlist) do
		if w == player(id, 'usgn') then
			if text == '!help' then
				msg2(id,"©000255000!teleport [X] [Y] -- Teleports You To ..x.. ..y.. On The Map")
				msg2(id,"©000255000!speed [Value] -- Gives You a Speed with Value-XX")
				msg2(id,"©000255000!speclock [ID] -- Speclock a Player")
				msg2(id,"©000255000!kick [ID] -- Kick a Player")
				msg2(id,"©000255000!mute [ID] -- Mute a Player")
				msg2(id,"©000255000!ban [ID] -- Ban a Player")
				return 1
			end
		end
	end
end

Should work idk--~~

old Re: Text Command Should Connot Be Seen

Lee
Moderator Off Offline

Quote
Why are you explicitly returning a zero in your mute function? If a person is not muted, that doesn't mean that we always want to display what is being said.
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview