Forum

> > CS2D > Scripts > Im still inexperienced at this
Forums overviewCS2D overview Scripts overviewLog in to reply

English Im still inexperienced at this

5 replies
To the start Previous 1 Next To the start

old Im still inexperienced at this

BrunoRZ
User Off Offline

Quote
addhook("movetile","walkover")
function walkover(id,x,y)
     if (x==89 and y==21) then
          parse("sv_msg2 "..id.." Obrigado por ajudar com a segurança da cidade")
          msg(player(id,"name").." se tornou membro da polícia@C")
               end
          return 1
     end
end


Idk what is wrong whit the script, because i have like a mental block to learn it, i try but i cant, can someone correct it to me ?

old Re: Im still inexperienced at this

Vectarrio
User Off Offline

Quote
sv_msg 2nd parameter must have "". But I recommend you to use msg2 lua function:
1
2
3
4
5
6
7
8
9
addhook("movetile","walkover")
function walkover(id,x,y)
     if (x==89 and y==21) then
          msg2(id,"Obrigado por ajudar com a segurança da cidade")
          msg(player(id,"name").." se tornou membro da polícia@C")
               end
          return 1
     end
end

old Re: Im still inexperienced at this

Vectarrio
User Off Offline

Quote
1
2
3
4
5
6
7
8
addhook("movetile","walkover")
function walkover(id,x,y)
     if (x==89 and y==21) then
          msg2(id,"Obrigado por ajudar com a segurança da cidade")
          msg(player(id,"name").." se tornou membro da polícia@C")
     end
          return 1
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview