Nicholas Posted March 31, 2010 Share Posted March 31, 2010 how about making it so say you want to create a gang it will cost... $250,000 for the first gang and then once there is a gang in the game the next gang will cost $250,000 + $50,000 (each gang in game). for example... say there is 6 gangs in the game, yes? that be $50,000 X 6 = $300,000, then you add that to the $250,000 which will cost $550,000. so techically the next person that wants to buy a gang it will cost them $550,000. if you need more information, please contact me. :) Thanks, Nicholas. Quote Link to comment Share on other sites More sharing options...
Nicholas Posted March 31, 2010 Author Share Posted March 31, 2010 ahh figured it out... add this under include "globals.php"; $q=$db->query("SELECT gangID FROM gangs"); $gangs=$db->num_rows($q); $gangs = $gangs*50000; then find... if($ir['money'] < ???????) { die("You don't have enough money. You need \$???????."); } and replace it with this if($ir['money'] < $gangs) { echo "You don't have enough money. You need \$".number_format($gangs)."."; $h->endpage(); exit; } then find... <input type='submit' value='Create Gang for \$???????' /></form> and replace it with this <input type='submit' value='Create Gang for \$".number_format($gangs)."' /></form> then find... $db->query("UPDATE users SET gang=$i,money=money-??????? where userid=$userid"); and replace it with this $db->query("UPDATE users SET gang=$i, money=money-$gangs where userid=$userid"); Quote Link to comment Share on other sites More sharing options...
Nicholas Posted March 31, 2010 Author Share Posted March 31, 2010 sorry about the 3 posts lol but is there any chance you could move this to free modifications at all please? Quote Link to comment Share on other sites More sharing options...
Renkia Posted March 31, 2010 Share Posted March 31, 2010 Nice, Nic. :) But, you never thought it through again, dont mean to be harsh. But as in all games, not every member is rich. And if they created a gang, that cost all there money, and got destroyed. Then they will be pissed of, that the gang cost, has gone up. Witch will probs cost them loads of money, and decided to go bonkers. Lol. :p Quote Link to comment Share on other sites More sharing options...
Nicholas Posted March 31, 2010 Author Share Posted March 31, 2010 what do you mean by "i didnt think it through again" yes i know not everyone is rich in all games, but thats something to work towards... while training stats to stop the other gangs warring you and destorying your gang lol. on my game ive done it as X 20,000 for every gang in game. Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted March 31, 2010 Share Posted March 31, 2010 It is a great mod. :) Just create a new topic lol. And I know what Renkia means. But nice anyway! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.