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: 291452" data-attributes="member: 1741"><p>This is Job Reset:</p><p>[PHP] //CREST-HAWK Added///</p><p> #region :Reset Jobs</p><p> case "reset_jobs":</p><p> case "killjobs":</p><p> //Admin Check</p><p> if (!Session.HasRight("hotel_admin"))</p><p> return false;</p><p> //This is what you will say after executing the command</p><p> instanceByRoomId.BroadcastMessage(RoomChatComposer.Compose(Actor.Id, "*[ALERT]Makes a anonymous executive call, firing all RP employees from all Jobs*", 0, ChatType.Shout), false);</p><p> </p><p> {</p><p> //This will make all users become unemployed, including CEO's, Managers, and YOU.</p><p> {</p><p> using (SqlDatabaseClient MySqlClient = SqlDatabaseManager.GetClient())</p><p> {</p><p> //Admin Check</p><p> if (!Session.HasRight("hotel_admin"))</p><p> return false;</p><p> //This will set everyones Job ID to 2 = State (Unemployment)</p><p> MySqlClient.ExecuteNonQuery("UPDATE users SET groupid = '2'");</p><p> //This will set everyones Job Rank to 1</p><p> MySqlClient.ExecuteNonQuery("UPDATE users SET jobrank = '1'");</p><p> //This will remove group members (Job Members) Just Incase</p><p> MySqlClient.ExecuteNonQuery("TRUNCATE TABLE `groups_memberships`");</p><p> //Done!</p><p> return true;</p><p> }</p><p> } </p><p> }</p><p> #endregion[/PHP]</p></blockquote><p></p>
[QUOTE="CrestHawk, post: 291452, member: 1741"] This is Job Reset: [PHP] //CREST-HAWK Added/// #region :Reset Jobs case "reset_jobs": case "killjobs": //Admin Check if (!Session.HasRight("hotel_admin")) return false; //This is what you will say after executing the command instanceByRoomId.BroadcastMessage(RoomChatComposer.Compose(Actor.Id, "*[ALERT]Makes a anonymous executive call, firing all RP employees from all Jobs*", 0, ChatType.Shout), false); { //This will make all users become unemployed, including CEO's, Managers, and YOU. { using (SqlDatabaseClient MySqlClient = SqlDatabaseManager.GetClient()) { //Admin Check if (!Session.HasRight("hotel_admin")) return false; //This will set everyones Job ID to 2 = State (Unemployment) MySqlClient.ExecuteNonQuery("UPDATE users SET groupid = '2'"); //This will set everyones Job Rank to 1 MySqlClient.ExecuteNonQuery("UPDATE users SET jobrank = '1'"); //This will remove group members (Job Members) Just Incase MySqlClient.ExecuteNonQuery("TRUNCATE TABLE `groups_memberships`"); //Done! 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