Norhy Posted December 29, 2012 Share Posted December 29, 2012 Hey guys. How to make a outputChatBox message visible only for the player who typed a Command? Thanks. Link to comment
Castillo Posted December 29, 2012 Share Posted December 29, 2012 addCommandHandler ( "hey", function ( thePlayer ) outputChatBox ( "Hey!", thePlayer ) end ) Link to comment
Tete omar Posted December 29, 2012 Share Posted December 29, 2012 (edited) addCommandHandler ( "hey", function ( thePlayer ) outputChatBox ( "Hey!", thePlayer ) end ) or he can simply do it client side , it'll output this message too without needing of 'thePlayer' argument unless he wants to do something that can't be in the client side and vice versa. Edited December 29, 2012 by Guest Link to comment
Castillo Posted December 29, 2012 Share Posted December 29, 2012 But if he wants to use it server side, he'll have to use the player argument. Link to comment
Tete omar Posted December 29, 2012 Share Posted December 29, 2012 Of course , and same thing client side. Link to comment
Castillo Posted December 29, 2012 Share Posted December 29, 2012 addCommandHandler has no player argument client side. Link to comment
Tete omar Posted December 29, 2012 Share Posted December 29, 2012 I know , but i implied that if he needs to use addCommandHandler client side, he'll have to and same thing server side... Link to comment
Norhy Posted December 29, 2012 Author Share Posted December 29, 2012 I need this in Server-side, not Client-side. Thanks. Link to comment
Tete omar Posted December 29, 2012 Share Posted December 29, 2012 Your choice.. , anyway ur welcome. Link to comment
Castillo Posted December 29, 2012 Share Posted December 29, 2012 I need this in Server-side, not Client-side. Thanks. You're welcome. 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