Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
[RP] Coding new commands..
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Awer" data-source="post: 38231" data-attributes="member: 2000"><p>If your using Holograph; </p><p></p><p>1. Okay.. open virtualUser.CS with visual c# or visual studio.</p><p>1b. If u dont do the above you can open virtualUser.CS with any text editing software.</p><p>2. Press "CTRL + F" to search. Search for case "alert":.</p><p>2b. If u dont do the above you can scroll down until you find any of the commands.</p><p>3. Above case"alert": add your command.</p><p>3b. If u dont do the above you can place your command any where between </p><p>Code:</p><p> [PHP] switch (args[0].ToLower()) // arg[0] = command itself</p><p> {</p><p>and</p><p>Code:</p><p> default:</p><p> return false;</p><p>Example Code's:</p><p>Quote:</p><p></p><p>:roomid //shows the ID of the room you are in</p><p>Code:</p><p> case "roomid": //Disconnects target user</p><p></p><p> sendData("BK" + "Roomid: " + _roomID);</p><p> break;</p><p>:dcuser //disconnects the target user</p><p>Code:</p><p> case "dcuser": //Disconnects target user</p><p> {</p><p> if (rankManager.containsRight(_Rank, "fuse_moderator_access", userID) == false)</p><p> return false;</p><p> else</p><p> {</p><p> virtualUser Target = userManager.getUser(args[1]);</p><p> using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())</p><p> {</p><p> sendData("BK" + Target + " disconnected.");</p><p> Target.sendData("BK" + "A member of staff disconnected you.");</p><p> Target.Disconnect(1000);</p><p> }</p><p></p><p> }</p><p> break;</p><p> }[/PHP]</p></blockquote><p></p>
[QUOTE="Awer, post: 38231, member: 2000"] If your using Holograph; 1. Okay.. open virtualUser.CS with visual c# or visual studio. 1b. If u dont do the above you can open virtualUser.CS with any text editing software. 2. Press "CTRL + F" to search. Search for case "alert":. 2b. If u dont do the above you can scroll down until you find any of the commands. 3. Above case"alert": add your command. 3b. If u dont do the above you can place your command any where between Code: [PHP] switch (args[0].ToLower()) // arg[0] = command itself { and Code: default: return false; Example Code's: Quote: :roomid //shows the ID of the room you are in Code: case "roomid": //Disconnects target user sendData("BK" + "Roomid: " + _roomID); break; :dcuser //disconnects the target user Code: case "dcuser": //Disconnects target user { if (rankManager.containsRight(_Rank, "fuse_moderator_access", userID) == false) return false; else { virtualUser Target = userManager.getUser(args[1]); using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { sendData("BK" + Target + " disconnected."); Target.sendData("BK" + "A member of staff disconnected you."); Target.Disconnect(1000); } } break; }[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[RP] Coding new commands..
Top