Forum

> > CS2D > Scripts > Im still inexperienced at this
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Im still inexperienced at this

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Im still inexperienced at this

BrunoRZ
User Off Offline

Zitieren
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 ?

alt Re: Im still inexperienced at this

Vectarrio
User Off Offline

Zitieren
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

alt Re: Im still inexperienced at this

Vectarrio
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht