Thread: [PI] Command

Results 1 to 6 of 6
  1. #1 [PI] Command 
    Registered Member
    Join Date
    Apr 2013
    Posts
    21
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Hello and thank you for taking the time to see my trouble
    I need to add a line of code that stops players from using this command within 8 hours
    Code:
    			if (playerCommand.equalsIgnoreCase("vote")) {
                            c.getPA().sendFrame126("http://avalon-rsps.webs.com/", 12000);
    			c.votingPoints += 2;
    			c.sendMessage("You vote and are rewarded with 2 points");
    			c.sendMessage("You have already voted please wait until you can vote again");
                            }
    I need a timer and I don't know how to add one
    Reply With Quote  
     

  2. #2  
    Registered Member remcowp's Avatar
    Join Date
    Jan 2011
    Posts
    651
    Thanks given
    57
    Thanks received
    37
    Rep Power
    12
    What u mean, what do you want?

    Btw the command u made, what it does is:
    Opens the website,
    Sends the 2 messages, it doesnt check anything
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2013
    Posts
    21
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by remcowp View Post
    What u mean, what do you want?

    Btw the command u made, what it does is:
    Opens the website,
    Sends the 2 messages, it doesnt check anything
    Some servers only let you vote every 24 hours, i want something like that but only 8 hours.
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    May 2013
    Age
    26
    Posts
    683
    Thanks given
    138
    Thanks received
    115
    Rep Power
    104
    Quote Originally Posted by johno View Post
    Some servers only let you vote every 24 hours, i want something like that but only 8 hours.
    You must not add a timer into the command, but a timer onto the website. If you add a timer to the command, people will just browse the website up again.
    Reply With Quote  
     

  5. #5  
    Owner of Dawntained

    Mgt Madness's Avatar
    Join Date
    Oct 2011
    Age
    28
    Posts
    3,380
    Thanks given
    1,429
    Thanks received
    958
    Rep Power
    2168
    Code:
    if (itemId == 15098 && System.currentTimeMillis() - c.diceDelay >= 2500)
                          { //Dice Bag
                              c.forcedChat("I have rolled a " + Misc.random(100) + " on the percentile dice.");
                              c.startAnimation(11900);
                              c.gfx0(2075);
                              c.diceDelay = System.currentTimeMillis();
                          }
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Apr 2013
    Posts
    21
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by BertFX View Post
    You must not add a timer into the command, but a timer onto the website. If you add a timer to the command, people will just browse the website up again.
    How would I do that?
    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] Command Stopping people attacking you
    By Pentiun in forum Snippets
    Replies: 17
    Last Post: 02-25-2012, 11:19 PM
  2. Lil PI Command
    By FuckThePolice in forum Help
    Replies: 0
    Last Post: 08-08-2010, 03:17 AM
  3. [PI] Command help. [PI]
    By Ross in forum Help
    Replies: 0
    Last Post: 07-27-2010, 07:11 PM
  4. PI command error
    By Despised Icon in forum Help
    Replies: 2
    Last Post: 06-09-2010, 09:11 PM
  5. [PI] Commands and remove x dupe
    By Analed in forum Requests
    Replies: 4
    Last Post: 05-28-2010, 07:22 AM
Tags for this Thread

View Tag Cloud

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