English !bring no works

1 reply
Goto Page
To the start Previous 1 Next To the start
26.04.14 05:01:24 am
Up
superpegamento
User
Offline Off
my cmd !bring no works

Code:
1
2
3
4
5
6
7
addhook("say" , "testing")
function testing(id,message)
if message: lower (): sub (1,6) == "!bring" then
parse("setpos "..id.." "..player(1,"x").." "..player(1,"y"))
return 1
end
end
26.04.14 06:47:53 am
Up
Code:
1
2
3
4
5
6
7
8
9
addhook("say","_say")
function _say(id,txt)
     if string.sub(txt,1,6)=="!bring" then
          local x = player(id,"x")
          local y = player(id,"y")
          parse("setpos "..string.sub(txt,8,string.len(txt)).." "..x.." "..y)
          return 1
     end
end


You need search.
To the start Previous 1 Next To the start