Forum

> > Trash > How?
ForenübersichtTrash-ÜbersichtEinloggen, um zu antworten

Englisch How?

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

geschlossen verschoben How?

juanicooo
User Off Offline

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

Admin/Mod Kommentar

Trashed because of bad title! /DC

alt Re: How?

useigor
User Off Offline

Zitieren
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.

alt Re: How?

Starkkz
Moderator Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenTrash-ÜbersichtForenübersicht