| Lua Onplayersaytext Changes. | |
|
|
Author | Message |
---|
Park
Messages : 272 Joined/Date d'inscription : 2011-11-04
Gema stats farthest jump:
| Subject: Lua Onplayersaytext Changes. Sun Oct 07, 2012 12:55 pm | |
| Hi guys,
Svaerk can you please let me differe /me and /say and /say % (team msgs)?
maybe: OnPlayerSayText(cn, text, ?!?!?)
or if its clientsided:
how can i check if the command /me or /say is used? (Team Msgs are not clientsided.)
Thanks. | |
|
| |
Sveark
Messages : 124 Joined/Date d'inscription : 2011-05-02 Age : 30 Location/Localisation : Russia
| Subject: Re: Lua Onplayersaytext Changes. Thu Oct 11, 2012 12:04 am | |
| It isn't possible in 1.3, but it will be in 1.4. | |
|
| |
Park
Messages : 272 Joined/Date d'inscription : 2011-11-04
Gema stats farthest jump:
| Subject: Re: Lua Onplayersaytext Changes. Thu Oct 11, 2012 3:12 am | |
| | |
|
| |
UKnowMe?
Messages : 51 Joined/Date d'inscription : 2012-10-08 Location/Localisation : Germany
Gema stats farthest jump:
| Subject: Re: Lua Onplayersaytext Changes. Thu Oct 11, 2012 12:26 pm | |
| Btw, I did wanted to create a new topic, but when I call spawn() on a cn twice, i have to swap the ammo and mag parameters, otherwise he will spawn with 40 - 20, not 20 - 40 with Assault Aifle, or 60 - 30 instead of 30 - 60 with submachine gun. | |
|
| |
Park
Messages : 272 Joined/Date d'inscription : 2011-11-04
Gema stats farthest jump:
| Subject: Re: Lua Onplayersaytext Changes. Thu Oct 11, 2012 2:05 pm | |
| noep. bei mir nicht. bei mir ist alles normal (...) spawn ( ich, 100, 0, 40, 20, 6 ) geht wunderbar. egal wie oft. | |
|
| |
UKnowMe?
Messages : 51 Joined/Date d'inscription : 2012-10-08 Location/Localisation : Germany
Gema stats farthest jump:
| Subject: Re: Lua Onplayersaytext Changes. Thu Oct 11, 2012 2:07 pm | |
| Naja, wenn ich die parameter richtig verstanden habe, dann spawne ich doch mit spawn(cn, 100, 0, 20, 40, GUN_ASSAULT, GM_CTF, GUN_ASSAULT) mit 20 schuss und 40 im magazin, oder nicht? zumindest klappt es beim ersten mal | |
|
| |
Park
Messages : 272 Joined/Date d'inscription : 2011-11-04
Gema stats farthest jump:
| Subject: Re: Lua Onplayersaytext Changes. Thu Oct 11, 2012 2:15 pm | |
| spawn (integer target_cn, integer health, integer armour, integer ammo, integer mag, integer weapon, integer gamemode, integer primaryweapon) | |
|
| |
Park
Messages : 272 Joined/Date d'inscription : 2011-11-04
Gema stats farthest jump:
| Subject: Re: Lua Onplayersaytext Changes. Thu Oct 11, 2012 2:16 pm | |
| | |
|
| |
Park
Messages : 272 Joined/Date d'inscription : 2011-11-04
Gema stats farthest jump:
| Subject: Re: Lua Onplayersaytext Changes. Wed Oct 17, 2012 5:53 pm | |
| Heres another problem of mine, i hope you can help me with this weak information. but it should work:
local lolstring = " \f7 " ..getname(pid).. " \f1L\f2o\f3L\f4e\f5d\f6! \f0" lala = string.gsub(lala, "^l[o]+l.*", lolstring)
it puts text through but it doesnt find "lol" neither any other pattern i put at "^l[o]+l.*" << this position. "^l[o]+l.*" works. it has succsessfully been used before. its copied from the chatbot. | |
|
| |
Sponsored content
| Subject: Re: Lua Onplayersaytext Changes. | |
| |
|
| |
| Lua Onplayersaytext Changes. | |
|