English Function Script

7 replies
Goto Page
To the start Previous 1 Next To the start
28.12.12 08:19:07 pm
Up
J_Lucas
User
Offline Off
I'm here because i need know one thing
how make admin functions
like
• !kick
• !ban
• !makect
• !maket
• etc...

because i want make a lua for my server , without server actions and without admin tag
i tryed use 4 admins script , but them causes a bug , double say/talk
now i need an answer of an scripter .
send the code please
28.12.12 08:20:37 pm
Up
omg
User
Offline Off
u know how many times this stupid request has been made?
will code for food
28.12.12 08:22:30 pm
Up
J_Lucas
User
Offline Off
user omg sorry , but if you cant aswer me please dont comment ...
28.12.12 08:23:06 pm
Up
EndDead
User
Offline Off
28.12.12 08:25:10 pm
Up
Fabro
User
Offline Off
@user J_Lucas: delete the other post , dont made doble post
28.12.12 08:26:58 pm
Up
J_Lucas
User
Offline Off
error , my net shutdown when i going post , error
how delete old post ???
edited 1×, last 28.12.12 08:45:37 pm
28.12.12 08:45:03 pm
Up
Suprise
BANNED
Offline Off
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
addhook("say","_say")
function _say(id,txt)
     if txt:lower():sub(1,5) == "!kick" then
          tokick = txt:sub(7,8)
          toreason = txt:sub(9)
          parse("kick "..tokick.." "..toreason)
     elseif txt:lower():sub(1,4) == "!ban" then
          toban = txt:sub(6)
          parse("banusgn "..toban)
          parse("banip "..toban)
     elseif txt:lower():sub(1,7) == "!makect" then
          tomake = txt:sub(9)
          parse("makect "..tomake)
     elseif txt:lower():sub(1,6) == "!maket" then
          tomake = txt:sub(8)
          parse("maket "..tomake)
     end
end


etc..
28.12.12 08:47:45 pm
Up
J_Lucas
User
Offline Off
user Suprise: thanks soo much
To the start Previous 1 Next To the start