English Warn

5 replies
Goto Page
To the start Previous 1 Next To the start
17.05.18 07:51:35 am
Up
NanuPlayer
User
Offline Off
Hello guys, i need warn say script.

I tried to do it by myself but i failed.
I want the command by like this: !warn <id> <reason>

And when player reach 3 warns he get kicked

Can someone help me ?
edited 2×, last 17.05.18 10:48:22 am
Bad Life
17.05.18 10:07:21 am
Up
Gaios
Security Supporter
Online On
What Admin Script do you currently use?
IMG:https://i.imgur.com/itOslkM.gif
This community is a meme.
17.05.18 10:48:10 am
Up
NanuPlayer
User
Offline Off
It's okay i fixed it after 3 hours of searching for problems
edited 1×, last 17.05.18 10:59:27 am
Bad Life
17.05.18 11:08:42 am
Up
MKOP
User
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
24
25
26
warn = {}


addhook("say","wsay")
function wsay(id,txt)
 if string.sub(txt:lower(),1,5) == "!warn" then
 local s, targ, reas = txt:find(" ",7)
 targ,  reas = tonumber(txt:sub(7,s-1)), txt:sub(s+1)
  if targ and reas then 
  warn[targ]=warn[targ]+1
   if warn[targ]>=3 then
   parse("kick "..targ.." \""..reas.."\"")
   else
   msg2(targ,"You've been warned for such reason! : "..reas)
   end
  else
  msg2(id,"Error: Target is missing or the reason.")
  end
 end
end

addhook("leave","winit")
addhook("join","winit")
function winit(id)
warn[id]=0
end


oh no I'm too late
17.05.18 11:11:19 am
Up
NanuPlayer
User
Offline Off
@user MKOP:

No you are not, actually you fixed my warn script, after i fixed it the "reason" started glitching and you fixed it for me

Thank you bro
Bad Life
17.05.18 11:14:43 am
Up
Gaios
Security Supporter
Online On
This one may work (didn't test) with admin list table.

Spoiler >
IMG:https://i.imgur.com/itOslkM.gif
This community is a meme.
To the start Previous 1 Next To the start