Thread: [PI] Help with Yell Doubling up + Mod'cons

Results 1 to 5 of 5
  1. #1 [PI] Help with Yell Doubling up + Mod'cons 
    I came to lurk, ay

    Join Date
    Jul 2011
    Posts
    99
    Thanks given
    4
    Thanks received
    2
    Rep Power
    11


    Idk why but the yell is doubling up, And it says Admin+Owner. How could i change this ?

    Here is my current yell command for owner.
    Admin = P.Rights>3

    Code:
    if (playerCommand.startsWith("yell") && c.memberStatus >= 1 && c.playerRights == 3 && c.playerName.equalsIgnoreCase("Ben")) {
    				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("[@red@Owner@bla@] " + c.playerName + ": @dre@" + Misc.optimizeText(playerCommand.substring(5)));
    					}
    				}
    			}
    Also i can't find the Admin/Mod icons in the sprites folder which means that there server.sided ? how can i change them .
    Reply With Quote  
     

  2. #2  
    I came to lurk, ay

    Join Date
    Jul 2011
    Posts
    99
    Thanks given
    4
    Thanks received
    2
    Rep Power
    11
    Bump
    Reply With Quote  
     

  3. #3  
    Registered Member


    Join Date
    Sep 2010
    Posts
    1,213
    Thanks given
    87
    Thanks received
    159
    Rep Power
    726
    Try this.
    Code:
    	     if (playerCommand.startsWith("yell") && c.playerName.equalsIgnoreCase("ben")) {
    				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("[@red@Owner@bla@] " + c.playerName + ": @dre@" + Misc.optimizeText(playerCommand.substring(5)));
    					}
    				}
                }
    For the crowns you need a cache editor, (toms cache suite) if you dont know how to use, ill show you..
    If i helped you, theres a thanks button,
    Regards,
    ~Santiago.

    If it doesnt works; Pm me.
    MSN: [email protected]
    "“La vida es un suspiro, basta verla diferente para que ya sea mejor”
    -Canserbero


    圣地亚哥

    "You can't buy class, class comes by itself"
    -Zlatan Ibrahimović
    Reply With Quote  
     

  4. #4  
    Registered Member


    Join Date
    Sep 2010
    Posts
    1,213
    Thanks given
    87
    Thanks received
    159
    Rep Power
    726
    Here is the link for toms cache suite: Downloading - suite.zip @ UppIT
    "“La vida es un suspiro, basta verla diferente para que ya sea mejor”
    -Canserbero


    圣地亚哥

    "You can't buy class, class comes by itself"
    -Zlatan Ibrahimović
    Reply With Quote  
     

  5. #5  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    You have probably placed two if (cmd.equals("yell")'s
    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. Replies: 50
    Last Post: 10-07-2015, 04:22 AM
  2. Instant doubling hitting dds [Deltascape]
    By xx k03d xx in forum Tutorials
    Replies: 6
    Last Post: 12-22-2008, 05:07 PM
  3. very easy yell timer can yell once in 5 secs
    By lord jahva in forum Tutorials
    Replies: 13
    Last Post: 07-06-2008, 10:57 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •