Thread: player rights

Results 1 to 8 of 8
  1. #1 player rights 
    Extreme Donator

    sexyrussian's Avatar
    Join Date
    Nov 2009
    Posts
    887
    Thanks given
    47
    Thanks received
    23
    Rep Power
    0
    Code:
    	
    	/**
    	* Private Messaging
    	**/	
    	public void logIntoPM() {
    		setPrivateMessaging(2);
    		for(int i1 = 0; i1 < Config.MAX_PLAYERS; i1++) {
    			Player p = Server.playerHandler.players[i1];
    			if(p != null && p.isActive) {
    				Client o = (Client)p;
    				if(o != null) {
    					o.getPA().updatePM(c.playerId, 1);
    				}
    			}
    		}
    		boolean pmLoaded = false;
    
    		for(int i = 0; i < c.friends.length; i++) {
    			if(c.friends[i] != 0)  {
    				for(int i2 = 1; i2 < Config.MAX_PLAYERS; i2++) {
    					Player p = Server.playerHandler.players[i2];
    					if (p != null && p.isActive && Misc.playerNameToInt64(p.playerName) == c.friends[i])  {
    						Client o = (Client)p;
    						if(o != null) {
    							if (c.playerRights >= 2 || p.privateChat == 0 || (p.privateChat == 1 && o.getPA().isInPM(Misc.playerNameToInt64(c.playerName)))) {
    			 		 			loadPM(c.friends[i], 1);
    			 		 			pmLoaded = true;
    							}
    							break;
    						}
    					}
    				}
    				if(!pmLoaded) {	
    					loadPM(c.friends[i], 0);
    				}
    				pmLoaded = false;
    			}
    			for(int i1 = 1; i1 < Config.MAX_PLAYERS; i1++) {
    				Player p = Server.playerHandler.players[i1];
        			if(p != null && p.isActive) {
    					Client o = (Client)p;
    					if(o != null) {
    						o.getPA().updatePM(c.playerId, 1);
    					}
    				}
    			}
    		}
    	}
    what role do playerrights play in this code?
    Reply With Quote  
     

  2. #2  
    Fuck the rest join the best, WoR
    Jinx's Avatar
    Join Date
    Oct 2010
    Posts
    635
    Thanks given
    99
    Thanks received
    65
    Rep Power
    364
    In that code, playerRights doesn't play any role. Why do you ask?
    The wor has begun.


    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    you mean to show the crowns?its in playerassistant, think its the updatePM, but not sure, so look around in pa
    Reply With Quote  
     

  4. #4  
    Fuck the rest join the best, WoR
    Jinx's Avatar
    Join Date
    Oct 2010
    Posts
    635
    Thanks given
    99
    Thanks received
    65
    Rep Power
    364
    Oh displaying crowns via PM is client sided.
    The wor has begun.


    Reply With Quote  
     

  5. #5  
    Extreme Donator

    sexyrussian's Avatar
    Join Date
    Nov 2009
    Posts
    887
    Thanks given
    47
    Thanks received
    23
    Rep Power
    0
    well it mentioned so it should play a role

    im about to create more player rights specifically for donor icons

    however.

    the problem is that some playerrights stuff uses greater then or less then to determine your power so i dont want donors to be able to do staff things

    and wait..

    if admin crown, in cache is #2

    then why do u still get the crown if u have owner status?
    Reply With Quote  
     

  6. #6  
    Extreme Donator

    sexyrussian's Avatar
    Join Date
    Nov 2009
    Posts
    887
    Thanks given
    47
    Thanks received
    23
    Rep Power
    0
    yeah.. but the server is supposed 2 tell the client what crown and what not..
    Reply With Quote  
     

  7. #7  
    Extreme Donator

    sexyrussian's Avatar
    Join Date
    Nov 2009
    Posts
    887
    Thanks given
    47
    Thanks received
    23
    Rep Power
    0
    jesus sorry, everyone posted so fast i lost track lol
    Reply With Quote  
     

  8. #8  
    Fuck the rest join the best, WoR
    Jinx's Avatar
    Join Date
    Oct 2010
    Posts
    635
    Thanks given
    99
    Thanks received
    65
    Rep Power
    364
    Yeah but that isn't done through this method. Trust me, all your problems that you are having are client sided. What source and client are you running?
    The wor has begun.


    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. player rights :/
    By iamproto in forum Help
    Replies: 2
    Last Post: 03-30-2011, 09:49 PM
  2. player rights help
    By rexz0rd in forum Help
    Replies: 0
    Last Post: 06-15-2010, 08:44 AM
  3. Replies: 8
    Last Post: 05-30-2010, 10:52 AM
  4. Adding Player Rights to a Specific player 525
    By ICEAuthority in forum Help
    Replies: 0
    Last Post: 09-10-2009, 07:19 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
  •