-
Posts
3,713 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Zero-Affect
-
[REVIEW] www.2452thegamev2.com ---- Please review!!
Zero-Affect replied to MaKaVeLi's topic in Browsergames
Re: [REVIEW] www.2452thegamev2.com ---- Please review!! interesting you always say that. right my review: Pro's: The register is great, love the way you did it. banner isn't so bad. coding is quite good. Con's: The login is basic the login button reminds me of criminalisland in the old days. You're theme is kinda basic. -
Re: [REVIEW] Dowtown Toronto RPG ~ review ok i don't want to be the bad guy here but radio mate add Change body { background-image: url(bg.jpg); background-color:#999999; margin-top: 0px; margin-bottom: 0px; font-family:Courier,ComicSansMS;font-size:12px;color:#000000; } into: body { background-attachment : fixed; margin-top : 0; margin-bottom : 0; font-family : calibri, helvetica, arial, geneva, sans-serif; font-size : 10px; } in your Downtown-to.css you can check your css @ CSS Validation (thanks to Tezza for the validation link). Have fun + 1 for the login page
-
Re: [mccode v2] Improved Robbery reminds me of breakin...
-
Re: [mccode] ZBank [$5.00] I added you on MSN and you never accepted me and i prefer not to do business here alot of people add me and are waiting for mods but my paypal is in limbo at the moment if you added me i probably denied because about 20 people try adding me a day for silly things mail me your msn and ill get back to you
-
Re: [V2] Robbery good job sniko +1
-
Re: [V2] Robbery <?php include "globals.php"; $luck = ($ir['level']) / 5; $crew = ($ir['crewmembers']) / $luck; $cashearn = $crew * 3; switch($_GET['action']) { case "buy": buy(); break; case "buycrew": buycrew(); break; case "commit"; commit(); break; default: index(); break; } print "<h3>Robbery</h3> [i]Hook up a robbery to earn some cash.[/i] [b]You currenltly have {$ir['crewmembers']} meaning there is a higher chance you succeed with more cash!"; function index() { global $db, $ir,$c,$userid,$h; print "[url='{$_SERVER[']Buy Crew Members[/url] [url='{$_SERVER[']Commit Robbery[/url] "; } function buy() { global $db, $ir,$c,$userid,$h; print "Buying an extra crew member for $1000 [url='{$_SERVER[']Buy a crew member ($1000)[/url] "; } function buycrew() { global $db, $ir,$c,$userid,$h; print "Buying A Crew Member "; if($ir['money'] < '1000') { print "<font color=red>Error!</font> You dont have enough for the crew member you need 1000 dollars [url='index.php']Back Home[/url] "; } if($ir['money'] > '999') { print "<font color=green>Success!</font> You buy a crew member for 1000 Dollars"; $db->query('UPDATE users SET money = money - 1000 WHERE userid = $userid'); $db->query('UPDATE users SET crewmembers = crewmembers + 1 WHERE userid = $userid'); } } function commit() { global $db, $ir,$c,$userid,$h; print 'Commiting The Robbery '; if($ir['crewmembers'] == '0') { print "<font color=red>Error!</font> You dont have any crew members, This isnt a one man job! [url='index.php']Back Home[/url] "; } if($ir['crewmembers'] > '1') { $chance=rand(1,2); if ($chance == 1); { print "<font color=green>Success!</font> The robbery goes to plan and you earn {$cashearn}!, All your crew members leave you as well!"; $db->query('UPDATE users SET money = money + {$cashearn}, crewmembers = 0 WHERE userid = $userid'); } else { print "<font color=green>Fail!</font> The robbery doesnt go to plan all your crew members were shot down by S.W.A.T, only you managed to flee away!"; $db->query('UPDATE users SET crewmembers = 0 WHERE userid = $userid'); } } $h->endpage(); ?> try that and just posting the error and not fixing it is a lil annoying guys try do things for yourself we wont be here to help forever + 1 sniko & MrGi
-
Re: [mccodes] Hospital Time this just gave me the best idea lol but im not sharing this one :-D just thought i'd show richard some appreciation + 1 mate
-
Re: [MCcode V2] Ranks can somoeone help me with adding the SQL for busts and crimes please ? :( look at the code and check the rows
-
Re: Validation. wow that fixed up my minor css errors the html one is complicated... lol Tezza your a start, a mackem but a star lol
-
Re: [V2] crystal Temple Thats how im starting to do mine, its better good mate its much longer coding but more secure i think and spacing has never been a issue with my codes... for example $query = sprintf('SELECT COUNT(`userid`) as count FROM `users` WHERE `donatordays` > %u', 20); $query = $db->query($query); $blah = $db->fetch_row($query); echo sprintf('%u user(s) have more than %u donator days.', $blah['count'], 20);
-
Re: [mccode] Mining mod Thanks i guess it could be a error on a older php we will have to wait till Nyna posts lol +1 to everyone lol don't forget the +1 back and no - lol
-
Re: Counting (nr game) what a waste of database space... do you lot have no life or just doing it for posts? 2105 lol
-
Re: [mccode] Mining mod exactly my point lol it seems to not error and i've been using '..' for along time unless i get bored and sprintf it lol
-
Re: [mccode] Mining mod '.$_SERVER['PHP_SELF'].' is no different to {$_SERVER['PHP_SELF']} i just use another method of brackets when you echo ''; you use '..' when you echo ""; you use {} i fail to see any error with this
-
Re: [mccode] Mining mod let me point something out to you all function mine_1() { global $ir,$c,$userid,$db;$domain; if($ir['power'] < 10) { echo sprintf(' <center> You need 5 power to mine here your have %u </center> </table> <tr> <td> <image src="bottom1.png"> </td> </tr> </table> ' , $ir['power'] ); $h->endpage(); exit; } $chance = mt_rand(1,5); $query = sprintf('UPDATE `users` SET power = power - %u WHERE userid = %u', 10, $userid); $db->query($query); $rand_gems = mt_rand(0,5); $rand_exp = mt_rand(1,100); $rand_hosp = mt_rand(5,15); if ($chance >= 2) { echo sprintf(' <center> You begin mining in the level 1 mine and found %u crystal(s). </center> ' , $rand_gems ); $query = sprintf('UPDATE `users` SET crystals = crystals + %u, mine_exp = mine_exp + %u WHERE userid = %u', $rand_gems, $rand_exp, $userid); $db->query($query); } if ($chance == 1) { $hospreason = 'Fell into the mine.'; echo sprintf(' <center> You tripped and fell in the mine, go to hospital for %u minutes. </center> ' , $rand_hosp ); $query = sprintf('UPDATE `users` SET crystals = crystals + %u, mine_exp = mine_exp + %u, hospital = hospital + %u, hospreason = "%s" WHERE userid = %u', $rand_gems, $rand_exp, $rand_hosp, $hospreason, $userid); $db->query($query); } safer, better looking & secure but i prefer my mine <?php require "globals.php"; echo 'Closed until further notice'; $h->endpage(); exit; $_POST['shaft'] = abs((int) $_POST['shaft']); echo '<h3>Mine Shaft</h3>'; $ashaft = array(10, 50, 100, 250, 500, 600, 750, 1000); if(in_array($_POST['shaft'], $ashaft)) { $costi = $ir['level']*2+3; // Normal level gain is +2 brave each level so $ir['level']*2+3 the plus 3 is because they start with 5 is the max will for the users level $cost = $costi/4; // the divide 4 allows multiple goes if oyu add a 3 they will get 3 goes and so on if($ir['brave'] < $cost) // checks to see if the user has enough brave { echo 'Invalid Command. You don\'t have enough brave for this shaft. >[url="'.$_SERVER['PHP_SELF'].'"]Go Back[/url]'; $h->endpage(); exit; } if($ir['level'] < $_POST['shaft']) // checks to see if the user has the right level { echo 'Invalid Command. You don\'t have the right level for this shaft. >[url="'.$_SERVER['PHP_SELF'].'"]Go Back[/url]'; $h->endpage(); exit; } if($_POST['shaft'] <= 250) // checks if its a money function { $earn = rand(1, $_POST['shaft'])*2; $Mtype = 'money'; // This is basically what tells the sql query several lines down what to add depending on shaft in this case money $dollar = '$'; } elseif($_POST['shaft'] > 250 AND $_POST['shaft'] <= 1000) // checks if its a crystal function { $earn = rand(1, $_POST['shaft'])/20; $Mtype = 'crystals'; // This is basically what tells the sql query several lines down what to add depending on shaft in this case crystals $dollar = ''; } $chance = rand(1, 3); if($chance == 3) { echo '<font color="green">[b]You\'re mining trip came out to be successful, you earned: '.$dollar.''.$earn.' '.$Mtype.' congratulations.[/b]</font>'; $query = sprintf('UPDATE `users` SET %s = %s + %u, brave = brave - %u WHERE userid = %u', $Mtype, $Mtype, $earn, $cost, $userid); // %s is text AND %u is numbers $db->query($query); } else { echo '<font color="red">[b]You\'re mining trip came out to be disastrous.[/b]</font>'; $query = sprintf('UPDATE `users` SET brave = brave - %u WHERE userid = %u', $cost, $userid); $db->query($query); } echo ' >[url="'.$_SERVER['PHP_SELF'].'"]Go Back[/url]'; $h->endpage(); exit; } else { echo ' <form action="'.$_SERVER['PHP_SELF'].'" method="post"> <table width="40%" class="h" border="1" align="center"> <tr> <th width=50%>Level</th> <th width=50%>Do</th> </tr> <tr align="center" class="h"> <td colspan="2">Money</td> </tr> <tr align="center"> <td>10</td> <td><input type="radio" name="shaft" value="1"></td> </tr> <tr align="center"> <td>50</td> <td><input type="radio" name="shaft" value="5"></td> </tr> <tr align="center"> <td>100</td> <td><input type="radio" name="shaft" value="10"></td> </tr> <tr align="center"> <td>250</td> <td><input type="radio" name="shaft" value="25"></td> </tr> <tr align="center" class="h"> <td colspan="2">Crystal</td> </tr> <tr align="center"> <td>500</td> <td><input type="radio" name="shaft" value="50"></td> </tr> <tr align="center"> <td>600</td> <td><input type="radio" name="shaft" value="60"></td> </tr> <tr align="center"> <td>750</td> <td><input type="radio" name="shaft" value="75"></td> </tr> <tr align="center"> <td>1000</td> <td><input type="radio" name="shaft" value="100"></td> </tr> <tr align="center" class="h"> <td colspan="2"><input type="submit" value="Mine"></form></td> </tr> </table> '; } $h->endpage(); ?> has seen on Mine Shaft Good luck guys
-
Re: [showcase] The One Use mine (not the one on my site) my free one is in free modifications somewhere.
-
Re: [mccode] Killing License my free codes are way more simple than my paid codes lol i have to make it more obvious what im doing in free codes and yeah i give configs and notes in paid but way more confusing buy usershops and ill show ya lol
-
Re: [mccode] Killing License wait till i look up more stuff later ill confuse everyone (with exception of Nyna)
-
Re: [mccodes V1-V2]Selling MYOP - Players can make their Own Donor Packs ($75) I don't *teach* bad things -- I demonstrate how easy it is to circumvent poor quality code as a function of building more secure and stable environments :D Bad things sounds technical, i have always wondered $userid runs from a session and if session can be edited you can be anyone you want :-D
-
Re: [mccodes V1-V2]Selling MYOP - Players can make their Own Donor Packs ($75) Yes Luke i agree you may get paid more than some people on here but im assuming you have alot of experience. 10 hours at 350 bucks is 35 bucks a hour which is roughly 15.00 that's pretty good im bored lol thought i would work that out
-
Re: [mccode] Killing License i know i was bored lol
-
Re: [mccodes V1-V2]Selling MYOP - Players can make their Own Donor Packs ($75) ok i had to post on here since i have seen a section of good and bad posts on here already. Luke has a point this can be done very easy i'd say with a little edit of sql maybe afew rows in selective tables and one php file i'd also make it autocredit and send full details of the pack in paypal and i still wouldn't charge 75 bucks. i wouldn't charge 75 bucks for anything (unless i know it is worth 75) not worth 75 bucks for afew php files and one sql i'd want so much more... but i will give you + 1 for effort i suggest lowering the price then edit it later with extra options... only big games like torncity / coveofpirates / mafiacorruption / amazonsurvival would pay something like that for a mod the smaller games are lucky to make 25 bucks a week why do you think php mods are cheap... anyways +1 and goodluck with sales
-
Re: [mccode] Killing License i'd go with something like $Htime = mt_rand(1,30); $query = sprintf('UPDATE `users` SET hosptime = hosptime + %u WHERE userid = %u', $Htime, $userid); $db->query($query); but i guess that's just me