Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Tutorials and Tips

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-18-2012, 12:34 PM
Derpstra's Avatar
Derpstra Derpstra is offline
Seamstress!
 
Join Date: Aug 2012
Location: Seattle, WA/Charlotte, NC
Posts: 26
Gender: Female
Credits: 6,402
Derpstra is on a distinguished road
Default Page that gives users money

I just posted this in reply to somebody who needed this script and decided to post it here so others can find it. It's the easiest script I could come up with for this task.

PHP Code:
<?php

include("functions/functions.php");
include(
"functions/functions_users.php");
include(
"functions/functions_adopts.php");
include(
"functions/functions_friends.php");
include(
"functions/functions_items.php");
include(
"inc/lang.php");
include(
"inc/bbcode.php");

//***************//
//  START SCRIPT //
//***************//

$cashname grabanysetting("cost");
$reward1;

if(
$isloggedin == "yes"){
changecash($reward$GLOBALS['username'], $GLOBALS['money']);
$article_title "Hello, {$username}!";
$article_content "You have gained {$reward} {$cashname}.";
}
else{
$article_title "You are not logged in!";
$article_content "You must be logged in to view this page!";
}

//***************//
//  OUTPUT PAGE  //
//***************//

echo showpage($article_title$article_content$date);
?>
Just change the "$reward variable from 1 to whatever you want. :]
Reply With Quote
Reply

Tags
money, script


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give users more way to earn money? Skaiya Questions and Supports 30 04-23-2014 05:38 AM
Viewing a Page Adds and/or Takes Away Money Blizzard Questions and Supports 4 08-25-2012 10:23 AM
New Users auto redirect to page mapleblade Mys v1.2.x Mods 6 02-09-2012 10:47 AM
New Page and Sending Money and Multi-adopt help rockingroses Questions and Supports 3 12-20-2011 11:34 AM
Money Blue Icebox Questions and Supports 1 02-20-2009 02:19 AM


All times are GMT -5. The time now is 03:07 AM.

Currently Active Users: 1093 (0 members and 1093 guests)
Threads: 4,081, Posts: 32,029, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636