Thread: Need Quck Help [Delta] REP+

Results 1 to 8 of 8
  1. #1 Need Quck Help [Delta] REP+ 
    Registered Member

    Join Date
    Sep 2009
    Posts
    1,723
    Thanks given
    45
    Thanks received
    81
    Rep Power
    269
    How do i make it so that If your Rights is above 0 you cant Duel
    Code:
        public void duelReq(int pid) {
            if (!server.dueling) {
                sM("Dueling has been temporarily disabled");
                return;
            }
            duel_with = pid;
            duelRequested = true;
            if (!validClient(duel_with))
                return;
            client other = getClient(duel_with);
            if (inTrade || inDuel || other.inDuel || other.inTrade
                    || other.duelFight || other.duelConfirmed
                    || other.duelConfirmed2) {
                sM("Other player is busy at the moment");
                duelRequested = false;
                return;
            }
            if (duelRequested && other.duelRequested
                    && (duel_with == other.playerId)
                    && (other.duel_with == playerId)) {
                openDuel();
                other.openDuel();
            } else {
                sM("Sending duel request...");
                other.sM(playerName + ":duelreq:");
            }
        }


    Web Hosting | VPS | CDN | DDoS Protected Solutions
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Feb 2008
    Posts
    384
    Thanks given
    30
    Thanks received
    26
    Rep Power
    0
    Code:
    if(rights > 0)
          return;
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Sep 2009
    Posts
    1,723
    Thanks given
    45
    Thanks received
    81
    Rep Power
    269
    Rofl forgot about that


    Web Hosting | VPS | CDN | DDoS Protected Solutions
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Sep 2009
    Posts
    1,723
    Thanks given
    45
    Thanks received
    81
    Rep Power
    269
    still need help on this i gave wrong method


    Web Hosting | VPS | CDN | DDoS Protected Solutions
    Reply With Quote  
     

  5. #5  
    Registered Member
    Echo`'s Avatar
    Join Date
    Jan 2009
    Age
    27
    Posts
    749
    Thanks given
    51
    Thanks received
    42
    Rep Power
    429
    I need help on this too.
    Reply With Quote  
     

  6. #6  
    #1 footwear

    Shoes's Avatar
    Join Date
    Aug 2009
    Age
    27
    Posts
    2,612
    Thanks given
    185
    Thanks received
    255
    Rep Power
    579
    Code:
        public void duelReq(int pid) {
            if (!server.dueling) {
                sM("Dueling has been temporarily disabled");
                return;
            }
            if (playerRights > 0)
                    return;
            duel_with = pid;
            duelRequested = true;
            if (!validClient(duel_with))
                return;
            client other = getClient(duel_with);
            if (inTrade || inDuel || other.inDuel || other.inTrade
                    || other.duelFight || other.duelConfirmed
                    || other.duelConfirmed2) {
                sM("Other player is busy at the moment");
                duelRequested = false;
                return;
            }
            if (duelRequested && other.duelRequested
                    && (duel_with == other.playerId)
                    && (other.duel_with == playerId)) {
                openDuel();
                other.openDuel();
            } else {
                sM("Sending duel request...");
                other.sM(playerName + ":duelreq:");
            }
        }


    Spoiler for different picture now:
    Reply With Quote  
     

  7. #7  
    Welcome To The Rodeo

    Zro.'s Avatar
    Join Date
    May 2009
    Posts
    4,376
    Thanks given
    94
    Thanks received
    241
    Rep Power
    714
    if(rights > 1)
    return;
    Attached image
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Sep 2009
    Posts
    1,723
    Thanks given
    45
    Thanks received
    81
    Rep Power
    269
    Thanks Shoes and Z-ro


    Web Hosting | VPS | CDN | DDoS Protected Solutions
    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: 10
    Last Post: 02-05-2010, 04:59 PM
  2. Replies: 21
    Last Post: 11-08-2009, 06:30 AM
  3. Replies: 25
    Last Post: 08-17-2009, 09:29 AM
  4. Replies: 21
    Last Post: 05-28-2009, 01:37 AM
  5. My Quck Little Logo!
    By Designer™ in forum Showcase
    Replies: 2
    Last Post: 09-17-2008, 08:19 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
  •