Thread: Requesting a ::update ## command [508] Codeusa rep++ look inside for info.

Results 1 to 7 of 7
  1. #1 Requesting a ::update ## command [508] Codeusa rep++ look inside for info. 
    Registered Member
    Join Date
    May 2009
    Posts
    90
    Thanks given
    0
    Thanks received
    0
    Rep Power
    72
    Well on my 317 i had a while back there was an ::update (how many seconds here)
    Could someone help me do the same thing on my 508. Its Codeusa Packaged. Ive tried one of the tuts in the tut section but it doesnt have the count down in bottom right/left of screen rep++ for help thanks guys!
    Reply With Quote  
     

  2. #2  
    Registered Member
    §ympath„'s Avatar
    Join Date
    Nov 2009
    Posts
    79
    Thanks given
    0
    Thanks received
    1
    Rep Power
    255
    Open player.java and add

    Code:
    	public boolean updatez = false;
    	public int proupdate = 0;
    then search for processTimers() and under a bracket add

    Code:
    		if (proupdate > 0) {
    		proupdate--;
    		updatez = true;
    		}
    		if (proupdate > 1) {
    		this.getActionSender().setOverlay(this, 524);
    		this.getActionSender().setString(this, "Update!", 524, 1);
    		this.getActionSender().setString(this, "Update in "+proupdate+" seconds", 524, 2);
    		}
    		if (updatez) {
    		this.getActionSender().setOverlay(this, 524);
    		this.getActionSender().setString(this, "Update!", 524, 1);
    		this.getActionSender().setString(this, "Update in "+proupdate+" seconds", 524, 2);
    		}
    and if you want the command to disconnect players at 0 add

    Code:
    	if (proupdate == 0 && updatez == true) {
    			System.out.println("Update Complete.");	
    			System.out.println("Update Complete.");		
    			this.disconnected[50] = true;
    		}
    There's the command -- ::update "time"

    Code:
    			if (cmd[0].equals("testupdate") && p.rights >= 2) {
    				for (Player pl : Server.engine.players) {
    				        if (pl != null) {	
    					pl.proupdate = Integer.parseInt(cmd[1]);
    					}
    				}
    			}
    Hope that help you!

    ~{§ympath„}~
    Reply With Quote  
     

  3. #3  
    T A M K A
    Guest
    Fail
    Reply With Quote  
     

  4. #4  
    Registered Member
    §ympath„'s Avatar
    Join Date
    Nov 2009
    Posts
    79
    Thanks given
    0
    Thanks received
    1
    Rep Power
    255
    Quote Originally Posted by T A M K A View Post
    Fail
    Right you fail.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Ninja assassin's Avatar
    Join Date
    Oct 2008
    Posts
    1,961
    Thanks given
    217
    Thanks received
    115
    Rep Power
    77
    Quote Originally Posted by §ympath„ View Post
    Open player.java and add

    Code:
    	public boolean updatez = false;
    	public int proupdate = 0;
    then search for processTimers() and under a bracket add

    Code:
    		if (proupdate > 0) {
    		proupdate--;
    		updatez = true;
    		}
    		if (proupdate > 1) {
    		this.getActionSender().setOverlay(this, 524);
    		this.getActionSender().setString(this, "Update!", 524, 1);
    		this.getActionSender().setString(this, "Update in "+proupdate+" seconds", 524, 2);
    		}
    		if (updatez) {
    		this.getActionSender().setOverlay(this, 524);
    		this.getActionSender().setString(this, "Update!", 524, 1);
    		this.getActionSender().setString(this, "Update in "+proupdate+" seconds", 524, 2);
    		}
    and if you want the command to disconnect players at 0 add

    Code:
    	if (proupdate == 0 && updatez == true) {
    			System.out.println("Update Complete.");	
    			System.out.println("Update Complete.");		
    			this.disconnected[50] = true;
    		}
    There's the command -- ::update "time"

    Code:
    			if (cmd[0].equals("testupdate") && p.rights >= 2) {
    				for (Player pl : Server.engine.players) {
    				        if (pl != null) {	
    					pl.proupdate = Integer.parseInt(cmd[1]);
    					}
    				}
    			}
    Hope that help you!

    ~{§ympath„}~
    wow.. leeched it off demon and didnt give no credit?
    [Only registered and activated users can see links. ]
    Btc: 1tpWTbAznzWYh6YpoUJeQ3MDVK56GGJ
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Oct 2009
    Posts
    94
    Thanks given
    0
    Thanks received
    2
    Rep Power
    1
    Quote Originally Posted by pranavninja1 View Post
    wow.. leeched it off demon and didnt give no credit?
    [Only registered and activated users can see links. ]

    It's Leached outa defaultpk
    Reply With Quote  
     

  7. #7  
    Registered Member
    §ympath„'s Avatar
    Join Date
    Nov 2009
    Posts
    79
    Thanks given
    0
    Thanks received
    1
    Rep Power
    255
    I took it from a source i had in my files? So i won't lose my time to search who made the source to give him credit.
    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
  •