Forum

> > CS2D > Scripts > !bring no works
Forums overviewCS2D overview Scripts overviewLog in to reply

English !bring no works

1 reply
To the start Previous 1 Next To the start

old !bring no works

superpegamento
User Off Offline

Quote
my cmd !bring no works

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

old Re: !bring no works

sheeL
User Playing CS2D

Quote
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
Log in to reply Scripts overviewCS2D overviewForums overview