This is how we make games posible..
Games Multiplayer like RPG, Crime City Tournament and more..
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..
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
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 "<p align=\"center\">";
echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
";
if(getplusses(getuid_sid($sid))>100)
{
echo "<CENTER>PLEASE ACTIVATE!
<a href=\"rpg.php?action=activate&sid=$sid\">[ACTIVATE]</a></CENTER>";
}
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 "</p>";
echo "</body>";
echo "</html>";
exit();
}</div>
This is the one basic code in creating the game.. another code is
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>if (!$playopen)
{
echo "<head>";
echo "<title>$sitename</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white.css\">";
echo "<head>";
echo "<body>";
echo "<p align=\"center\">";
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 "</p>";
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 "<p align=\"center\">";
echo "You are not logged in
";
echo "Or Your session has been expired
";
echo "<a href=\"http://pinoy2.com/index.php\">Login</a>";
echo "</p>";
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 "<p align=\"center\">";
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 "</p>";
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 "<p align=\"center\">";
echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
";
if(getplusses(getuid_sid($sid))>100)
{
echo "<CENTER>PLEASE ACTIVATE!
<a href=\"rpg.php?action=activate&sid=$sid\">[ACTIVATE]</a></CENTER>";
}
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 "</p>";
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 "<p align=\"center\">";
echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
";
echo "<center>Insufficient Plusses</center>
";
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 "<CENTER>PLEASE Go to Funmenu!
<a href=\"index.php?action=funm&sid=$sid\">[Fun Menu]</a></CENTER>";
}
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
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 "<p align=\"center\">";
echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
";
echo "You need to buy health booster! At our Botika!
";
if(getplusses(getuid_sid($sid))>100)
{
echo "<CENTER>PLEASE Go to Money Changer!
<a href=\"money.php?action=main&sid=$sid\">[Money Changer]</a></CENTER>";
}
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 "</p>";
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 "<p align=\"center\">";
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 "</p>";
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 "<p align=\"center\">";
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 "</p>";
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 "<p align=\"center\">";
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 "</p>";
echo "</body>";
echo "</html>";
exit();
}
</div>
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
Games Multiplayer like RPG, Crime City Tournament and more..
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..
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
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 "<p align=\"center\">";
echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
";
if(getplusses(getuid_sid($sid))>100)
{
echo "<CENTER>PLEASE ACTIVATE!
<a href=\"rpg.php?action=activate&sid=$sid\">[ACTIVATE]</a></CENTER>";
}
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 "</p>";
echo "</body>";
echo "</html>";
exit();
}</div>
This is the one basic code in creating the game.. another code is
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>if (!$playopen)
{
echo "<head>";
echo "<title>$sitename</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white.css\">";
echo "<head>";
echo "<body>";
echo "<p align=\"center\">";
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 "</p>";
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 "<p align=\"center\">";
echo "You are not logged in
";
echo "Or Your session has been expired
";
echo "<a href=\"http://pinoy2.com/index.php\">Login</a>";
echo "</p>";
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 "<p align=\"center\">";
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 "</p>";
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 "<p align=\"center\">";
echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
";
if(getplusses(getuid_sid($sid))>100)
{
echo "<CENTER>PLEASE ACTIVATE!
<a href=\"rpg.php?action=activate&sid=$sid\">[ACTIVATE]</a></CENTER>";
}
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 "</p>";
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 "<p align=\"center\">";
echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
";
echo "<center>Insufficient Plusses</center>
";
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 "<CENTER>PLEASE Go to Funmenu!
<a href=\"index.php?action=funm&sid=$sid\">[Fun Menu]</a></CENTER>";
}
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
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 "<p align=\"center\">";
echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
";
echo "You need to buy health booster! At our Botika!
";
if(getplusses(getuid_sid($sid))>100)
{
echo "<CENTER>PLEASE Go to Money Changer!
<a href=\"money.php?action=main&sid=$sid\">[Money Changer]</a></CENTER>";
}
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 "</p>";
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 "<p align=\"center\">";
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 "</p>";
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 "<p align=\"center\">";
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 "</p>";
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 "<p align=\"center\">";
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 "</p>";
echo "</body>";
echo "</html>";
exit();
}
</div>
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
Comment