gema
Would you like to react to this message? Create an account in a few clicks or log in to continue.


A website for every gema-assaultcube fan
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log in  

 

 Lua Onplayersaytext Changes.

Go down 
3 posters
AuthorMessage
Park

Park


Messages : 272
Joined/Date d'inscription : 2011-11-04

Gema stats
farthest jump:

Lua Onplayersaytext Changes. Empty
PostSubject: Lua Onplayersaytext Changes.   Lua Onplayersaytext Changes. EmptySun 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.
Back to top Go down
https://t.me/joinchat/APe7MT2YpmxobCH8tg7JJw
Sveark

Sveark


Messages : 124
Joined/Date d'inscription : 2011-05-02
Age : 30
Location/Localisation : Russia

Lua Onplayersaytext Changes. Empty
PostSubject: Re: Lua Onplayersaytext Changes.   Lua Onplayersaytext Changes. EmptyThu Oct 11, 2012 12:04 am

It isn't possible in 1.3, but it will be in 1.4.
Back to top Go down
http://sveark.info/ac
Park

Park


Messages : 272
Joined/Date d'inscription : 2011-11-04

Gema stats
farthest jump:

Lua Onplayersaytext Changes. Empty
PostSubject: Re: Lua Onplayersaytext Changes.   Lua Onplayersaytext Changes. EmptyThu Oct 11, 2012 3:12 am

great!
Back to top Go down
https://t.me/joinchat/APe7MT2YpmxobCH8tg7JJw
UKnowMe?




Messages : 51
Joined/Date d'inscription : 2012-10-08
Location/Localisation : Germany

Gema stats
farthest jump:

Lua Onplayersaytext Changes. Empty
PostSubject: Re: Lua Onplayersaytext Changes.   Lua Onplayersaytext Changes. EmptyThu 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.
Back to top Go down
Park

Park


Messages : 272
Joined/Date d'inscription : 2011-11-04

Gema stats
farthest jump:

Lua Onplayersaytext Changes. Empty
PostSubject: Re: Lua Onplayersaytext Changes.   Lua Onplayersaytext Changes. EmptyThu 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.
Back to top Go down
https://t.me/joinchat/APe7MT2YpmxobCH8tg7JJw
UKnowMe?




Messages : 51
Joined/Date d'inscription : 2012-10-08
Location/Localisation : Germany

Gema stats
farthest jump:

Lua Onplayersaytext Changes. Empty
PostSubject: Re: Lua Onplayersaytext Changes.   Lua Onplayersaytext Changes. EmptyThu 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
Back to top Go down
Park

Park


Messages : 272
Joined/Date d'inscription : 2011-11-04

Gema stats
farthest jump:

Lua Onplayersaytext Changes. Empty
PostSubject: Re: Lua Onplayersaytext Changes.   Lua Onplayersaytext Changes. EmptyThu Oct 11, 2012 2:15 pm

spawn (integer target_cn, integer health, integer armour, integer ammo, integer mag, integer weapon, integer gamemode, integer primaryweapon)
Back to top Go down
https://t.me/joinchat/APe7MT2YpmxobCH8tg7JJw
Park

Park


Messages : 272
Joined/Date d'inscription : 2011-11-04

Gema stats
farthest jump:

Lua Onplayersaytext Changes. Empty
PostSubject: Re: Lua Onplayersaytext Changes.   Lua Onplayersaytext Changes. EmptyThu Oct 11, 2012 2:16 pm

Demnach: erst 40 dann 20
Back to top Go down
https://t.me/joinchat/APe7MT2YpmxobCH8tg7JJw
Park

Park


Messages : 272
Joined/Date d'inscription : 2011-11-04

Gema stats
farthest jump:

Lua Onplayersaytext Changes. Empty
PostSubject: Re: Lua Onplayersaytext Changes.   Lua Onplayersaytext Changes. EmptyWed 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.
Back to top Go down
https://t.me/joinchat/APe7MT2YpmxobCH8tg7JJw
Sponsored content





Lua Onplayersaytext Changes. Empty
PostSubject: Re: Lua Onplayersaytext Changes.   Lua Onplayersaytext Changes. Empty

Back to top Go down
 
Lua Onplayersaytext Changes.
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
gema :: International :: Lua-
Jump to: