BxB 2 Posted June 8, 2017 Share Posted June 8, 2017 Bonjour aujourd'hui je vous partage la commande warp ! Sans plus attendre.... Les codes ! warp.cs (à créer): using System.Drawing; using Plus.HabboHotel.GameClients; namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator.Fun { class WarpCommand : IChatCommand { public string PermissionRequired { get { return "command_warp"; } } public string Parameters { get { return "%pseudo%"; } } public string Description { get { return "La possibilité d'amener un joueur sur toi."; } } public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params) { if (Params.Length == 1) { Session.SendWhisper("Merci d'entrer un pseudo."); return; } GameClient TargetClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(Params[1]); if (TargetClient == null) return; RoomUser SessionTarget = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id); if (SessionTarget == null) return; RoomUser TargetUser = Room.GetRoomUserManager().GetRoomUserByHabbo(TargetClient.GetHabbo().Id); if (TargetUser == null) return; TargetUser.Frozen = true; Room.SendMessage(Room.GetRoomItemHandler().UpdateUserOnRoller(TargetUser, new Point(SessionTarget.X, SessionTarget.Y), 0, SessionTarget.Z)); if (TargetUser.Statusses.ContainsKey("sit")) TargetUser.Z -= 0.35; TargetUser.UpdateNeeded = true; Room.GetGameMap().GenerateMaps(); TargetUser.Frozen = false; } } } CommandManager.CS (à ajouter dans le fichier original): this.Register("warp", new WarpCommand()); Voilà, voilou ! Bonne chance pour l'ajouter ! Link to comment Share on other sites More sharing options...
Manil 15 Posted June 8, 2017 Share Posted June 8, 2017 Merci pour ce partage Link to comment Share on other sites More sharing options...
Dude 3 Posted June 8, 2017 Share Posted June 8, 2017 Merci pour le partage Link to comment Share on other sites More sharing options...
Guest Posted June 8, 2017 Share Posted June 8, 2017 Merci bg pour ton partage, même si j'ai zappé son utilité à warp '-' Link to comment Share on other sites More sharing options...
Straqq 0 Posted June 8, 2017 Share Posted June 8, 2017 Il y a 4 heures, KrackWeed a dit : Merci bg pour ton partage, même si j'ai zappé son utilité à warp '-' Il décrit l'utilisation dans son code : public string Description { get { return "La possibilité d'amener un joueur sur toi."; } } Straqq'? Link to comment Share on other sites More sharing options...
Cryzy 0 Posted February 18, 2018 Share Posted February 18, 2018 C'est un warp staff ou tous les joueurs peuvent l'utiliser uniquement dans leurs apparts ? Link to comment Share on other sites More sharing options...
AceZer32 32 Posted March 10, 2019 Share Posted March 10, 2019 Le 18/02/2018 à 22:34, ?µ?? ??†?? a dit : C'est un warp staff ou tous les joueurs peuvent l'utiliser uniquement dans leurs apparts ? comme on peut le lire ici RoomUser TargetUser = Room.GetRoomUserManager().GetRoomUserByHabbo(TargetClient.GetHabbo().Id); if (TargetUser == null) return c'est seulement ceux qui ont les droits dans l'appart => https://citizen-rp.xyz/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now