Forum

> > Trash > How?
Forums overviewTrash overviewLog in to reply

English How?

2 replies
To the start Previous 1 Next To the start

closed moved How?

juanicooo
User Off Offline

Quote
how to make a say script for admin,mod or vip
example:!say like that
pls help me

Admin/mod comment

Trashed because of bad title! /DC

old Re: How?

useigor
User Off Offline

Quote
1.) Try to use google
2.) Try to search in CS2D folder √
3.) Try to find admin script in script category
4.) Try to search on cs2d.com

√ - recommend this way.

old Re: How?

Starkkz
Moderator 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
-- Initialization of the hook
addhook("say","sayHook")

-- Here goes the hook function
function sayHook(id,text)
	-- parameters: id, text
	-- id: the player who said this
	-- text: the message that the player said
	
	if string.sub(text, 1, 1) == "!" then
		-- check the first character of the text

		if text == "!say" then
			-- player used "!say" in chat

			msg("A player used !say")
		else
			-- unknown command used

			msg2(id, "Unknown command")
		end
	end
end
There, you have to modify it as you wish.
To the start Previous 1 Next To the start
Log in to replyTrash overviewForums overview