Thread: [PI] Making certain players untradable

Results 1 to 8 of 8
  1. #1 [PI] Making certain players untradable 
    Registered Member

    Join Date
    Dec 2010
    Posts
    1,982
    Thanks given
    174
    Thanks received
    256
    Rep Power
    223
    How can i make a certain player not be able to trade?

    Like if i had a respected-donator and i gave him :ickup and i didnt want him to be able to trade - or drop items on death.

    Can anyone give me a helping hand?
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jul 2010
    Posts
    748
    Thanks given
    100
    Thanks received
    67
    Rep Power
    116
    Is your donator set to the fourth rank? or is it c.isdonator = 1?
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Dec 2010
    Posts
    1,982
    Thanks given
    174
    Thanks received
    256
    Rep Power
    223
    It's C.donator = 1
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Jul 2010
    Posts
    748
    Thanks given
    100
    Thanks received
    67
    Rep Power
    116
    Then;

    trade.java...
    Below
    Code:
    		if (Connection.isMuted(c)) {
    			c.sendMessage("You are muted and cannot talk.");
    			return;
    		}
    add...
    Code:
    		if (c.isDonator == 1) {
    			c.sendMessage("You can not trade as a donator. Be thankful for spawning you ungrateful shit.");
    			return;
    		}
    you're welcome.
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Dec 2010
    Posts
    1,982
    Thanks given
    174
    Thanks received
    256
    Rep Power
    223
    O.o That was simple.

    Thanks

    Testing it now.

    Works fine: thanks.



    What about deaths so they dont lose items ?
    Last edited by Someone; 12-28-2010 at 01:23 PM. Reason: Ye
    Reply With Quote  
     

  6. #6  
    Donator


    Join Date
    Jul 2010
    Posts
    748
    Thanks given
    100
    Thanks received
    67
    Rep Power
    116
    Same thing, jsut remove the sendmessage statement...im not going to hold your hand...Rep please.
    Reply With Quote  
     

  7. #7  
    † Owner Of Raved † francisco123bz's Avatar
    Join Date
    Nov 2008
    Posts
    381
    Thanks given
    27
    Thanks received
    22
    Rep Power
    61
    How would I do this for rights ==3?
    Max players - 12/19/2009 (Not edited count)

    Owner of - Raved
    Reply With Quote  
     

  8. #8  
    † Owner Of Raved † francisco123bz's Avatar
    Join Date
    Nov 2008
    Posts
    381
    Thanks given
    27
    Thanks received
    22
    Rep Power
    61
    Nvm got it.
    Max players - 12/19/2009 (Not edited count)

    Owner of - Raved
    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: 1
    Last Post: 07-26-2010, 10:14 PM
  2. Making weapons 2h/untradable[317]
    By Chris H in forum Help
    Replies: 0
    Last Post: 01-22-2010, 05:49 AM
  3. Replies: 4
    Last Post: 05-14-2009, 08:07 PM
  4. Making a more informative ::players
    By Eternal Darknes in forum Configuration
    Replies: 7
    Last Post: 08-18-2008, 06:07 PM
  5. Making Players Solid
    By JavaNerd in forum Tutorials
    Replies: 0
    Last Post: 12-30-2007, 05:53 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •