English How?

2 replies
Goto Page
To the start Previous 1 Next To the start
27.04.13 06:00:27 pm
Up
juanicooo
User
Offline Off
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
27.04.13 06:37:51 pm
Up
useigor
User
Offline Off
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.
27.04.13 06:41:03 pm
Up
Starkkz
Moderator
Offline Off
Code:
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.
lol
To the start Previous 1 Next To the start