Chat Commands In Funmobile...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Chat Commands In Funmobile...

    anyone know how to make more commands in the funmobile script like the /me is
    Code:
    [b][i]*$chnick $tosay*[/i][/b]
    anyone know how to add more?... i tryed putting the whole code again but it dont work it seems only the /me one works...
    heres the code
    Code:
    }else{
    
                        $sres = substr($chat[3],0,3);
                        
                        if($sres == "/me")
                        {
                            $chco = strlen($chat[3]);
                            $goto = $chco - 3;
                            $rest = substr($chat[3],3,$goto);
                            $tosay = parsepm($rest, $sid);
                            
                            echo "[b][i]*$chnick $tosay*[/i][/b]";
                        }else{
    and if i change the
    Code:
     if($sres == "/me")
    to something like
    Code:
    if($sres == "/test")
    Nothing happends lol anyway if you know what i mean then help me please if not then ok lol

    #2
    anyone know how to make more commands in the funmobile script like the /me is
    Code:
    [b][i]*$chnick $tosay*[/i][/b]
    anyone know how to add more?... i tryed putting the whole code again but it dont work it seems only the /me one works...
    heres the code
    Code:
    }else{
    
                        $sres = substr($chat[3],0,3);
                        
                        if($sres == "/me")
                        {
                            $chco = strlen($chat[3]);
                            $goto = $chco - 3;
                            $rest = substr($chat[3],3,$goto);
                            $tosay = parsepm($rest, $sid);
                            
                            echo "[b][i]*$chnick $tosay*[/i][/b]";
                        }else{
    and if i change the
    Code:
     if($sres == "/me")
    to something like
    Code:
    if($sres == "/test")
    Nothing happends lol anyway if you know what i mean then help me please if not then ok lol [/b]

    It is possible I have edited that in my script successfully

    Comment


      #3
      Code:
      }else{
      
                          $sres = substr($chat[3],0,3);
                          
                          if($sres == "/me")
                          {
                              $chco = strlen($chat[3]);
                              $goto = $chco - 3;
                              $rest = substr($chat[3],3,$goto);
                              $tosay = parsepm($rest, $sid);
                              
                              echo "[b][i]*$chnick $tosay*[/i][/b]";
                          }else{
      and if i change the
      Code:
       if($sres == "/me")
      to something like
      Code:
      if($sres == "/test")
      Nothing happends lol anyway if you know what i mean then help me please if not then ok lol [/b]
      Just look at the code here....

      substr, strlen codes have to be edited accordingly if ur trying /test test etc...

      So u cant just replace /me U have to change other coding as well

      Comment


        #4
        i have chat command but not complete to show all ~ ..

        only my private test wap ~

        Comment


          #5
          So for example if u wanna change the replaced text to "/test" instead of "/me"

          Use this code,

          <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>}else{
          $sres = substr($chat[3],0,5);

          if($sres == "/test")
          {
          $chco = strlen($chat[3]);
          $goto = $chco - 5;
          $rest = substr($chat[3],5,$goto);
          $tosay = parsepm($rest, $sid);</div>

          And change the next text accordingly..

          eg:
          <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'> echo "*Admin is here!*
          ";</div>

          Or replace with anythingg

          Enjoy!

          Comment


            #6
            i have chat command but not complete to show all ~ ..

            only my private test wap ~[/b]

            Hope my above post will help u...

            Comment


              #7
              works good man, thank you :-) so one other thing, if i wanted to boot someone from chat by typing /boot *username* how would that one work? lol

              Comment


                #8
                works good man, thank you :-) so one other thing, if i wanted to boot someone from chat by typing /boot *username* how would that one work? lol[/b]

                Ermmm well bro for booting a user it would be much easier for coding as well as for using if another method other than via a text is tried.... Like by selecting a user and booting him/her up from there...

                Comment


                  #9
                  Ermmm well bro for booting a user it would be much easier for coding as well as for using if another method other than via a text is tried.... Like by selecting a user and booting hin/her up from there...[/b]
                  i think i have worked it out... ill put it here if it works

                  Comment


                    #10
                    i think i have worked it out... ill put it here if it works[/b]
                    Kewl... if u get any errors let me know I already have the structure in mind bro...

                    Comment


                      #11
                      this is how i got it but it not working
                      Code:
                      $sres = substr($chat[3],0,6);
                      $una2 = mysql_query("SELECT id FROM ibwf_users WHERE uid=&#39;".$username2."&#39;");
                                          if($sres == "/boot $una2")
                                          {
                                              $chco = strlen($chat[3]);
                                              $goto = $chco - 6;
                                              $rest = substr($chat[3],6,$goto);
                                              $tosay = parsepm($rest, $sid);
                                          $una2 = mysql_query("SELECT id FROM ibwf_users WHERE uid=&#39;".$username2."&#39;");
                                              
                                              echo "[b][i]*$una2 Booted[/i][/b]
                      ";
                      mysql_query("DELETE FROM ibwf_ses WHERE uid=&#39;".$una2."&#39;");

                      Comment


                        #12
                        this is how i got it but it not working
                        Code:
                        $sres = substr($chat[3],0,6);
                        $una2 = mysql_query("SELECT id FROM ibwf_users WHERE uid=&#39;".$username2."&#39;");
                                            if($sres == "/boot $una2")
                                            {
                                                $chco = strlen($chat[3]);
                                                $goto = $chco - 6;
                                                $rest = substr($chat[3],6,$goto);
                                                $tosay = parsepm($rest, $sid);
                                            $una2 = mysql_query("SELECT id FROM ibwf_users WHERE uid=&#39;".$username2."&#39;");
                                                
                                                echo "[b][i]*$una2 Booted[/i][/b]
                        ";
                        mysql_query("DELETE FROM ibwf_ses WHERE uid=&#39;".$una2."&#39;");
                        [/b]

                        First of all wats $username2 ?

                        Comment


                          #13
                          this is how i got it but it not working
                          Code:
                          $sres = substr($chat[3],0,6);
                          $una2 = mysql_query("SELECT id FROM ibwf_users WHERE uid=&#39;".$username2."&#39;");
                                              if($sres == "/boot $una2")
                                              {
                                                  $chco = strlen($chat[3]);
                                                  $goto = $chco - 6;
                                                  $rest = substr($chat[3],6,$goto);
                                                  $tosay = parsepm($rest, $sid);
                                              $una2 = mysql_query("SELECT id FROM ibwf_users WHERE uid=&#39;".$username2."&#39;");
                                                  
                                                  echo "[b][i]*$una2 Booted[/i][/b]
                          ";
                          mysql_query("DELETE FROM ibwf_ses WHERE uid=&#39;".$una2."&#39;");
                          [/b]

                          And bro believe me, this way its gonna make coding hard.. Its easier if u do it at the menu u get after selecting a user...

                          Comment


                            #14
                            $username2 is $una2 what is the /boot *users username* the only problem im having is it wont end the session... all the rest works lol

                            Comment


                              #15
                              Code:
                              $sres = substr($chat[3],0,6);
                              $una2 = mysql_query("SELECT id FROM ibwf_users WHERE uid=&#39;".$username2."&#39;");
                                                  if($sres == "/boot $una2")
                                                  {
                              mysql_query("DELETE FROM ibwf_ses WHERE uid=&#39;".$una2."&#39;");
                              works better lol

                              Comment

                              Working...
                              X