Forum

> > CS2D > Scripts > Say Command >@<
Forums overviewCS2D overview Scripts overviewLog in to reply

English Say Command >@<

11 replies
To the start Previous 1 Next To the start

old Say Command >@<

deadlox995
User Off Offline

Quote
Guy can you guy help me with a lua that can use say Command For admin like :
@say <msg>
@lock
@speedmod
@useradd <USGN,lvl admin,color>
@equip
@whois
@restart
@mp_infammo
@.... likee i'm can add more Command pls help me guy!!!

old Re: Say Command >@<

M0BSTAZ
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
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
admin = {xxxxx} <-- Put your USGN here

	addhook("say","allspec")
	function allspec(id,txt)
	for _, usgn in ipairs(admin) do
	if player(id,'usgn') == usgn then
	if(txt=="!allspec") then
	parse("makespec 1")
	parse("makespec 2")
	parse("makespec 3")
	parse("makespec 4")
	parse("makespec 5")
	parse("makespec 6")
	parse("makespec 7")
	parse("makespec 8")
	parse("makespec 9")
	parse("makespec 10")
	parse("makespec 11")
	parse("makespec 12")
	parse("makespec 13")
	parse("makespec 14")
	parse("makespec 15")
	end
	end
	end
	end

addhook("say", "speedpl")
	function speedpl(id, txt)
	for _, usgn in ipairs(admin) do
	if player(id,'usgn') == usgn then
	if txt:lower():sub(1, 5) == "@kick" then
	local numid = tonumber(txt:sub(6))
	if player(numid, "exists") then
	parse("kick " .. numid)
	end
	end
	end
	end
	for _, usgn in ipairs(admin) do
	if player(id,'usgn') == usgn then
	if txt:lower():sub(1, 3) == "@maket" then
	local pl1 = tonumber(txt:sub(4))
	if player(pl1, "exists") then
	parse("maket " .. pl1)
	end
	end
	end
	end
	for _, usgn in ipairs(admin) do
	if player(id,'usgn') == usgn then
	if txt:lower():sub(1, 4) == "@makect" then
	local pl2 = tonumber(txt:sub(5))
	if player(pl2, "exists") then
	parse("makect " .. pl2)
	end
	end
	end
	end
	for _, usgn in ipairs(admin) do
	if player(id,'usgn') == usgn then
	if txt:lower():sub(1, 3) == "@makespec" then
	local pl3 = tonumber(txt:sub(4))
	if player(pl3, "exists") then
	parse("makespec " .. pl3)
	end
	end
	end
	end
	end
	addhook("say","sayrr")
	function sayrr(id,txt)
	for _, usgn in ipairs(admin) do
	if player(id,'usgn') == usgn then
	if(txt=="@rr") then
	parse("restart")
	return 1
	end
	end
	end
	end

addhook("minute","advertise")
function advertise()
msg("©255255000www.unrealsoftware.de")
	end
end

old Re: Say Command >@<

AlcatrazZ
BANNED Off Offline

Quote
user M0BSTAZ has written
@useradd <USGN,lvl admin,color>

It's not easy. I never make some hard scripts for free. (I don't have enought time.)

old Re: Say Command >@<

Mora
User Off Offline

Quote
@user AlcatrazZ: It's not easy. I never make some hard scripts for free. (I don't have enought time.)
you think someone will buy your script?even if this hard? huh... you`re funny

old Re: Say Command >@<

M0BSTAZ
User Off Offline

Quote
@user AlcatrazZ: this is easy script and you said it's hard script and you don't have enough time to make that

EDIT:

@user Mora: you think someone will buy your script?even if this hard? huh... you`re funny

YEP! CAN SOMEONE BUY THE SCRIPT OF THE PRO SCRIPTER!

old Re: Say Command >@<

Rainoth
Moderator Off Offline

Quote
user M0BSTAZ has written
@user AlcatrazZ: this is easy script and you said it's hard script and you don't have enough time to make that
YEP! CAN SOMEONE BUY THE SCRIPT OF THE PRO SCRIPTER!


Making all those commands is easy. Saving takes a bit more effort. He meant that. It's definitely easier to write 5 say hooks (which is really dumb actually) for commands than make saving system to add administrators and moderators to your server. When all your lines aren't tabbed the same, you can try to prove your points. Until then, dear sir, don't.

EDIT : After looking through user M0BSTAZ script, I can say that it won't work properly.

All spec will make IDs up to 15 as spectators. Use loop with player's table, check if the id isn't the one calling the command, then make spectators the rest.

The commands are pretty wrong. Well, at least the FIRST one will work if you say "@kickID" though I'd preffer "@kick ID" (with a space)

Now the funny part, the way you wrote it, it is like
"if first 3 said letters are equal to a 6 letter command, then" x) And that stuff is in all of your commands.

I'd strongly advise making string splitting. It's really easy when one uses it.

@user Mora: I'm sure there'd be people who'd pay to get scripts. I don't mean easy script like this, but a good mod of sorts. It's possible.

old Re: Say Command >@<

Mora
User Off Offline

Quote
@user Rainoth: is a pro scripter, but he will not take money, just need good ask him, this is a very good guy. This greedy people are looking for a benefit, but he is not.

old Re: Say Command >@<

Avo
User Off Offline

Quote
I actually have to disagree. When someone offers me to pay for my work; I do not refuse. Buy I don't like to ask for paying me for simple scripts like this one.

It's not exactly what you wanted. It's basic rank'n'command script for servers. I made it easy to understand. Edit it (if you can't, let the others do that) and enjoy.
Code >

old Re: Say Command >@<

AlcatrazZ
BANNED Off Offline

Quote
Yeah, but it dont have a useradd comand :D.
PS. I meant that I didnt had desire to do the command.

old Re: Say Command >@<

Stinger
User Off Offline

Quote
All u need is in this file, there is all command,admin lvl,and useradd too(in new version)

file File does not exist (14448):
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview