Chat Commands In Funmobile...

Started on the old forum in October 2007 · view the original in the archive · old links redirect here

15 replies · 1,079 views · started 19 years ago · 1 min read

2 participants
WhiteWarrior Principal · 1,419 posts #1

anyone know how to make more commands in the funmobile script like the /me is

[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

}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

 if($sres == "/me")

to something like

if($sres == "/test")

Nothing happends lol anyway if you know what i mean then help me please if not then ok lol External image (may be gone)

Guest #2

anyone know how to make more commands in the funmobile script like the /me is

*$chnick $tosay*

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

}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 "*$chnick $tosay*";
                    }else{

and if i change the

 if($sres == "/me")

to something like

if($sres == "/test")

Nothing happends lol anyway if you know what i mean then help me please if not then ok lol External image (may be gone)

It is possible I have edited that in my script successfully

Guest #3
}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 "*$chnick $tosay*";
                    }else{

and if i change the

 if($sres == "/me")

to something like

if($sres == "/test")

Nothing happends lol anyway if you know what i mean then help me please if not then ok lol External image (may be gone)

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

SiLeNce Developer · 138 posts #4

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

only my private test wap ~

Guest #5

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

Use this code,

CODE}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);

And change the next text accordingly..

eg: CODE echo "Admin is here!**** ";

Or replace with anythingg

Enjoy! External image (may be gone) External image (may be gone) External image (may be gone)

WhiteWarrior Principal · 1,419 posts #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

Guest #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

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...

WhiteWarrior Principal · 1,419 posts #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...

i think i have worked it out... ill put it here if it works

Guest #10

i think i have worked it out... ill put it here if it works

Kewl... External image (may be gone) if u get any errors let me know I already have the structure in mind bro...

WhiteWarrior Principal · 1,419 posts #11

this is how i got it but it not working

$sres = substr($chat[3],0,6);
$una2 = mysql_query("SELECT id FROM ibwf_users WHERE uid='".$username2."'");
                    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='".$username2."'");
                        
                        echo "[b][i]*$una2 Booted[/i][/b]
";
mysql_query("DELETE FROM ibwf_ses WHERE uid='".$una2."'");
Guest #12

this is how i got it but it not working

$sres = substr($chat[3],0,6);
$una2 = mysql_query("SELECT id FROM ibwf_users WHERE uid='".$username2."'");
                    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='".$username2."'");
                        
                        echo "*$una2 Booted
";
mysql_query("DELETE FROM ibwf_ses WHERE uid='".$una2."'");

First of all wats $username2 ?

Guest #13

this is how i got it but it not working

$sres = substr($chat[3],0,6);
$una2 = mysql_query("SELECT id FROM ibwf_users WHERE uid='".$username2."'");
                    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='".$username2."'");
                        
                        echo "*$una2 Booted
";
mysql_query("DELETE FROM ibwf_ses WHERE uid='".$una2."'");

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...

WhiteWarrior Principal · 1,419 posts #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

WhiteWarrior Principal · 1,419 posts #15
$sres = substr($chat[3],0,6);
$una2 = mysql_query("SELECT id FROM ibwf_users WHERE uid='".$username2."'");
                    if($sres == "/boot $una2")
                    {
mysql_query("DELETE FROM ibwf_ses WHERE uid='".$una2."'");

works better lol

Guest #16

Did it work?

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close