Thread: how i can put players can yell every 20secounds!?

Results 1 to 3 of 3
  1. #1 how i can put players can yell every 20secounds!? 
    Banned

    Join Date
    Jun 2015
    Posts
    1,517
    Thanks given
    31
    Thanks received
    143
    Rep Power
    0
    Title says all!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Nov 2014
    Posts
    50
    Thanks given
    15
    Thanks received
    7
    Rep Power
    7
    Use google mate..

    Try these :

    http://www.rune-server.org/runescape...ell-timer.html
    https://www.moparscape.org/smf/index.php?topic=466923.0 (im not sure if im allowed to post Mopar here)
    Reply With Quote  
     

  3. #3  
    Donator

    Join Date
    Dec 2014
    Posts
    289
    Thanks given
    160
    Thanks received
    56
    Rep Power
    37
    Here's how you do it:

    Code:
     if (playerCommand.equals("yell") && "Any other requirements here") {
                    if (System.currentTimeMillis() - c.lastYell > 20000) {
                    c.lastYell = System.currentTimeMillis();
                    //Code for yell here
                } else {
                     c.sendMessage("You can only yell every 20 seconds.");
                     return;
                }
    }

    Hope it helps!
    Reply With Quote  
     

  4. Thankful user:



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: 1
    Last Post: 05-06-2014, 09:57 PM
  2. Replies: 2
    Last Post: 05-04-2014, 06:24 PM
  3. how to make a player have yell 718
    By Nimesh89 in forum Help
    Replies: 7
    Last Post: 07-24-2013, 05:10 AM
  4. Replies: 11
    Last Post: 12-23-2011, 02:10 AM
  5. Replies: 9
    Last Post: 05-05-2008, 10: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
  •