Multiplayer Games

Started on the old forum in June 2008 · view the original in the archive · old links redirect here

7 replies · 1,025 views · started 18 years ago · 3 min read

3 participants
inet Senior · 264 posts #1

This is how we make games posible..

Games Multiplayer like RPG, Crime City Tournament and more..

External image (may be gone)

We thank all those who help me in coding that script, they will get 3 percent commision just after fifteen sales.. Thank you..

This showcase that 2wap or wapforum members are learning from the content of this forum.. Really this forum has the best scripts availabe..

As i browse some Filipino sites i see Natasu busy coding its RPG Game..

Let me help you..

in your script.. you must put activate zone and not in game declarer..

CODE

this will help you bro.. hope i help you in coding your very own version of RPG

/////////////////////////////////////is ingame function is_ingame($uid) { $sql = mysql_fetch_array(mysql_query("SELECT ingame FROM ibwf_users WHERE id='".$uid."'")); if($sql[0]>0) { return true; }else{ false; } }

/////////////////////////////////////is activated function is_active($uid) { $sql = mysql_fetch_array(mysql_query("SELECT active FROM ibwf_users WHERE id='".$uid."'")); if($sql[0]>0) { return true; }else{ false; } }

/////////////////////////////////////////////////

if(!is_active($uid)) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> ";

if(getplusses(getuid_sid($sid))>100)
{
    echo "**PLEASE ACTIVATE!**

<a href="rpg.php?action=activate&sid=$sid">[ACTIVATE]</a>";

}

echo "**PLEASE ACTIVATE! to play**

"; echo "This game is for those only activated!"; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>";

echo "

"; echo "</body>"; echo "</html>"; exit(); }

This is the one basic code in creating the game.. another code is

CODEif (!$playopen) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> "; echo "Error! Arena Clossed!

"; echo "Wait until the Admins open the Arena..."; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>"; echo " "; echo "</body>"; echo "</html>"; exit(); } $action = $_GET["action"]; $sid = $_GET["sid"]; $sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'")); $sitename = $sitename[0]; $uid = getuid_sid($sid); $theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'")); $who = $_GET["who"]; $bawas = $_GET["bawas"]; if((islogged($sid)==false)||($uid==0)) { echo "<head>"; echo "<title>Error!!!</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white_medium.css">"; echo "</head>"; echo "<body>"; echo " "; echo "You are not logged in "; echo "Or Your session has been expired

"; echo "<a href="http://pinoy2.com/index.php">Login</a>"; echo " "; echo "</body>"; echo "</html>"; exit(); } if(isbanned($uid)) { echo "<head>"; echo "<title>Error!!!</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="x"/> "; echo "You are Banned

"; $banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'")); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "Time Left:$rmsg "; $nick = getnick_uid($banto[2]); echo "By:$nick "; echo "Reason:$banto[1]"; echo "<a href="http://pinoy2.com/index.php">Login</a>"; echo " "; echo "</body>"; echo "</html>"; exit(); }

if(!is_active($uid)) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> ";

if(getplusses(getuid_sid($sid))>100)
{
    echo "**PLEASE ACTIVATE!**

<a href="rpg.php?action=activate&sid=$sid">[ACTIVATE]</a>";

}

echo "**PLEASE ACTIVATE! to play**

"; echo "This game is for those only activated!"; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>";

echo "

"; echo "</body>"; echo "</html>"; exit(); }

if(!can_play($uid)) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> "; echo "Insufficient Plusses

";

if(getplusses(getuid_sid($sid))<100)
{
    echo "**You need 100 Plusses or more!**

"; echo "This game is for those have enough plusses! You can play other games to attain enough plusses "; echo "PLEASE Go to Funmenu! <a href="index.php?action=funm&sid=$sid">[Fun Menu]</a>";

}

echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";

echo "

"; echo "</body>"; echo "</html>"; exit(); } if(!can_buy($uid)) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> "; echo "You need to buy health booster! At our Botika!

";

if(getplusses(getuid_sid($sid))>100)
{
    echo "**PLEASE Go to Money Changer!**

<a href="money.php?action=main&sid=$sid">[Money Changer]</a>"; }

echo "Time to Change your plusses to money!";
echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";

echo "

"; echo "</body>"; echo "</html>"; exit(); } if(!hindi_pwede($uid)) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> "; echo "Stupid challenging your own self!

"; echo "Challenge other persons with the highest plusses! Target them! tnt.. Not your self! "; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>";

echo "

"; echo "</body>"; echo "</html>"; exit(); } if(!be_jailed($uid)) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> "; echo "You have been Jailed!

"; echo "Too many crimes committed.. The Police just cought you for that reason! <a href="police.php?action=main&sid=$sid">Pay bail bond!</a> "; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>";

echo "

"; echo "</body>"; echo "</html>"; exit(); } if(!is_dead($uid)) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> "; echo "Dead!

";

echo " $loste

Poor player! <a href="botika.php?action=main&sid=$sid">Buy Health Booster!</a> "; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>";

echo "

"; echo "</body>"; echo "</html>"; exit(); }

i'm hoping that this basics help you much, hehehe many good coders out there.. ask for help, you can approach me.. i also hope sooner that you can, yes you can do your very own game version of rpg

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

thanatos Senior · 261 posts #2

yeah this is useful.. thanks bro.. btw am i entitled to that 3% commission? hehe jst kiddin.. wag ka makakalimot kapag mayaman ka na ah hehe External image (may be gone)

Guest #3

This is how we make games posible..

Games Multiplayer like RPG, Crime City Tournament and more..

External image (may be gone) We thank all those who help me in coding that script, they will get 3 percent commision just after fifteen sales.. Thank you.. This showcase that 2wap or wapforum members are learning from the content of this forum.. Really this forum has the best scripts availabe.. As i browse some Filipino sites i see Natasu busy coding its RPG Game..

Let me help you..

in your script.. you must put activate zone and not in game declarer..

CODE

this will help you bro.. hope i help you in coding your very own version of RPG

/////////////////////////////////////is ingame function is_ingame($uid) { $sql = mysql_fetch_array(mysql_query("SELECT ingame FROM ibwf_users WHERE id='".$uid."'")); if($sql[0]>0) { return true; }else{ false; } } /////////////////////////////////////is activated function is_active($uid) { $sql = mysql_fetch_array(mysql_query("SELECT active FROM ibwf_users WHERE id='".$uid."'")); if($sql[0]>0) { return true; }else{ false; } }

/////////////////////////////////////////////////

if(!is_active($uid)) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> ";

if(getplusses(getuid_sid($sid))>100)
{
    echo "**PLEASE ACTIVATE!**

<a href="rpg.php?action=activate&sid=$sid">[ACTIVATE]</a>";

}
echo "**PLEASE ACTIVATE! to play**

"; echo "This game is for those only activated!"; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>";

echo "

"; echo "</body>"; echo "</html>"; exit(); } This is the one basic code in creating the game.. another code is

CODEif (!$playopen) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> "; echo "Error! Arena Clossed!

"; echo "Wait until the Admins open the Arena..."; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>"; echo " "; echo "</body>"; echo "</html>"; exit(); } $action = $_GET["action"]; $sid = $_GET["sid"]; $sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'")); $sitename = $sitename[0]; $uid = getuid_sid($sid); $theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'")); $who = $_GET["who"]; $bawas = $_GET["bawas"]; if((islogged($sid)==false)||($uid==0)) { echo "<head>"; echo "<title>Error!!!</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white_medium.css">"; echo "</head>"; echo "<body>"; echo " "; echo "You are not logged in "; echo "Or Your session has been expired

"; echo "<a href="http://pinoy2.com/index.php">Login</a>"; echo " "; echo "</body>"; echo "</html>"; exit(); } if(isbanned($uid)) { echo "<head>"; echo "<title>Error!!!</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="x"/> "; echo "You are Banned

"; $banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'")); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "Time Left:$rmsg "; $nick = getnick_uid($banto[2]); echo "By:$nick "; echo "Reason:$banto[1]"; echo "<a href="http://pinoy2.com/index.php">Login</a>"; echo " "; echo "</body>"; echo "</html>"; exit(); }

if(!is_active($uid)) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> ";

if(getplusses(getuid_sid($sid))>100)
{
    echo "**PLEASE ACTIVATE!**

<a href="rpg.php?action=activate&sid=$sid">[ACTIVATE]</a>";

}
echo "**PLEASE ACTIVATE! to play**

"; echo "This game is for those only activated!"; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>";

echo "

"; echo "</body>"; echo "</html>"; exit(); }

if(!can_play($uid)) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> "; echo "Insufficient Plusses

"; if(getplusses(getuid_sid($sid))<100) { echo "You need 100 Plusses or more!

"; echo "This game is for those have enough plusses! You can play other games to attain enough plusses "; echo "PLEASE Go to Funmenu! <a href="index.php?action=funm&sid=$sid">[Fun Menu]</a>";

}

echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";

echo "

"; echo "</body>"; echo "</html>"; exit(); } if(!can_buy($uid)) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> "; echo "You need to buy health booster! At our Botika!

";

if(getplusses(getuid_sid($sid))>100)
{
    echo "**PLEASE Go to Money Changer!**

<a href="money.php?action=main&sid=$sid">[Money Changer]</a>"; } echo "Time to Change your plusses to money!"; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>";

echo "

"; echo "</body>"; echo "</html>"; exit(); } if(!hindi_pwede($uid)) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> "; echo "Stupid challenging your own self!

"; echo "Challenge other persons with the highest plusses! Target them! tnt.. Not your self! "; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>";

echo "

"; echo "</body>"; echo "</html>"; exit(); } if(!be_jailed($uid)) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> "; echo "You have been Jailed!

"; echo "Too many crimes committed.. The Police just cought you for that reason! <a href="police.php?action=main&sid=$sid">Pay bail bond!</a> "; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>";

echo "

"; echo "</body>"; echo "</html>"; exit(); } if(!is_dead($uid)) { echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/white.css">"; echo "<head>"; echo "<body>"; echo " "; echo "<img src="../images/notok.gif" alt="!"/> "; echo "Dead!

";

echo " $loste

Poor player! <a href="botika.php?action=main&sid=$sid">Buy Health Booster!</a> "; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>";

echo "

"; echo "</body>"; echo "</html>"; exit(); }

i'm hoping that this basics help you much, hehehe many good coders out there.. ask for help, you can approach me.. i also hope sooner that you can, yes you can do your very own game version of rpg

Correct me if I'm wrong... you forgot return in this line

function is_active($uid) { $sql = mysql_fetch_array(mysql_query("SELECT active FROM ibwf_users WHERE id='".$uid."'")); if($sql[0]>0) { return true; }else{ false; } }

It must be

function is_active($uid)
{
$sql = mysql_fetch_array(mysql_query("SELECT active FROM ibwf_users WHERE id='".$uid."'"));
if($sql[0]>0)
{
return true;
}else{
return false;
}
}
Guest #4

bro help naman yan sa rpg coding na yan want ko din matuto eh.. buti p[a ikaw.. bihasa na sa coding ako nangangapa pa hehehe...tnx dude for sharing

inet Senior · 264 posts #5

Correct me if I'm wrong... you forgot return in this line It must be

function is_active($uid)
{
$sql = mysql_fetch_array(mysql_query("SELECT active FROM ibwf_users WHERE id='".$uid."'"));
if($sql[0]>0)
{
return true;
}else{
return false;
}
}

but my coding works well.. you always knew, that i am just noob.. but i made some thing to share..

yeah i admit i'm newbie in coding.. you know...

i just always think for possible codes..

return true else False

thats easy.. all i think thats the correct one..

but let me try your suggestions..

thanks..

i hope to improve well soon..

i'm ready to accept all Pagpapayo from the bihasa..

Thanks..

Congrats mino for 2years undefeated ..

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

Guest #6

but my coding works well.. you always knew, that i am just noob.. but i made some thing to share..

yeah i admit i'm newbie in coding.. you know... i just always think for possible codes.. return true else False

thats easy.. all i think thats the correct one..

but let me try your suggestions..

thanks..

i hope to improve well soon..

i'm ready to accept all Pagpapayo from the bihasa.. Thanks..

Congrats mino for 2years undefeated ..

Huh?? sorry for my first comment bro... Im also a noob in coding. I think your codes works well pa epal lng tnt

inet Senior · 264 posts #7

Jack en poy

CODEif($roomse==113) echo "jack-en-poy";

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

wizard Senior · 493 posts #8

Correct me if I'm wrong... you forgot return in this line It must be

function is_active($uid)
{
$sql = mysql_fetch_array(mysql_query("SELECT active FROM ibwf_users WHERE id='".$uid."'"));
if($sql[0]>0)
{
return true;
}else{
return false;
}
}

yea mino's correction is correct. you must use keyword return to return something.

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