Project Insanity base SERVER MESSAGE command [PI]

View previous topic View next topic Go down

Project Insanity base SERVER MESSAGE command [PI]

Post  Nitro on Wed Mar 16, 2011 4:13 am

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



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)));
               }
            }
         }
avatar
Nitro
Admin
Admin

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

http://rsps-creation.forumotion.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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