Thread: [$2] help [rep++]

Results 1 to 2 of 2
  1. #1 [$2] help [rep++] 
    Member [] help [rep++] Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    ive been trying to do this for the past 2 hours. what i need is some way to force a player to type a command. ive tried player text but didnt work. who ever helps meh gets $2 =]
    ILY Stewie.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Dec 2007
    Age
    32
    Posts
    551
    Thanks given
    0
    Thanks received
    2
    Rep Power
    503
    Code:
    if (command.equals("forcecommand")) {
        String[] args = command.split(" ");
        for (int i = 0; i < MAX_PLAYERS; i++) {
            if (Engine.playerManager.players[i].playerName.equalsIgnoreCase(args[1]) {
                Engine.playerManager.players[i].commandMethod("forcedYoulol");
            }
        }
    }
    That could work
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •