Jump to content
MakeWebGames

gangsta life

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by gangsta life

  1. preety neat work ill bid 35$
  2. Am looking for a successfull game to buy with users online , and the site to be earning my budget is around £5000 which is dollar is around $6000+
  3. my sql table is called vp_accepted and these are my tables rows vpID int(11) vpBUYER vpFOR vpTYPE vpTIME vpTXN
  4. and yeh how much total donation from V.I.P
  5. it for version mccodes v2 and i want to log every donation say like a user donates $5 i want that automatically going into the logg for me so i can keep track of how much am earning easily and it shows when user donated who donated and how much total donation it basically for a vip section of mine my table is called vp_accepted so its a fixed price $25.00 to buy V.I.P so every time some buy v.i.p i want it in logs who bought ,when bought, what bought (ovious V.I.P ONLY) , how much (fix price $25.00) done
  6. can anyone code me a little donation log or give me a link towards as ifound none here please..;)
  7. ok i got a streets mod but everytime i press search i get this You found a total of 0 Crystals. You found a total of $0. You found a total of 0 Items. here is my file   <?php include "globals.php"; ?> <style type="text/css"> p.together { line-height: .5em; text-align: left; } </style> <?php $pointsf=0; $moneyf=0; $itemsf=0; $ritemf=0; $sritemf=0; print "<h3>Scavenge</h3> <hr> "; $_GET['action'] = mysql_real_escape_string($_GET['action']); $search=$ir['turns']; if($_POST['turns']>$search) { print("You do not have that many turns left. <a href='streets.php'><i>Continue ...</i></a> "); return; } if ($_GET['action'] != 'search') { $search=$ir['turns']; print "You can search the streets 25 times a day. You have {$search} turns left for today. You can find Crystals, Money, Items or even Gain EXP. "; print " <form method=post action=streets.php?action=search><input type=hidden name=action value=search><input type='text' name='search' value='{$ir['turns']}'> <input type=submit value='Search'></form> "; } else { $search=abs((int) $_POST['turns']); for($i=0;$i<$search;$i++) if ($ir['turns'] < 1) { print("You have searched all you can for today. Come back at newday. <a href='explore.php'><i>back to city</i></a> "); return; } else { $g=$i+1; $chance = rand(1,10); ## $chance = random numbr between 1 and 15 -- diferrent posiblities for search $chancepoints= rand (1,25); ## Chance to find points : tweak this to change the rate that you find points $chancemoney = rand (1,10); $chanceitem = rand (1,35); $chanceritem = rand (1,70); $chancesritem = rand (1,100); $query1=sprintf("UPDATE users SET turns=turns-1 where userid=$userid"); $db->query($query1); print"<p class='together'><b> $g : </b>"; if ($chance == 1) { print "Nothing here."; } ## CHANCE FOR POINTS if ($chance == 2) { if ($chancepoints < 23) { print "Nothing here."; } if ($chancepoints == 23) { $gain = rand(1,15); print "You found <b>$gain</b> Crystals."; $query2=sprintf("UPDATE users SET crystals=crystals+$gain where userid=$userid"); $db->query($query2); $pointsf=$pointsf+$gain; } if ($chancepoints == 24) { $gain = rand(1,10); print "You found <b>$gain</b> Crystals."; $query3=sprintf("UPDATE users SET crystals=crystals+$gain where userid=$userid"); $db->query($query3); $pointsf=$pointsf+$gain; } if ($chancepoints == 25) { $gain = rand(1,5); print "You found <b>$gain</b> Crystals."; $query4=sprintf("UPDATE users SET crystals=crystals+$gain where userid=$userid"); $db->query($query4); $pointsf=$pointsf+$gain; } } ## CHANCE FOR MONEY if ($chance == 3) { if ($chancemoney < 7) { print "Nothing here."; } if ($chancemoney == 7) { $gain = rand(50,100)*(floor($ir['level']/2)+1); print "You found <b> \$$gain</b>."; $query5=sprintf("update users set money=money+$gain where userid=$userid"); $db->query($query5); $moneyf=$moneyf+$gain; } if ($chancemoney == 8) { $gain = rand(75,150)*(floor($ir['level']/2)+1); print "You found <b> \$$gain</b>."; $query6=sprintf("update users set money=money+$gain where userid=$userid"); $db->query($query6); $moneyf=$moneyf+$gain; } if ($chancemoney == 9) { $gain = rand(50,100)*(floor($ir['level']*2)); print "You found <b> \$$gain</b>."; $query7=sprintf("update users set money=money+$gain where userid=$userid"); $db->query($query7); $moneyf=$moneyf+$gain; } if ($chancemoney == 10) { $gain = rand(150,300)*(floor($ir['level']/2)+1); print "You found <b> \$$gain</b>."; $query8=sprintf("update users set money=money+$gain where userid=$userid"); $db->query($query8); $moneyf=$moneyf+$gain; } } if ($chance == 4) { print "Nothing here. "; } ########################### ## CHANCE FOR COMMON ITEM # ########################### if ($chance == 5) { if ($chanceitem == 22) { ## RANDOM NUMBER FOR COMMON ITEM srand ((double) microtime() * 10000000); // $ri = array("9","52","53","54","8","30");**EXAMPLE** $ci = array("9","15","16"); ## Add You common Items ID to this array $cia = array_rand($ci,1); $common = $db->query("SELECT * FROM `items` WHERE `itmid`='".$ci[$cia]."' LIMIT 1"); $comi = mysql_fetch_array($common); $query9=sprintf("INSERT INTO inventory VALUES('',$ci[$cia],$userid,1)",$c); $db->query($query9); $itemsf = $itemsf +1; print " You found a/an {$comi['itmname']} !"; } else { echo "Nothing here."; } } if ($chance == 6) { print "Nothing here. "; } if ($chance == 7) { $gain = rand(50,100)*(floor($ir['level']*2)); print "You found <b> \$$gain</b>."; $query10=sprintf("update users set money=money+$gain where userid=$userid"); $db->query($query10); $moneyf=$moneyf+$gain; } if ($chance == 8) { $gain = rand(50,100)*(floor($ir['level']/2)+1); print "You found <b> \$$gain</b>."; $query11=sprintf("update users set money=money+$gain where userid=$userid"); $db->query($query11); $moneyf=$moneyf+$gain; } ########################## ## CHANCE FOR RARE ITEM ## ########################## if ($chance == 9) { if ($chanceritem == 25) { ## RANDOM NUMBER FOR RARE ITEM srand ((double) microtime() * 10000000); $ri = array("17","34","66"); ## Add Your Rare Items ID to this array $ria = array_rand($ri,1); $common = $db->query("SELECT * FROM `items` WHERE `itmid`='".$ri[$ria]."' LIMIT 1"); $ri = mysql_fetch_array($common); $query12=sprintf("INSERT INTO inventory VALUES('',$ri[$ria],$userid,1)",$c); $db->query($query12); $ritemf = $ritemf + 1; print " You found a/an {$ri['itmname']} !"; } else { echo "Nothing here."; } } ################################ ## CHANCE FOR SUPER RARE ITEM ## ################################ if ($chance == 10) { if ($chancesritem == 25) { ## RANDOM NUMBER FOR SUPER RARE ITEM srand ((double) microtime() * 10000000); $ri = array("73","70","75"); ## Replace numbers with your Super Rare Items ID to this array $ria = array_rand($ri,1); $common = $db->query("SELECT * FROM `items` WHERE `itmid`='".$ri[$ria]."' LIMIT 1"); $ri = mysql_fetch_array($common); $query13=sprintf("INSERT INTO inventory VALUES('',$ri[$ria],$userid,1)",$c); $db->query($query13); $sritemf = $sritemf + 1; print " You found a/an {$ri['itmname']} !"; } else { echo "Nothing here."; } } } $moneyf=number_format($moneyf); print " <hr></p> You found a total of <b> $pointsf </b>Crystals. You found a total of <b> \$$moneyf. </b> You found a total of <b> $itemsf </b> Items. "; if ($ritemf > 0){ print "<b> You found a total of<i> $ritemf </i>Rare Items.</b> "; } if ($sritemf > 0){ print "<b> You found a total of<i> $sritemf </i> Super Rare Items.</b> "; } print "<hr>"; if($ir['turns']==0) { print("You have searched all you can for today. Come back at newday. <a href='explore.php'><i>back to city</i></a> "); return; } else { print " <form method=post action=streets.php?action=search><input type=hidden name=action value=search><input type='text' name='search' value=' {$ir['turns'] }'> <input type=submit value='Search'></form>"; } } $h->endpage(); ?>
  8. does any one have working ONE click attack system for MCV2 please post here or give me a working link i have spent more than 4 hours looking every were for a working version but cant seem to find one Most of the link are old and cant be accessed no more so can some one help me out PLEASE?
  9. Oh soz LOL ill contact them yeh i have valid licence :)
  10. 3rd part your gang
  11. 2nd part your gang
  12. continued below
  13. staff houses files
  14. i have 4 file from the Mcv2.0.3 staff houses and the Your gangs,staff_gangs, and also staff.php basically in all of them there is a query problem in your gangs file it dont show Organised crimes where this is some in Table and also it has query prblems accept users application in Staff house there is query problems also it says unkown colums when trying to edit houses and adding houses and in staff.php basic setting dont seems to work what i mean is like update the table i have tried everything i will post below 4 files...
  15. just wanted some one to post me a useronline.php where is show users online in 15 mins, 30 mins, 24 hours i want it as text only like users online in 15 mins :1 || users online in 30 mins: 5 || usersonline in 24 hours: 100
  16. ok i wanted some thing where in the mianmenu in Mccodes you have a hover image tried everything but dont work something simmilar to Generic RPG GRPG menu basically you hover over it and it turn grey i want that dont know how had alot of goes dont work
  17. http://www.game-advertising-online.com/ this is something simmilar i want it display how many ads added and things like that but much more simple then that ill pay $15 :P it wount be hard for those who know coding im leanrning i want it only to buy ads space and show there ads
  18. way off topic but i need help making the most simplest Advertising site with a few files can some one start me off i want it to basically let people buy ads space for certain amount price and months and pick which kind they want display as like leader board etc.. they pick all infor include banner link etc.. and buy it and i get the money to paypal and there ads are shown all over and i want them to change not just stay on image but to like keep fliiping showing different ads.
  19. ok guys i neeed to secure all my file from sql injection and others anyone can help me i cant really pay atm i want everything secured as a guy went to my game an manage to find my staff password and he said he can drop my tables so i need securing all that ? any help or anything you can tell me like what code to put in where?
  20. in my Estate.php there seems to be an issue where i buy a house the will updates requiring to the house then once refreshed or clicked another link it goes back to 100 WILL and house is known as homeless??? also this estate i don't know why it dont function once the house is sold (which i tried before this problem came up ) the Will bar seemed to break and become soo long 356 something Will bar i dont want that. can anyone help me fix it i tried many ways am not too good at coding but making a Effort.. :)   <?php include "globals.php"; $mpq=mysql_query("SELECT * FROM houses WHERE hWILL={$ir['willmax']}",$c); $mp=mysql_fetch_array($mpq); $_GET['property']=abs((int) $_GET['property']); if($_GET['property']) { $npq=mysql_query("SELECT * FROM houses WHERE hID={$_GET['property']}",$c); $np=mysql_fetch_array($npq); if($np['hWILL'] < $mp['hWILL']) { print "You cannot go backwards in houses!"; } else if ($np['hPRICE'] > $ir['money']) { print "You do not have enough money to buy the {$np['hNAME']}."; } else { $db->query("UPDATE users SET money=money-{$np['hPRICE']},will=0,maxwill={$np['hWILL']},maxdealers={$np['maxdealers']} WHERE userid=$userid"); print "Congrats, you bought the {$np['hNAME']} for \${$np['hPRICE']}!"; } } else if (isset($_GET['sellhouse'])) { $npq=mysql_query("SELECT * FROM houses WHERE hWILL={$ir['willmax']}",$c); $np=mysql_fetch_array($npq); if($ir['willmax'] == 100) { print "You already live in the lowest property!"; } else { mysql_query("UPDATE users SET money=money+{$np['hPRICE']},maxwill=100,willmax=100 WHERE userid=$userid",$c); print "You sold your {$np['hNAME']} and went back to being homeless."; } } else { print "<center>Your current property: <font color=blue><b>{$mp['hNAME']}</b></font><br /> The houses you can buy are listed below. Click a house to buy it.<br />"; if($ir['maxwill'] > 100 && $ir['marriedwill'] == 0) { echo'<a href="?sellhouse">Sell Your House</a><br /><br />'; } $hq=mysql_query("SELECT * FROM houses WHERE hWILL>{$ir['willmax']} ORDER BY hWILL ASC",$c); while($r=mysql_fetch_array($hq)) { print "<br /> <table cellspacing=1 class='table'><tr style='background:gray;'><th>House</th><th>Pic</th><th>House Price</th><th>House Will</th><th>Buy?</th></tr>"; $hq=mysql_query("SELECT * FROM houses WHERE hWILL>{$ir['willmax']} ORDER BY hWILL ASC",$c); while($r=mysql_fetch_array($hq)) { print "<tr><td>{$r['hNAME']}</a></td> <td><img src='{$r['hPIC']}' width='137' height='72' alt='' /></td> <td>\$$t".money_formatter($r['hPRICE'],'')."</td> <td>{$r['hWILL']}</td> <td><a href='estate.php?property={$r['hID']}'>Buy</tr>"; } print "</table>"; } } $h->endpage(); ?>
  21. Add me on msn and ill give files [email protected]
  22. Okay i had made a new drug Mod but all i need now is one last file to be made i want some one to code it please i have no money to Pay atm so can you please code it for free :) basically i code a licence page to buy a drug licence and made a page where blah blah you get credited some drugs in your inventory which are not buyable in the game now all i want is this drug to be sold in a drug house Mod file but i dont know how to make it basically once you click on the file drug house it picks the drug item out from the inventory with the query then in the dropdown shows it i only want the drugs to show not everything in the inventory and next to it i want the quantity input so you can pick how many you want to sell then next to it a submit button once clicked it sumbmitted i want it to take 1 hour to sell and the sell price for that is random between $500,10000 and also once all of them are sold a event should update saying all drugs were sold for $random cash REMEMBER I DONT WANT USERS TO BUY THE DRUGS SO DONT PUT IN A LINK FOR USERS BUYING IT SHOULD BE AUTOMATIC LIKE AFTER 1 HOUR IT SELLS for a $random price in event it should say how much it sold for that all.i want please can some one make it for me?
  23. okay i have a gangs page where when i click orgnise crime the drop down list seems to eb empty when in the php my admin i added a test org crime any ideas? here is the staff_gangs.php script for adding org crimes function create_oc_form() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die('403'); } print " <form action='staff_gangs.php?action=createocsub' method='POST'> <h4>Create OC</h4> Name: <input type='text' name='ocNAME'/><br /> Minimum users for crime: <br /> <input type='text' name='ocUSERS'/> <br />Text: <br /><textarea rows=4 cols=40 name='ocSTARTTEXT' /></textarea> <br />Success Text: <br /><textarea rows=4 cols=40 name='ocSUCCTEXT' /></textarea> <br />Failure Text <br /><textarea rows=4 cols=40 name='ocFAILTEXT' /></textarea> <br />Minimum Possible Money <br /><input type='text' name='ocMINMONEY'/> <br />Maximum Possible Money <br /><input type='text' name='ocMAXMONEY'/> <br />Respect Gain <br /><input type='text' name='ocRESPECT'/> <input type='submit' value='Create' /> </form>"; } function create_oc_sub() { global $ir,$c,$userid,$db,$h; if($ir['user_level'] != 2) { die('403'); } $db->query("INSERT INTO orgcrimes VALUES('', '{$_POST['ocNAME']}', '{$_POST['ocUSERS']}', '{$_POST['ocSTARTTEXT']}', '{$_POST['ocSUCCTEXT']}', '{$_POST['ocFAILTEXT']}', '{$_POST['ocMINMONEY']}', '{$_POST['ocMAXMONEY']}')"); print " The organised crime was successfully created. <a href='staff_gangs.php?action=createoc'>>Back</a> "; stafflog_add("Created Organise Crime: {$_POST['ocNAME']}"); }   and here is the your gangs.php bit function gang_staff_orgcrimes() { global $db,$ir,$c,$userid,$gangdata; $_POST['crime'] = abs((int) $_POST['crime']); if($_POST['crime']) { if($gangdata['gangCRIME'] != 0) { print "Your gang is already doing a crime!"; } else { $db->query("UPDATE gangs SET gangCRIME={$_POST['ocNAME']},gangCHOURS=24 WHERE gangID={$ir['gang']}"); print "You have started to plan this crime. It will take 24 hours."; } } else { print "<h3>Organised Crimes</h3> <form action='yourgang.php?action=staff&act2=crimes' method='post'>Choose a crime that your gang should commit. <select name='crime' type='dropdown'>"; $cnt=$db->query("SELECT username FROM users WHERE gang={$gangdata['gangID']}"); $membs=$db->num_rows($cnt); $q=$db->query("SELECT * FROM orgcrimes WHERE ocUSERS <= $membs"); while($r=$db->fetch_row($q)) { print "<option value='{$r['ocID']}'>{$r['ocNAME']} ({$r['ocUSERS']} members needed)</option>"; } print "</select> <input type='submit' value='Commit' /></form>"; }   please help me im nooby in coding but making a effort
  24. gangsta life

    Help

    needed help on a little thing just wanted to know what do you have to do and what code is it when a person donates to the game they can pick a custom name color not just one boring color like using bbcode a muti color starting and ending color
  25. can some one post me the code the secured + working Stock Mod please it is giving me alot of trouble fixing it as i am not that much of a coder..
×
×
  • Create New...