Jump to content
MakeWebGames

gym pass


jamiee
 Share

Recommended Posts

Re: gym pass

I haven't ever made my own mod but if I were to spend my own personal time making a mod, I would want money for it. Just show some respect to the person that made that mod and buy it from them. It's not an expensive mod by any means.

Link to comment
Share on other sites

Re: gym pass

 

very easily..

like 20 lines of code if not less..

all you need is the gym pass and call this one dgympass.php or summit like that what ever and add i think its require

require ['donatordays']
print "This is for donators only"

 

its summit like that so dont be a div about it lol :-D

Link to comment
Share on other sites

Re: gym pass

 

<?php
/*-----------------------------------------------------
-- World Killers Codes
-- Created by madogdan
-- Copyright held 2005 by madogdan
-- vipdays.php
-----------------------------------------------------*/
session_start();
require "global_func.php";
if($_SESSION['loggedin']==0) { header("Location: login.php");exit; }
$userid=$_SESSION['userid'];
require "header.php";
$h = new headers;
$h->startheaders();
include "mysql.php";
global $c;
$is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error());
$ir=mysql_fetch_array($is);
check_level();
$fm=money_formatter($ir['money']);
$cm=money_formatter($ir['crystals'],'');
$lv=date('F j, Y, g:i a',$ir['laston']);
$h->userdata($ir,$lv,$fm,$cm);
$h->menuarea();
print <<<EOF
<h3>VIP Information Page</h3>
<table align='left'>

[/b]

<td>
<img src=paypal.gif>



If you become a VIP to World Killers,
you will receive
[b] [/b]:




[b]1st Offer ($10):[/b]<ul>[*]$1000000 game money
[*]1000 crystals
[*]200 IQ, the hardest stat to get in the game!
[*]30 days VIP Status: Green name + cross next to your name[*] Friend and Black Lists[*] 30% Energy every 5 mins instead of 8%[/list]

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type=hidden name=cmd value=_xclick>
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="item_name" value="WorldKillers|VIP|1|{$ir['userid']}">
<input type="hidden" name="amount" value="10.00">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://world-killers.justfreespace.com/vipdone.php?action=done">
<input type="hidden" name="cancel_return" value="http://world-killers.justfreespace.com/vipdone.php?action=cancel">
<input type="hidden" name="notify_url" value="http://world-killers.justfrespace.com/ipn/ipn_vip.php">
<input type="hidden" name="cn" value="Your Player ID">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
</table>
EOF;
$h->endpage();
?>

 

theres a VIP pack

Link to comment
Share on other sites

Re: gym pass

vipdone.php

<?php
/*-----------------------------------------------------
-- World Killers Codes
-- Created by madogdan
-- Copyright held 2007 by madogdan
-- INDEX.php
-----------------------------------------------------*/
session_start();
require "global_func.php";
if($_SESSION['loggedin']==0) { header("Location: login.php");exit; }
$userid=$_SESSION['userid'];
require "header.php";
$h = new headers;
$h->startheaders();
include "mysql.php";
global $c;
$is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error());
$ir=mysql_fetch_array($is);
check_level();
$fm=money_formatter($ir['money']);
$cm=money_formatter($ir['crystals'],'');
$lv=date('F j, Y, g:i a',$ir['laston']);
$h->userdata($ir,$lv,$fm,$cm);
$h->menuarea();
if($_GET['action'] == "cancel")
{
print "You have cancelled your VIP Status. Please become a VIP later...";
}
else if($_GET['action'] == "done")
{
if(!$_GET['tx'])
{
die ("Get a life.");
}
mysql_query("INSERT INTO vip_process VALUES ('',$userid,unix_timestamp(),'{$_GET['type']}');",$c);
print "Your donation has been processed. An admin will check it and you should be credited in about 24-48 hours.";
}
$h->endpage();
?>
Link to comment
Share on other sites

Re: gym pass

create file called vipgympass.php<?php

 

// VIP Gym Pass Mod
// Coded and Tested by LostOne (made into VIP only by madogdan)
// Not to be sold as a paid mod but free to use for C.E. members.

session_start();
require "global_func.php";
if($_SESSION['loggedin']==0)	{ 
header("Location: login.php");
	exit; 
		}
$userid=$_SESSION['userid'];
require "header.php";
$h = new headers;
$h->startheaders();
include "mysql.php";
global $c;
$is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error());
$ir=mysql_fetch_array($is);
check_level();
$fm=money_formatter($ir['money']);
$cm=money_formatter($ir['crystals'],'');
$lv=date('F j, Y, g:i a',$ir['laston']);
$h->userdata($ir,$lv,$fm,$cm);
if($ir['vipdays'] == 0)
}
die("This feature is for VIPs only.");
{
//Set below as the price you want to charger per level.
$pass = $ir['level'] * 500;

		echo "<center><h3>Gym Counter</h3>";

	if($_POST['submit'])	{
if($ir['vipgymp'] > 0)	{
echo "You dont need to by a VIP gym pass right now.";
	exit;
		}
if($ir['money'] < $pass)	{
echo "You dont have enough money to get a VIP gym pass, You need \$".$pass."";
	exit;
		}
if($ir['gymp'] == 0)	{
mysql_query("UPDATE users SET money = money - ".$pass." , vipgymp=7 WHERE userid=".$ir['userid']."",$c);
echo "Congratulations, you bought a VIP gym pass for ".money_formatter("$pass")."



		[url='vipgym.php']Start using your pass.[/url]";
	}	
 } else {
echo "Would you like to by a VIP gym pass for ".money_formatter("$pass")."

	[i]A VIP gym pass lasts for 7 days from the date of purchase.[/i]



			<form action='getvippass.php' method='post'>
			<input type='hidden' name='submit' value='submit'>
				<input type='submit' value='Yes' /></form>


				<form action='index.php' method='post'>
			<input type='submit' value='No' /></form>";
		}
	$h->endpage();
?>

and save more coming later

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.

 Share

×
×
  • Create New...