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 Releases
Server Releases
[RP] [RELEASE] Vice Emulator [R63]
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="CrestHawk" data-source="post: 291449" data-attributes="member: 1741"><p>Sure. This is staff reset.</p><p>[PHP]#region :Reset Staff</p><p> case "reset_staff":</p><p> case "remove_staff":</p><p> //This will check if your a RP Admin which allows you to use this command</p><p> if (!Session.HasRight("hotel_admin"))</p><p> return false;</p><p> //This is what you will Say(Shout) After using the command successfully</p><p> instanceByRoomId.BroadcastMessage(RoomChatComposer.Compose(Actor.Id, "*[ALERT]Makes a anonymous executive call, removing all Staff & Badges*", 0, ChatType.Shout), false);</p><p> </p><p> {</p><p></p><p> {</p><p> using (SqlDatabaseClient MySqlClient = SqlDatabaseManager.GetClient())</p><p> {</p><p> //This checks again, if your a RP admin</p><p> if (!Session.HasRight("hotel_admin"))</p><p> return false;</p><p> //This will make all user ranks 1.</p><p> MySqlClient.ExecuteNonQuery("UPDATE users SET rank = '1'");</p><p> // This will remove staff badges. Which enables staff. (Soon Will update to only remove @Where Badge 11 (Staff Badge)</p><p> MySqlClient.ExecuteNonQuery("DELETE FROM `badges` WHERE `source_data` = 'ADM'");</p><p> </p><p> </p><p> return true;</p><p> }</p><p> } </p><p> }</p><p> #endregion[/PHP]</p></blockquote><p></p>
[QUOTE="CrestHawk, post: 291449, member: 1741"] Sure. This is staff reset. [PHP]#region :Reset Staff case "reset_staff": case "remove_staff": //This will check if your a RP Admin which allows you to use this command if (!Session.HasRight("hotel_admin")) return false; //This is what you will Say(Shout) After using the command successfully instanceByRoomId.BroadcastMessage(RoomChatComposer.Compose(Actor.Id, "*[ALERT]Makes a anonymous executive call, removing all Staff & Badges*", 0, ChatType.Shout), false); { { using (SqlDatabaseClient MySqlClient = SqlDatabaseManager.GetClient()) { //This checks again, if your a RP admin if (!Session.HasRight("hotel_admin")) return false; //This will make all user ranks 1. MySqlClient.ExecuteNonQuery("UPDATE users SET rank = '1'"); // This will remove staff badges. Which enables staff. (Soon Will update to only remove @Where Badge 11 (Staff Badge) MySqlClient.ExecuteNonQuery("DELETE FROM `badges` WHERE `source_data` = 'ADM'"); return true; } } } #endregion[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[RP] [RELEASE] Vice Emulator [R63]
Top