gytisan Posted March 10, 2012 Share Posted March 10, 2012 Hey MTA I need small help. I need two types of messages Type 1 player types /brb in chat Ant it writes PlayerName says Be Right Back Type 2 player writes /bb OtherPlayer like. /bb Simon And it writes in chat PlayerName Says Bye Bye to Simon Thanks Link to comment
Kenix Posted March 10, 2012 Share Posted March 10, 2012 https://wiki.multitheftauto.com/wiki/AddCommandHandler https://wiki.multitheftauto.com/wiki/OutputChatBox https://wiki.multitheftauto.com/wiki/Scr ... troduction Link to comment
gytisan Posted March 10, 2012 Author Share Posted March 10, 2012 Kenix Give me 1 example for /brb please Link to comment
Kenix Posted March 10, 2012 Share Posted March 10, 2012 Server side addCommandHandler ( 'brb', function( uPlayer ) outputChatBox( getPlayerName( uPlayer ) .. ' Says Bye Bye to Simon', root, 255, 255, 255 ) end ) 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