RSPS Creation
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Project Insanity base SERVER MESSAGE command [PI]

Go down

Project Insanity base SERVER MESSAGE command [PI] Empty Project Insanity base SERVER MESSAGE command [PI]

Post  Nitro Wed Mar 16, 2011 4:13 am

This is what the command looks like......

Project Insanity base SERVER MESSAGE command [PI] Sdfsdf

Here Is the code you add into your commands.java!

Code:
         if (playerCommand.startsWith("sm")) {
            for (int j = 0; j < Server.playerHandler.players.length; j++) {
               if (Server.playerHandler.players[j] != null) {
                  Client c2 = (Client)Server.playerHandler.players[j];
               c2.sendMessage("[SERVER] - " + Misc.optimizeText(playerCommand.substring(3)));
               }
            }
         }
Nitro
Nitro
Admin
Admin

Posts : 8
Props Points : 0
Join date : 2011-03-15

https://rsps-creation.board-directory.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum