Jump to content
MakeWebGames

Free Gyms


grant

Recommended Posts

this is just a other way to get more gyms on your site

took me about 5 min to make fot a wld share

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

add in rollover.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

hope u like :D

Edited by grant
Link to comment
Share on other sites

  • 1 year later...

Im just messing around with grpg and the header and function was out of place so heres the fix version.

 

?

<?

include 'header.php';

$checkeffects = mysql_query("SELECT * FROM `effects` WHERE `userid`='$user_class->id'");

$numeffects = mysql_num_rows($checkeffects);

if($numeffects > 0){

echo Message("You can't train at the gym if you have an effect.");

include 'footer.php';

die();

}

$error = ($user_class->city == 1) ? "You must be in canada to get the cafe" : $error;

$error = ($user_class->city == 2) ? "You must be in canada to get the cafe" : $error;

$error = ($user_class->city == 4) ? "You must be in canada to get the cafe" : $error;

$error = ($user_class->city == 5) ? "You must be in canada to get the cafe" : $error;

$error = ($user_class->gyms == 0) ? "You Got Kicked Out The Cafe Warrior Come Back To Tomorrow" : $error;

 

 

 

?>

<?

if ($_GET['cup'] == "y"){

if($user_class->gyms > 0) {

$gyms = $user_class->gyms - 1;

$result = mysql_query("UPDATE `grpgusers` SET `hp` = '".$user_class->maxhp."', `gyms`='".$gyms."' WHERE `id`='".$_SESSION['id']."'");

echo Message("You got a cut of tea refiling your health");

} else {

echo Message("Time To Leave The cafe Warrior");

}

}

 

if ($_GET['fullb'] == "y"){

if($user_class->gyms > 0) {

 

$gyms = $user_class->gyms - 1;

 

$result = mysql_query("UPDATE `grpgusers` SET `hp` = '".$user_class->maxhp."', `gyms`='".$gyms."', `awake`='".$user_class->maxawake."' , `nerve`='".$user_class->maxnerve."' , `energy`='".$user_class->maxenergy."' WHERE `id`='".$_SESSION['id']."'");

echo Message("You got a full English breakfast and refulled all your bars that will get you of to a great day warrior");

} else {

echo Message("Time To Leave The Cafe Warrior");

}

}

 

 

 

?>

</p>

<table width="100%" border="0" class="contenthead">

<tr>

<td align="center">Cafe</td>

</tr>

</table>

<table width="100%" border="0" class="contentcontent">

<tr>

<td height="27" colspan="2" align="center">You Can Sit In The Cafe For [<?php echo $user_class->gyms ?>] More Breakfast's Warrior</td>

</tr>

<tr>

<td width="50%" align="center">

<img src="http://t3.gstatic.com/images?q=tbn:ANd9GcTrhSLT3urkuJYOyYgqbOuI7UQQTA5wIR9GoQoSXZxqziGwNQE1zg" border="0" alt="" /></p>

 

Drink A Cup Of Tea Refull Your Health</p>

 

<a href="http://3gyms.php?cup=y" target="_blank">Cup Of Tea</a></p></td>

<td width="50%" height="182" align="center">

<img src="http://www.bbcgoodfood.com/recipes/5820/images/5820_MEDIUM.jpg" border="0" alt="" /></p>

 

Get All Day Engish Breakfast And Refull All You Bar</p>

 

<a href="http://3gyms.php?fullb=y" target="_blank">Full English Breakfast</a></p></td>

</tr>

</table>

<table width="100%" border="0" class="contenthead">

<tr>

<td align="center">Menu</td>

</tr>

</table>

<table width="100%" border="0" class="contentcontent">

<tr>

<td height="64"></td>

</tr>

</table>

 

</p>

<?

include 'footer.php';

?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...