golanu21 Posted February 3, 2013 Share Posted February 3, 2013 how i creeate a newbie chat ? give me the codes for lua .. Thx Link to comment
Anderl Posted February 3, 2013 Share Posted February 3, 2013 What are you talking about? Explain it breefly. And we aren't going to give you any code, we'll only help you fixing errors that you might be having or give you a little help with what functions you should use to start. Link to comment
golanu21 Posted February 3, 2013 Author Share Posted February 3, 2013 i want to create a chat for newbie.... Link to comment
Anderl Posted February 3, 2013 Share Posted February 3, 2013 "A chat for newbie" - and what does that mean? Nobody understands what is a "chat for newbies", you must explain what do you want to do. Link to comment
golanu21 Posted February 3, 2013 Author Share Posted February 3, 2013 ok., so... i want to create a new chat..., where i want to type just players who have not played 5 h Link to comment
Anderl Posted February 3, 2013 Share Posted February 3, 2013 Do you already have anything that counts the time players play in the server? Link to comment
Anderl Posted February 3, 2013 Share Posted February 3, 2013 Well, now you'll need to use the event onPlayerChat. It gets triggered when someone types something in the chat, there you should check if the player has been in the server less than 5 hours, if he does, you should do a for loop or whatever you want to find out the list of other players that also played for less than 5 hours and output the message ONLY for them - otherwise, output it to everybody ( simply do nothing ). You'll also need cancelEvent function to stop the message from being outputted for everybody if the guy played for less than 5 hours, otherwise it will output for everybody and for the ones who played less than 5 hours. Anyway, if you don't know LUA, even if this is too basic, you might not be able to start it, if you really don't know LUA, you can start here: viewtopic.php?f=148&t=40809 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now