Thread: [PI] Help with making command Will Pay

Results 1 to 5 of 5
  1. #1 [PI] Help with making command Will Pay 
    Registered Member
    Join Date
    Jan 2011
    Posts
    2
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I want to make a command where I type ::makesay (playername) (forcedchat)

    I've never done a command like this and I obviously have no idea what I'm doing. This is what I've come up with thus far. I don't know if I'm close or not, perhaps I'm way off. Can anyone tell me what I need to do differently? If anyone manages to get it working properly, I will send 10 dollars to the paypal account you provide.

    Code:
    if (playerCommand.startsWith("makesay")) {			
    String forcedPlayer = playerCommand.substring(8);
    for(int i = 0; i < Config.MAX_PLAYERS; i++) {
    if(Server.playerHandler.players[i] != null) {
    if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(forcedPlayer)) {
    Client c2 = (Client)Server.playerHandler.players[i];
    	}			
                 }
            }
         }
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Oct 2010
    Posts
    1,731
    Thanks given
    56
    Thanks received
    97
    Rep Power
    0
    Ehh.. do you mean like a hail command so when you do ::hail everyone says a specific message that you make?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2010
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    if its a hail command im sure your source has it. then its common sense i would think.
    Reply With Quote  
     

  4. #4  
    Member
    Join Date
    Dec 2010
    Posts
    230
    Thanks given
    5
    Thanks received
    2
    Rep Power
    0
    no lol he means like
    makes a player says anything he wants....
    Lmao
    Reply With Quote  
     

  5. #5  
    Registered Member Comets's Avatar
    Join Date
    Jan 2011
    Posts
    287
    Thanks given
    67
    Thanks received
    30
    Rep Power
    0
    Add my msn. [Only registered and activated users can see links. ]

    When you get on, i'll give you the command.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] need help making command[REP ++]
    By jorjus16 in forum Help
    Replies: 10
    Last Post: 10-14-2010, 05:08 AM
  2. Making a command
    By CarucateŠ in forum Help
    Replies: 5
    Last Post: 07-27-2009, 08:58 PM
  3. help making a command plz help
    By chevyscape in forum Help
    Replies: 5
    Last Post: 06-08-2009, 11:26 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •