[RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

Results 1 to 25 of 25
  1. #1
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Hey guys,

    Its me again, Well a friend of mine (Him.) Made an RP server, and he had an page for wanted users that was buggy, and didnt fully work, and i said want me to make a new one? so its not like the top stats, and it goes by if they're wanted!

    So he said sure, but i'm also going to release this to you ragezoners!

    Right the commands work in away to send messages to cops on who has been added and has been removed! Also, the new arrest command is there to remove the users wanted status! -EDIT- It now says who added them to the list!


    NEW: ADDED COMMANDS!!

    Right,

    SQL:
    Goto the users table, add a new collum called "wanted" (with no quotation marks) with the values, init 1 default 0!

    C# (COMMANDS)
    :addwanted username command!
    PHP Code:
    #region :addwanted <user>
                        
    case "addwanted":
                            {
                                
    virtualUser User userManager.getUser(args[1]);
                                
    using (DatabaseClient dbClient Eucalypt.dbManager.GetClient())
                                {
                                    
    int isworking dbClient.getInt("SELECT working FROM users WHERE name = '" _Username "'");
                                    if (
    isworking == 1)
                                    {
                                        {
                                            
    int me_secure_id dbClient.getInt("SELECT secure_id FROM users WHERE name = '" _Username "'");
                                            
    int canarrest dbClient.getInt("SELECT arrest FROM jobs_ranks WHERE id = '" me_secure_id "'");

                                            if (
    canarrest == 1)
                                            {
                                                
    Room.sendSaying(roomUser"*Adds " User._Username ", to the wanted list!*");
                                                
    dbClient.runQuery("UPDATE users SET wanted = '1' WHERE name = '" User._Username "'");
                                                
    userManager.sendToCop(1false"BK" "" User._Username " has been added to the wanted list by " _Username "!");
                                            }
                                        }
                                    }
                                }
                                break;
                            }
                        
    #endregion 
    :removewanted username command
    PHP Code:
    #region :removewanted <user>
                        
    case "removewanted":
                            {
                                
    virtualUser User userManager.getUser(args[1]);
                                
    using (DatabaseClient dbClient Eucalypt.dbManager.GetClient())
                                {
                                    
    int isworking dbClient.getInt("SELECT working FROM users WHERE name = '" _Username "'");
                                    if (
    isworking == 1)
                                    {
                                        {
                                            
    int me_secure_id dbClient.getInt("SELECT secure_id FROM users WHERE name = '" _Username "'");
                                            
    int canarrest dbClient.getInt("SELECT arrest FROM jobs_ranks WHERE id = '" me_secure_id "'");

                                            if (
    canarrest == 1)
                                            {
                                                
    Room.sendSaying(roomUser"*Removes " User._Username ", from the wanted list!*");
                                                
    dbClient.runQuery("UPDATE users SET wanted = '0' WHERE name = '" User._Username "'");
                                                
    userManager.sendToCop(1false"BK" "" User._Username " has been removed from the wanted list by " _Username "!");
                                            }
                                        }
                                    }
                                }
                                break;
                            }
                        
    #endregion 
    :arrest user time command
    this file was edited to remove their wanted stats when arrested!
    PHP Code:
    #region :arrest <user> <time>
                        
    case "arrest":
                            {
                                
    virtualUser User userManager.getUser(args[1]);
                                
    using (DatabaseClient dbClient Eucalypt.dbManager.GetClient())
                                {
                                    
    int isworking dbClient.getInt("SELECT working FROM users WHERE name = '" _Username "'");
                                    if (
    isworking == 1)
                                    {
                                        {
                                            
    int me_secure_id dbClient.getInt("SELECT secure_id FROM users WHERE name = '" _Username "'");
                                            
    int canarrest dbClient.getInt("SELECT arrest FROM jobs_ranks WHERE id = '" me_secure_id "'");

                                            if (
    User._roomID == _roomID && (roomUser.== User.roomUser.&& roomUser.== User.roomUser.X) || (roomUser.== User.roomUser.&& roomUser.== User.roomUser.X) || (roomUser.== User.roomUser.&& roomUser.== User.roomUser.X) || (roomUser.== User.roomUser.&& roomUser.== User.roomUser.X) || (roomUser.== User.roomUser.&& roomUser.== User.roomUser.X))
                                            {
                                                if (
    canarrest == 1)
                                                {
                                                    if (
    User.roomUser.walkLock == false)
                                                    {
                                                        
    Room.sendSaying(roomUser"*attempts to arrest " User._Username ", but notices that he is not cuffed*");
                                                    }
                                                    else
                                                    {
                                                        
    int time int.Parse(args[2]);
                                                        if (
    time 60 || time 1)
                                                        {
                                                            
    sendData("BK" "What exactly are you trying to do?");
                                                        }
                                                        else
                                                        {
                                                            
    dbClient.runQuery("UPDATE users SET arrested = '1', wanted = '0' arrests = arrests + '1', time_jail = '" args[2] + "' WHERE name = '" User._Username "'");

                                                            
    int fine time 5;
                                                            
    dbClient.runQuery("UPDATE users SET credits = credits - '" fine "' WHERE name = '" User._Username "'");
                                                            
    refreshValueables(truefalse);

                                                            
    Room.sendSaying(roomUser"*arrests " User._Username " for " time " minutes, and fines them " fine " credits*");

                                                            
    User.sendData("D^" "H" Encoding.encodeVL64(112));
                                                            
    User.sendData("BK" "You have been arrested by " _Username ", and fined " fine " credits!");

                                                            
    ThreadStart jailStarter = new ThreadStart(User.jailTime);
                                                            
    User.jailLooper = new Thread(jailStarter);
                                                            
    User.jailLooper.Priority ThreadPriority.Lowest;
                                                            
    User.jailLooper.Start();
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                                break;
                            }
                        
    #endregion 
    PHP:
    PHP Code:


    <?php
    /*================================================================+\
    || # PHPRetro - An extendable virtual hotel site and management
    |+==================================================================
    || # Copyright (C) 2009 Yifan Lu. All rights reserved.
    || # http://www.yifanlu.com
    || # Parts Copyright (C) 2009 Meth0d. All rights reserved.
    || # http://www.meth0d.org
    || # All images, scripts, and layouts
    || # Copyright (C) 2009 Sulake Ltd. All rights reserved.
    |+==================================================================
    || # PHPRetro is provided "as is" and comes without
    || # warrenty of any kind. PHPRetro is free software!
    || # License: GNU Public License 3.0
    || # http://opensource.org/licenses/gpl-license.php
    \+================================================================*/

    $page['allow_guests'] = true;
    require_once(
    './includes/core.php');
    require_once(
    './includes/session.php');
    $data = new community_sql;
    $lang->addLocale("community.community");

    $page['id'] = "wantedusers";
    $page['name'] = "Wanted users";
    $page['bodyid'] = "home";
    $page['cat'] = "community";

    require_once(
    './templates/community_header.php');
    ?>

    <div id="container">
        <div id="content" style="position: relative" class="clearfix">
        <div id="column1" class="column">
    <div class="habblet-container ">
                            <div class="cbb clearfix green ">

                                <h2 class="title">Wanted Users!</h2>
                            <div id="notfound-content" class="box-content">
    <table width="100%">
    Below you will see who has been noted as wanted which means they basically need to be arrested!<br /><br />
    <?php
        $sql 
    "SELECT name,wanted,figure,sex,id FROM users WHERE wanted = 1 ORDER BY name DESC";
        
    $result mysql_query($sql) OR die(mysql_error());
        if(
    mysql_num_rows($result)) {
            while(
    $row mysql_fetch_assoc($result)) {

            
    $userid $row['id'];
                    if(
    $row['wanted'] == "1")
            {
            }
    {
      
    $s_username $row['name'];
      
    $s_figure 'http://www.habbo.co.uk/habbo-imaging/avatarimage?figure='.$row['figure'].'&size=b&direction=2&head_direction=3&gesture=sml&size=m';
    }
    echo 
    "<p><img src='".$s_figure."' alt='".$s_username."' align='left' />
    <b><a href='home/"
    .$s_username."'>".$s_username."</a></b><br /><br /><br /><br /><br /><br /><br /><br /></p>";
            }

    }else{
          echo 
    'No one is yet wanted by the NYPD!</a>';
    }

    ?>

    </table>
    </div>
                        </div>
                    </div></div>

    <div class="habblet-container ">

    </div>





    <div id="column2" class="column">
                    <div class="habblet-container ">
                            <div class="cbb clearfix green ">

                                <h2 class="title">Whats this page?                             </h2>
                            <div id="notfound-looking-for" class="box-content">
    <table width="170px">
    This page is to show you who is wanted for being arrested! <br /><br />So look out!
    </table>
        </div>

    </div>
                        </div></div>






    <?php require_once('templates/community_footer.php'); ?>
    Screenshots:



    Cheers, if you like this, click the thanks button!
    Last edited by Sledmore; 01-07-10 at 02:16 AM.


  2. #2
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: [RP] Wanted Page! [SLEDMORE]

    put a "<" at the start?

  3. #3
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Wanted Page! [SLEDMORE]

    Quote Originally Posted by Him. View Post
    put a "<" at the start?
    On what?

    Also guys! Updated, added :removewanted and :addwanted they also send notifications to the police!

    And added an arrest command that will remove their wanted stats!

  4. #4
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Eh take that back x] Good Release
    He made this for meh |

  5. #5
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Quote Originally Posted by Him. View Post
    Eh take that back x] Good Release
    He made this for meh |
    Ya got that right :').

  6. #6
    Gamma RastaLulz is offline
    MemberRank
    Dec 2007 Join Date
    EarthLocation
    3,327Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    You should add who they were reported by and what amount of time they should be arrested for if found.

  7. #7
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Quote Originally Posted by RastaLulz View Post
    You should add who they were reported by and what amount of time they should be arrested for if found.
    Done the who by mr rastaa! Il let teh public finish the rest.
    Last edited by Sledmore; 29-06-10 at 05:47 AM.

  8. #8
    Enthusiast Mayes is offline
    MemberRank
    Oct 2009 Join Date
    28Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    This is, as usual mate, a fantastic release.

    Will be using for Olympus definitely =)

  9. #9
    En Français? Bjork is offline
    MemberRank
    Apr 2007 Join Date
    854Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Nice release!! I'll use for sure :)

  10. #10
    Proficient Member swimoTheBig is offline
    MemberRank
    Aug 2008 Join Date
    Essex, UKLocation
    194Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Well done craig :)

  11. #11
    Member Inked is offline
    MemberRank
    Jun 2010 Join Date
    60Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Nice release man! I'm sure many will find a use for it.

  12. #12
    Enthusiast micksta35 is offline
    MemberRank
    Jun 2007 Join Date
    SunderlandLocation
    46Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Would you be able to convert the code into a vista4life version as i notice this is for Tdp

  13. #13
    Enthusiast KingStupid is offline
    MemberRank
    Jun 2010 Join Date
    45Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Very nice.
    Good work.
    Thanks.
    Really gonna use this.
    Very very nice!
    10/10
    Yippi!!
    Lol
    Noob reply
    Or it is genius.

  14. #14
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Quote Originally Posted by Mayes View Post
    This is, as usual mate, a fantastic release.

    Will be using for Olympus definitely =)
    Thanks buddy! :')

    Quote Originally Posted by Bjork View Post
    Nice release!! I'll use for sure :)
    Glad you like it ;'D!

    Quote Originally Posted by swimoTheBig View Post
    Well done craig :)
    Cheers Simon :')

    Quote Originally Posted by Inked View Post
    Nice release man! I'm sure many will find a use for it.
    Quote Originally Posted by micksta35 View Post
    Would you be able to convert the code into a vista4life version as i notice this is for Tdp
    Ahhahh Probably, i prefer coding in NON tdbp.

    Quote Originally Posted by KingStupid View Post
    Very nice.
    Good work.
    Thanks.
    Really gonna use this.
    Very very nice!
    10/10
    Yippi!!
    Lol
    Noob reply
    Or it is genius.
    Thanks mate ;'D!

  15. #15
    C# & Javascript obrienray1 is offline
    MemberRank
    Nov 2009 Join Date
    MiamiLocation
    305Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Good release craig once again :D 10/10

  16. #16
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Quote Originally Posted by obrienray1 View Post
    Good release craig once again :D 10/10
    Cheers mate ;'D.

  17. #17
    Apprentice xixclan is offline
    MemberRank
    Jul 2010 Join Date
    24Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Nice :) im gonna use this =D

  18. #18
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Thanks, hope you do :').

  19. #19
    Alpha Member Glee is offline
    MemberRank
    Jun 2009 Join Date
    Niagara Falls,Location
    2,225Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    How do i create a new row in the SQL user table??

  20. #20
    ☮TAKU???? seanrom is offline
    MemberRank
    Nov 2009 Join Date
    1,004Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    this is like released 100times before and its the shit page every time..

  21. #21
    Apprentice RuNiTzLaGGy is offline
    MemberRank
    Jul 2009 Join Date
    15Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Very nice release man good work.

    -Laggy

  22. #22
    Twinkies are nice. Stopthattwinkie is offline
    MemberRank
    Feb 2007 Join Date
    In your fridge.Location
    509Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    I'd love to see bounties.

  23. #23
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Quote Originally Posted by oleaa View Post
    this is like released 100times before and its the shit page every time..
    Wow? Released 100 times? Er no.. I'm the ORIGINAL MAKER of them COMMANDS and the PAGE. Thanks..

    Quote Originally Posted by RuNiTzLaGGy View Post
    Very nice release man good work.

    -Laggy
    Cheers dude :').

    Quote Originally Posted by Stopthattwinkie View Post
    I'd love to see bounties.
    Aha, i've quit RP coding now ;[.

  24. #24
    Account Upgraded | Title Enabled! itzJay is offline
    MemberRank
    Dec 2008 Join Date
    415Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Great release:')
    id love to see more of your work.

  25. #25
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [RP] Wanted Page! + COMMANDS [EDITED] [SLEDMORE]

    Quote Originally Posted by itzJay View Post
    Great release:')
    id love to see more of your work.
    Thanks mate, i don't know what to code no more, but.. I've started work on bots ;').



Advertisement