07.02.2012, 17:51
Quote:
It depends on how far you want to go. The code above (apart from ignoring that you were using "foreach" and "format") will send messages of a certain form to a certain set of players. If you want to send them to another set of players or in another form you will need another function (and hence will need one for every possible combination). Or you can try and generalise your code (or get a library) so that you only need one function that can do it all for you (though it would be a more complex function).
|
The message must be defined in the cmd that is executed,