
Tcmaker
Members-
Posts
28 -
Joined
-
Last visited
Never
Tcmaker's Achievements
Newbie (1/14)
0
Reputation
-
A FREE Mobster game. Do what ya want. Mug, steal, Drive By, and Assassinate. These are all actions you can take to become Last Mobster's best! Donators within the game become Respected Mobsters with added features that enhance game play. http://www.lastmobster.com
-
i like this but i want all my bars at the top below the banner and just the user information where it is now could someone change this for me thanks
-
I need a crime system v1 that when a user fails they go to hosp or jail exactly like the v2 one basically but it needs to be working as i have tryed and tryed and cant get it to work please can someone test this for me as well just before posting thanks
-
thank you so much guys
-
I was thinking to stop people putting stupid names on games as there name a mod where they have to request to change name then this has to be approved by an admin but once they have submitted there name once they cant do this again till it has been approved or declined
-
QUERY ERROR: Unknown system variable 'help1' Query was SET help1=0 WHERE userid=363 on register.php QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Query was SELECT * FROM `fconoff` WHERE `userid` = loggedin.php
-
Richards Business Mod--Fixed With a few Things added.
Tcmaker replied to Joshua's topic in Free Modifications
Fully Tested Any Problems pm me business_home.php <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: homelogin.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(); include_once (DIRNAME(__FILE__). '/bbcode_parser.php'); global $ir,$c; echo '<table width=65% align=center><tr><td align=center><p class="heading">Your Job<hr width="50%"></p>'; $check = mysql_query(sprintf("SELECT * FROM `businesses_members` WHERE (`bmembMember` = '%u')", $ir['userid'])); $check_two = mysql_query(sprintf("SELECT * FROM `businesses` WHERE (`busDirector` = '%u')", $ir['userid'])); if(!mysql_num_rows($check_two) AND !mysql_num_rows($check)) { echo 'You are not a member of a Company right now, come back another time.'; $h->endpage(); exit; } else { $r = mysql_fetch_array($check); $b = mysql_fetch_array($check_two); $fetch_business = mysql_query(sprintf("SELECT * FROM `businesses` LEFT JOIN `businesses_classes` ON (`classId` = `busClass`) WHERE (`busId` = '%u') OR (`busId` = '%u')", $r['bmembBusiness'], $b['busId'])); if(!mysql_num_rows($fetch_business)) { echo 'This Company does not exist at this time, please come back later.'; $h->endpage(); exit; } else { $inf = mysql_fetch_array($fetch_business); } } switch ($_GET['p']) { case 'leave_business': leave_business(); break; case 'view_members': view_members(); break; case 'donate_cash': donate_cash(); break; case 'view_vault': view_vault(); break; default: business_index(); break; } function business_index() { global $ir, $inf, $c; echo '[b]'.stripslashes($inf['busName']).' options:[/b] '; if($inf['busDirector'] == $ir['userid']) { echo '[url="business_manage.php"]Manage Company[/url] '; } else { echo '[url="business_home.php?p=view_vault"]Donate to the Company[/url] '; echo '[url="business_home.php?p=leave_business"]Leave the Company[/url] '; } echo '[url="business_home.php?p=view_members"]View members[/url] '; $fetch_business = mysql_query(sprintf("SELECT * FROM `businesses` LEFT JOIN `businesses_classes` ON (`classId` = `busClass`) LEFT JOIN `users` ON (`userid` = `busDirector`) WHERE (`busId` = '%u')", abs((int) $inf['busId']))); if(!mysql_num_rows($fetch_business)) { echo 'You cannot view a Company that doesn\'t exist .'; } else { $r = mysql_fetch_array($fetch_business); $fetch_memberinfo = mysql_query(sprintf("SELECT * FROM `businesses_members` WHERE `bmembMember` = '%u'", $ir['userid'])); $mem = mysql_fetch_array($fetch_memberinfo); $realrank = mysql_query(sprintf("SELECT * FROM `businesses_ranks` WHERE (`rankId` = '%u')", $mem['bmembRank'])); $rname = mysql_fetch_array($realrank); if($mem['bmembRank'] == 0) { $rank='dont have an assigned rank'; } else { $rank='work as a '.($rname['rankName']).''; } if($mem['bmembCash'] >= 0){ $mcash='£'.number_format($mem['bmembCash']).''; } if(!$rname['rankPGain'] AND !$rname['rankPrim'] AND !$rname['rankSGain'] AND !$rname['rankSec']) { $gaininfo='You also receive 50 labour, 50 intelligence and 50 strength every day.'; } else { $gaininfo='You also receive '.($rname['rankPGain']).' '.($rname['rankPrim']).' and '.($rname['rankSGain']).' '.($rname['rankSec']).' every day.'; } if($mem['bmembRank'] == 0) { $gaininfo='You also receive 0 labour, 0 intelligence and 0 strength every day.'; } if($ir['userid'] == $r['busDirector']) { $rank='are the owner'; } if($ir['userid'] == $r['busDirector']) { $gaininfo='You also receive 50 labour, 50 intelligence and 50 strength every day.'; } echo '<hr width="50%"> You currently '.stripslashes($rank).' at '.stripslashes($r['busName']).' which is owned by [url="viewuser.php?u='.$r['userid'].'"]'.stripslashes($r['username']).'[/url]. You are paid '.($mcash).' at midnight TIL time every day! '.($gaininfo).' <hr width="50%"> <table width="50%" class="table"> <tr> <th colspan="2">Details of '.stripslashes($r['busName']).' - '.stripslashes($r['className']).'</th> </tr> <tr> <td colspan="2"><center>'.($r['busDesc']).'</center></td> </tr> <tr height="100"> <td colspan="2" valign="middle" align="center">'; if($r['busImage']) { echo '[img='.stripslashes($r['busImage']).']'; } else { echo '[img=dimage.jpg]'; } if($r['brank'] < 1000) { $stars='[img=job_star.gif]'; } if($r['brank'] > 1000) { $stars='[img=job_star.gif] [img=job_star.gif]'; } if($r['brank'] > 5000) { $stars='[img=job_star.gif] [img=job_star.gif] [img=job_star.gif]'; } if($r['brank'] > 35000) { $stars='[img=job_star.gif] [img=job_star.gif] [img=job_star.gif] [img=job_star.gif]'; } if($r['brank'] > 100000) { $stars='[img=job_star.gif] [img=job_star.gif] [img=job_star.gif] [img=job_star.gif] [img=job_star.gif]'; } $fetch_members = mysql_num_rows(mysql_query(sprintf("SELECT * FROM `businesses_members` WHERE `bmembBusiness` = '%u'", $r['busId']))); $fetch_memberinfo = mysql_query(sprintf("SELECT * FROM `businesses_members` WHERE `bmembMember` = '%u'", $ir['userid'])); $mem = mysql_fetch_array($fetch_memberinfo); $cd = mysql_query(sprintf("SELECT * FROM `userstats` WHERE `userid` = '%u'", $ir['userid'])); $fstats = mysql_fetch_array($cd); $realrank = mysql_query(sprintf("SELECT * FROM `businesses_ranks` WHERE (`rankId` = '%u')", $mem['bmembRank'])); $rname = mysql_fetch_array($realrank); if($mem['bmembRank'] <= 0) { $rank='None'; } else { $rank=''.($rname['rankName']).''; } if($mem['bmembCash'] == 0) { $mcash='$<font color=red>-'.number_format($mem['bmembCash']).'</font>'; } else if($mem['bmembCash'] > 0) { $mcash='<font color=green>+'.number_format($mem['bmembCash']).'</font>'; } echo '</td></tr> <tr> <td colspan="2"><center>[b]<u>Company Rank[/b]</u> '.$stars.'</center></td> </tr> <tr> <th colspan="2">Further information</th> </tr> <tr height="150"> <td colspan="2" valign="middle" align="center"> <table width="100%"> <tr> <td> [b]Type:[/b] '.stripslashes($r['className']).' [b]Director:[/b] [url="viewuser.php?u='.$r['userid'].'"]'.stripslashes($r['username']).'[/url] [b]Company bank:[/b] $'.number_format($r['busCash']).' [b]Employees:[/b] '.number_format($fetch_members).'/'.($r['busEmployees']).' [b]Days old:[/b] '.number_format($r['busDays']).' </td> <td> [b]Your details[/b] [b]Rank: [/b]'.stripslashes($rank).'[/b] [b]Income: [/b]'.($mcash).' [b]labour: [/b]'.number_format($fstats['labour']).' [b]Intelligence: [/b]'.number_format($fstats['IQ']).' [b]Strength:[/b] '.number_format($fstats['strength']).' [b]Company points:[/b] '.number_format($ir['comppoints']).' [[url="companyspecials.php"]Use[/url]] </td> </tr> <tr> <td> [b]Todays profit:[/b] $'.number_format($r['busProfit']).' [b]Yesterdays profit:[/b] $'.number_format($r['busYProfit']).' [b]Todays customers:[/b] '.number_format($r['busCust']).' [b]Yesterdays customers:[/b] '.number_format($r['busYCust']).' <center></td> </tr> </table>'; } echo ' <table width="100%" class="table"> <tr> <th>Action</th> <th>Time</th> </tr>'; $business_alerts = mysql_query(sprintf("SELECT * FROM `businesses_alerts` WHERE `alertBusiness` = '%u' ORDER BY `alertTime` DESC LIMIT 25", $inf['busId'])); while($ba = mysql_fetch_array($business_alerts)) { echo ' <tr> <td width="50%">'.stripslashes($ba['alertText']).'</td> <td width="20%">'.date('d-m-Y, g:i:s A', $ba['alertTime']).'</td> </tr>'; } echo '</table></table>'; } function view_vault() { global $ir, $inf, $c; echo '<form action="business_home.php?p=donate_cash" method="post"> Your Company has '.number_format($inf['busCash']).' secured in it\'s vault. [b]Donate cash:[/b] Cash amount: <input type="text" name="cash" /> <input type="submit" value="Donate cash"></form>'; } function donate_cash() { global $ir, $inf, $c; $_POST['cash'] = abs(@intval($_POST['cash'])); if($_POST['cash'] > 0) { if($_POST['cash'] > $ir['money']) { echo 'You do not have enough cash to donate this much to the Company.'; } else { mysql_query(sprintf("UPDATE `users` SET `money` = `money` - '%d' WHERE `userid` = '%u'", $_POST['cash'], $ir['userid'])); mysql_query(sprintf("UPDATE `businesses` SET `busCash` = `busCash` + '%d' WHERE `busId` = '%u'", $_POST['cash'], $inf['busId'])); echo 'You have donated \$'.number_format($_POST['cash']).' to the Company.'; business_alert($inf['busId'], "".$ir['username']." donated $".number_format($_POST['cash'])." to the Company."); } } else { echo 'You missed one or more of the required fields.'; } } function leave_business() { global $ir, $inf, $c; if($inf['busDirector'] != $ir['userid']) { if(!$_GET['confirm']) { echo 'You are about to leave the '.$inf['busName'].' Company. Please confirm this action. [url="business_home.php?p=leave_business&confirm=1"]Leave the Company[/url]'; } else { mysql_query(sprintf("DELETE FROM `businesses_members` WHERE (`bmembMember` = '%u')", $ir['userid'])); mysql_query(sprintf("UPDATE `users` SET `business` = '0' WHERE (`userid` = '%u')", $ir['userid'])); echo 'You have decided to leave the Company.'; } } else { echo 'You cannot leave the Company while still the director.'; } } function view_members() { global $ir, $inf, $c; echo '<table width="60%" class="table"> <tr> <th width="50%">Member name</th> <th width="50%">Job rank</th> </tr>'; $fetch_members = mysql_query(sprintf("SELECT * FROM `businesses_members` LEFT JOIN `users` ON (`userid` = `bmembMember`) LEFT JOIN `businesses_ranks` ON (`rankId` = `bmembRank`) WHERE `bmembBusiness` = '%u'", $inf['busId'])); while($fm = mysql_fetch_array($fetch_members)) { echo ' <tr> <td>[url="viewuser.php?u='.$fm['userid'].'"]'.stripslashes($fm['username']).'[/url] ['.$fm['userid'].']</td> <td>'.stripslashes($fm['rankName']).' (£'.number_format($fm['bmembCash']).')</td> </tr>'; } echo '</table></table>'; } $h->endpage(); ?> -
mate are you going to post for free or still going to sell as either way i would like this copy as i need this for my game
-
this guy maybe good at coding in v2 but certainly cant code in v1 well not as well as me
-
its about a year old as im the one who requested it
-
copy off another game mate
-
yep they are
-
this is my cron but it updates 25% but i want it to update 5 percent but it dont <?php require "mysql.php"; require "../../../../global_func.php"; global $c; mysql_query("UPDATE `users` SET `energy` = `energy` + 5 WHERE donatordays > 0"); mysql_query("UPDATE `users` SET `nerve` = `nerve` + 1 WHERE donatordays > 0"); mysql_query("UPDATE `users` SET `happy` = `happy` + 5 WHERE donatordays > 0"); ?>
-
i have this working on mailbox but for some reason not on forums