A website for every gema-assaultcube fan
 
HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  

Share | 
 

 Lua Onplayersaytext Changes.

View previous topic View next topic Go down 
AuthorMessage
Park



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

Gema stats
farthest jump:

PostSubject: 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.
Back to top Go down
View user profile http://mgpmax.dyndns.org
Sveark



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

PostSubject: 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.
Back to top Go down
View user profile http://sveark.info/ac
Park



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

Gema stats
farthest jump:

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

great!
Back to top Go down
View user profile http://mgpmax.dyndns.org
UKnowMe?



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

Gema stats
farthest jump:

PostSubject: 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.
Back to top Go down
View user profile
Park



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

Gema stats
farthest jump:

PostSubject: 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.
Back to top Go down
View user profile http://mgpmax.dyndns.org
UKnowMe?



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

Gema stats
farthest jump:

PostSubject: 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
Back to top Go down
View user profile
Park



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

Gema stats
farthest jump:

PostSubject: 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)
Back to top Go down
View user profile http://mgpmax.dyndns.org
Park



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

Gema stats
farthest jump:

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

Demnach: erst 40 dann 20
Back to top Go down
View user profile http://mgpmax.dyndns.org
Park



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

Gema stats
farthest jump:

PostSubject: 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.
Back to top Go down
View user profile http://mgpmax.dyndns.org
Sponsored content




PostSubject: Re: Lua Onplayersaytext Changes.   Today at 9:56 pm

Back to top Go down
 
Lua Onplayersaytext Changes.
View previous topic View next topic Back to top 
Page 1 of 1

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