Block/Unblock Friend Request Command [ UberEMU ]

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Account Upgraded | Title Enabled! FreeZa™ is offline
    MemberRank
    Jun 2008 Join Date
    In the JungleLocation
    274Posts

    information Block/Unblock Friend Request Command [ UberEMU ]

    Hello Ragezoners,

    This is my second release.

    It basically does is allows people to block and unblock friend requests using the command :blockfriends

    Find
    Code:
                        case "empty":
    
                            Session.GetHabbo().GetInventoryComponent().ClearItems();
    
                            return true;
    And Add This Under it:
    Code:
                        // Block/Unblock Friend Requests
                        // Codeded by -ClaNHabbo- (Edward)
                        // 100% Working
    
                        case "blockfriends":
                            using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
                                if (Session.GetHabbo().BlockNewFriends)
                                {
                                    dbClient.ExecuteQuery("UPDATE users SET block_newfriends = '0' WHERE id = '" + Session.GetHabbo().Id + "' LIMIT 1");
                                    Session.GetHabbo().BlockNewFriends = false;
                                    Session.SendNotif("Friend Request Unblocked.");
                                }
                                else
                                {
                                    dbClient.ExecuteQuery("UPDATE users SET block_newfriends = '1' WHERE id = '" + Session.GetHabbo().Id + "' LIMIT 1");
                                    Session.GetHabbo().BlockNewFriends = true;
                                    Session.SendNotif("Friend Request Blocked.");
                                }
                            return true;

    Credits : ME and Only ME!!!!!

    IF YOU DON'T LIKE IT, THEN DON'T USE IT AND FOR SURE DON'T REPLY!!!

    Thank Me Down here if you liked it :D.

    Regards
    Edward
    Last edited by FreeZa™; 21-09-10 at 08:31 AM.


  2. #2
    Account Upgraded | Title Enabled! Tyerial is offline
    MemberRank
    May 2005 Join Date
    On a RockLocation
    249Posts

    Re: Block/Unblock Friend Request Command [ UberEMU ]

    Awesome release! 10/ 10

  3. #3
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: Block/Unblock Friend Request Command [ UberEMU ]

    Would be better if its in a page, like habbo has :P

  4. #4
    Account Upgraded | Title Enabled! FreeZa™ is offline
    MemberRank
    Jun 2008 Join Date
    In the JungleLocation
    274Posts

    Re: Block/Unblock Friend Request Command [ UberEMU ]

    Quote Originally Posted by PEjump2 View Post
    Would be better if its in a page, like habbo has :P
    Working on that too.

  5. #5
    Not active anymore! Winter is offline
    MemberRank
    Aug 2009 Join Date
    AustraliaLocation
    461Posts

    Re: Block/Unblock Friend Request Command [ UberEMU ]

    Legend. thanks for this. I've been lookin for this for a while now
    10/10

  6. #6
    Proficient Member (^^,) is offline
    MemberRank
    Aug 2007 Join Date
    151Posts

    Re: Block/Unblock Friend Request Command [ UberEMU ]

    Woahhh! Very nice release! 10/10

  7. #7
    You can call me Monty :D GuikBretas is offline
    MemberRank
    Apr 2009 Join Date
    NorwayLocation
    332Posts

    Re: Block/Unblock Friend Request Command [ UberEMU ]

    Why i got the error:
    Error 1 The type or namespace name 'DatabaseClient' could not be found (are you missing a using directive or an assembly reference?) D:\Usar esse emulador\alokEmulator r3\HabboHotel\Misc\ChatCommandHandler.cs 374 32 XDEmulator
    ?
    -Resolved
    Last edited by GuikBretas; 21-09-10 at 01:18 PM.

  8. #8
    Account Upgraded | Title Enabled! FreeZa™ is offline
    MemberRank
    Jun 2008 Join Date
    In the JungleLocation
    274Posts

    Re: Block/Unblock Friend Request Command [ UberEMU ]

    Edit : Ahh Resolved. Make the Resolved after few lines next time did not read :P
    Last edited by FreeZa™; 21-09-10 at 02:47 PM.

  9. #9
    Account Upgraded | Title Enabled! taylan is offline
    MemberRank
    Feb 2009 Join Date
    GermanyLocation
    336Posts

    Re: Block/Unblock Friend Request Command [ UberEMU ]

    empty is already released -.-

    xD

  10. #10
    Account Upgraded | Title Enabled! FreeZa™ is offline
    MemberRank
    Jun 2008 Join Date
    In the JungleLocation
    274Posts

    Re: Block/Unblock Friend Request Command [ UberEMU ]

    Quote Originally Posted by taylan View Post
    empty is already released -.-

    xD
    Who is releasing empty in this topic?

    lol See its written "Find" above it.

  11. #11
    Account Upgraded | Title Enabled! Tyerial is offline
    MemberRank
    May 2005 Join Date
    On a RockLocation
    249Posts

    Re: Block/Unblock Friend Request Command [ UberEMU ]

    Quote Originally Posted by taylan View Post
    empty is already released -.-

    xD
    Learn to read he didnt release EMPTY he released :blockfriends

  12. #12
    I'm back! iJay is offline
    MemberRank
    Nov 2008 Join Date
    Down Under ;)Location
    602Posts

    Re: Block/Unblock Friend Request Command [ UberEMU ]

    Nice release mate ;)

  13. #13
    Account Upgraded | Title Enabled! Flurrie is offline
    MemberRank
    Jun 2010 Join Date
    281Posts

    Re: Block/Unblock Friend Request Command [ UberEMU ]

    Thanks works great!

  14. #14
    Account Upgraded | Title Enabled! FreeZa™ is offline
    MemberRank
    Jun 2008 Join Date
    In the JungleLocation
    274Posts

    Re: Block/Unblock Friend Request Command [ UberEMU ]

    No Problem :D

  15. #15
    Account Upgraded | Title Enabled! StrongFaith is offline
    MemberRank
    Aug 2010 Join Date
    .PHP filesLocation
    268Posts

    Re: Block/Unblock Friend Request Command [ UberEMU ]

    10/10 ! Anyway needs a page ! steal from habbo.com and add php codes with sql :P



Page 1 of 2 12 LastLast

Advertisement