Thread: allowing players who cant pk to duel and funpk

Results 1 to 5 of 5
  1. #1 allowing players who cant pk to duel and funpk 
    Banned
    Join Date
    May 2011
    Posts
    205
    Thanks given
    39
    Thanks received
    3
    Rep Power
    0
    how would i enable this? because i have it set where if they have spawn they cant pk duel or fun pk, i want to set it where they can fun pk and duel just not stake.
    Reply With Quote  
     

  2. #2  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Code:
    if(player.canSpawn()) {
        player.sendMessage("You cannot stake items.");
        return;
    }
    As an example

    TradeAndDuel.java
    public boolean stakeItem(final int itemID, final int fromSlot, final int amount)
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    May 2011
    Posts
    205
    Thanks given
    39
    Thanks received
    3
    Rep Power
    0
    Code:
    public void attackPlayer(int i) {
              if (c.hasSpawn == 1) {
    		  c.sendMessage("You are not allowed to pk due to being a spawn account");
    		  
    		  return
    		  
    		  }
    		  if (c.hasSpawn == 2) {
    		  c.sendMessage("You are not allowed to pk due to being a spwan account");
    		
    		 return;
    		 }
    		  if (c.playerRights == 2) {
    		  c.sendMessage("You are not allowed to pk due to being an Administrator");
              return;
    thats what i have it as how can i edit it to make it where they can fun pk and duel without being able to stake?
    Reply With Quote  
     

  4. #4  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Quote Originally Posted by x coder chase x View Post
    Code:
    public void attackPlayer(int i) {
              if (c.hasSpawn == 1) {
    		  c.sendMessage("You are not allowed to pk due to being a spawn account");
    		  
    		  return
    		  
    		  }
    		  if (c.hasSpawn == 2) {
    		  c.sendMessage("You are not allowed to pk due to being a spwan account");
    		
    		 return;
    		 }
    		  if (c.playerRights == 2) {
    		  c.sendMessage("You are not allowed to pk due to being an Administrator");
              return;
    [code]

    thats what i have it as how can i edit it to make it where they can fun pk and duel without being able to stake?
    Code:
    public boolean stakeItem(final int itemID, final int fromSlot, final int amount) {
            if (c.hasSpawn == 1 || c.hasSpawn == 2 || c.playerRights == 2) {
            	c.sendMessage("You are not allowed to pk due to being a spawn account");
            	return;
            }
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    May 2011
    Posts
    205
    Thanks given
    39
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by 1776 View Post
    Code:
    public boolean stakeItem(final int itemID, final int fromSlot, final int amount) {
            if (c.hasSpawn == 1 || c.hasSpawn == 2 || c.playerRights == 2) {
            	c.sendMessage("You are not allowed to pk due to being a spawn account");
            	return;
            }
    doesnt work :/ is there a way to just add on to them the way they are?
    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] Both players disconnect in duel
    By Harambe_ in forum Help
    Replies: 0
    Last Post: 08-08-2011, 01:21 AM
  2. Replies: 6
    Last Post: 07-14-2011, 10:12 PM
  3. [DSPK]players gets pkpoints in Duel Arena.
    By Mini Slurpee in forum Help
    Replies: 8
    Last Post: 04-06-2011, 11:08 AM
  4. not updating players appearance in duel ?
    By storyscape in forum Help
    Replies: 11
    Last Post: 06-28-2010, 01:00 PM
  5. Replies: 19
    Last Post: 03-12-2008, 06:54 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
  •