enable command bcstorm

Results 1 to 3 of 3
  1. #1
    Elite Member TheFlamingo is offline
    Member +Rank
    May 2013 Join Date
    123Posts

    enable command bcstorm

    Hello.

    I'm trying to code a kinda fun admin command. that enables effect id on other users
    I have a base to start with and thats the original enable command. So i figured out that

    PHP Code:
    this.Session.GetHabbo().GetAvatarEffectsInventoryComponent().ApplyCustomEffect(Id of effect); 
    is the line that makes you get the effect. But how can i get another user get that effect?

    Thanks


  2. #2
    Sorcerer Supreme Vrop93 is offline
    Member +Rank
    Jan 2012 Join Date
    Grocery StoreLocation
    320Posts

    Re: enable command bcstorm

    Would be something like this (Replace SoftEnvironment with your environment name ;))

    Code:
    internal void effect()
            {
                string username = this.Params[1];
                int effectId = int.Parse(this.Params[2]);
                GameClient player = SoftEnvironment.getHabboForName(username).GetClient();
                if (player != null)
                {
                   player.GetHabbo().GetAvatarEffectsInventoryComponent().ApplyCustomEffect(effectId);
                }
            }

  3. #3
    Elite Member TheFlamingo is offline
    Member +Rank
    May 2013 Join Date
    123Posts

    Re: enable command bcstorm

    Quote Originally Posted by Vrop93 View Post
    Would be something like this (Replace SoftEnvironment with your environment name ;))

    Code:
    internal void effect()
            {
                string username = this.Params[1];
                int effectId = int.Parse(this.Params[2]);
                GameClient player = SoftEnvironment.getHabboForName(username).GetClient();
                if (player != null)
                {
                   player.GetHabbo().GetAvatarEffectsInventoryComponent().ApplyCustomEffect(effectId);
                }
            }
    Awesome! :D Thanks dude :))))



Advertisement