Jump to content
MakeWebGames

corruptcity || skalman

Members
  • Posts

    358
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by corruptcity || skalman

  1. wb bud
  2. well i use http://www.hosting24.com/ for $7.84 (about 5 GBP for me) i get unlimitied webspace unlimited bandwidth, can pretty much as many crons as i need which is the 4 atm
  3. yeah it is but im pretty sure that you could put where ever you wanted to in the config and aslong as its the same code for the cron it will work
  4. dont forget to also go into register and staff_users and change brave there aswell if you change it in glob_funcs
  5. its ok happy to help m8
  6. yeah what you can do is go into phpmyadmin in users look for the userpass then in google search for a md5 converter http://www.iwebtool.com/md5 or here is the md5 for abc 900150983cd24fb0d6963f7d28e17f72 then paste that in the userpass field then you will be able to login but if you use abc make sure to change the password after
  7. ah ok thanks fbiss i thought you worked it out the otherway round
  8. i was watching the simpsons it was the angry dad episode my fav ep ever http://www.youtube.com/watch?v=hyM3HVdH1Kw
  9. im making a new mod and in there im using timestamps but as ive never used timestamps before i was wondering if what ive done is correct and will work im just going to post the the code for the timestamp check rather than the whole function ifs its wrong would you peeps be able to point me in the right direction? what i want is if the money been in the bank longer than 6 hours the user is allowed to remove it if not they have to wait some more thanks skal.   $q=$db->query("SELECT * FROM drugs_bank WHERE db_time = (unix_timestamp + 3600*60) WHERE userid = $userid"); if(mysql_num_rows($q) == 0) { echo"The time limit has expired yet please wait some more time"; }
  10. IMO SGU feels more like enterprise the last star trek spin off with jonathan archer rather than a stargate spin off
  11. what do you ppl think of LA then? when i 1st watched it i didnt like hattie lol she got on my nerves
  12. yeah also spent the weekend watching the whole season 5 aswell so it was all fresh in my mind i wonder how many more WTF or WTH moments the writers have in store for us?
  13. yh tell me about it i stayed up all night last night just to DL them once they had been aired in US and i was like WTF all the way thru the show
  14. XBLGT:ash1688 i mainly play cod 4 and cod6(MW2) atm
  15. ty dj and yeah jst waiting for the immortal thugs approval for this mod now lol
  16. illusions game layout mod gets my vote
  17. hi ino its been a while since ive posted anythink here but i have another freebie for yall basically its a stock monorail but ive add a few extras into it which give your users either a very good reward of a bad 1 good is money special items or crystals(or whatever your game uses) bad jail time the mod should worked ive tested in myself on my local copy of my game but in they case that it doesnt work for your post all the info and ill look into it and if ive made a mistake ill correct it on here for yall it does have some basic security but it could always be improved more ill also include the SQl for the 3 items if you decide on using them ( dont forget you will prob have to change the itmid and itemtype ok here it is just copy and paste over your monorail.php monorail.php <?php /* this FREE mod was made by skalman It is just a default monorail so you wont have to chance much if you decide to use this. As a FREE mod you cant claim it as your own, pass it off as your own or sell it or remove this banner what you can do it add to it or improve it but you must cleary stat that i made the original version of this mod Basically what this mod does is when your user goes to use the monorail there is a chance that the user will be detained of suspession of either being a terrorist drugs smuggling or smuggling diamonds once stopped the are 3 options either confess, lawyer up or try to flee CONFESS you confess to the crime are given a jail sentenace but are given 1 of 3 unique items. (ive made a soap on a string, a toothbrush shank and a Guards cat and nail tails) LAWYER UP You call in your very expensive to get you out of trouble, which is what he does he all say you should sue of unwillful detained which you will get money from and FLEE You try to run away which will either end in epic failure or you make it out of there. There is also the chance that you get away with all your diamonds(or whatever you use for crystals diamonds in my game) this mod does have some security but could prob do with a bit more( no doubt immortal thug will prob look over my amazing coding and recode and tell me its wrong then make it better lol. ty immortal if you do but remember credit where credits due) ill also comment where you can change the chance of getting caught, changing items, jail time, money, diamonds(crystals) and so on */ include_once(DIRNAME(__FILE__) . '/globals.php'); $_GET['to'] = mysql_real_escape_string(abs((int) $_GET['to'])); switch($_GET['action']) { case 'index': index(); break; case 'stopped': stopped(); break; case 'confess': confess(); break; case 'lawyerup': lawyerup(); break; case 'flee': flee(); break; default: index(); break; } if (!in_array($_GET['action'], array('index','stopped', 'confess', 'lawyerup', 'flee'))) { echo "Operation not understood!"; exit; } /*this is the default code from the stock monorail nothing has been changed */ function index() { global $db, $ir,$c,$userid,$h; $travel = (int) rand(1,100); /* this is the chance of getting caught default is 25%*/ if($travel < 25) { print"Stop You have been detained due to your illegal activies Please follow me to the [url='monorail3.php?action=stopped'] security center[/url]"; $h->endpage(); } if(!$_GET['to']) { print "Welcome to the Monorail Station. It costs \$1000 for a ticket. Where would you like to travel today? "; $q=$db->query(sprintf("SELECT * FROM cities WHERE cityid != {$ir['location']} AND cityminlevel <= {$ir['level']}")); print "<table width=75% cellspacing=1 class='table'><tr style='background:gray'><th>Name</th><th>Description</th><th>Min Level</th><th></th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td>{$r['cityname']}</td> <td>{$r['citydesc']}</td><td>{$r['cityminlevel']}</td> <td>[url='monorail.php?to={$r[']Go[/url]</td> </tr>"; } print "</table>"; } else { if($ir['money'] < 1000) { print "You don't have enough money."; } else if( ((int) $_GET['to']) != $_GET['to']) { print "Invalid city ID"; } else { $q=$db->query(sprintf("SELECT * FROM cities WHERE cityid = {$_GET['to']} AND cityminlevel <= {$ir['level']}")); if(!$db->num_rows($q)) { print "Error, this city either does not exist or you cannot go there."; } else { $db->query(sprintf("UPDATE users SET money=money-1000,location={$_GET['to']} WHERE userid=$userid")); $r=$db->fetch_row($q); print "Congratulations, you paid \$1000 and travelled to {$r['cityname']} on the monorail!"; } } } $h->endpage(); } /* this is where you go once youve been caught to choose your option*/ function stopped() { global $db, $ir,$c,$userid,$h; $stop = (int) (rand(1,3)); if($stop = 1) { print" You have been detained on suspession of being a terrorist. How do you want to pleade for this crime? [[url='monorail.php?action=confess&stop={$stop}']Confess[/url]] [[url='monorail.php?action=lawyerup&stop={$stop}']Call your lawyer[/url]] [[url='monorail.php?action=flee']attempt to flee[/url]] "; } else if($stop = 2) { print" You have been detained on suspession of drugs trafficking. How do you want to pleade for this crime? [[url='monorail.php?action=confess&stop={$stop}']Confess[/url]] [[url='monorail.php?action=lawyerup&stop={$stop}']Call your lawyer[/url]] [[url='monorail.php?action=flee']attempt to flee[/url]] "; } else { print" You have been detained on suspession of smuggling diamonds. How do you want to pleade for this crime? [[url='monorail.php?action=confess&stop={$stop}']Confess[/url]] [[url='monorail.php?action=lawyerup&stop={$stop}']Call your lawyer[/url]] [[url='monorail.php?action=flee']attempt to flee[/url]] "; } } /*this is where yo confess to 1 of the 3 crimes)*/ function confess() { global $db, $ir,$c,$userid,$h; /*This is where you set the jail time*/ $time = (int) (rand(75,150)); $_GET['stop'] = abs((int) $_GET['stop']); if($_GET['stop'] = 1) { print"For confessing to being a terrorist the courts have sentented you to {$time} in jail While in jail you found this item which the guard didnt find when you were released [url='index.php']Go home [/url]"; $db->query("UPDATE users SET jail=jail+{$time},jail_reason='confessed to being a terrorist' WHERE userid=$userid"); /*You will need to change the itemid if you use the 3 items ive made or if you want to use your own items*/ $db->query("INSERT INTO inventory ('','4',$userid,'1', 'jail'')"); $db-> } elseif($_GET['stop'] = 2) { print"For confessing to drugs trafficking the courts have sentented you to {$time} in jail While in jail you found this item which the guard didnt find when you were released [url='index.php']Go home [/url]"; $db->query("UPDATE users SET jail=jail+{$time},jail_reason='confessed to drugs trafficking' WHERE userid=$userid"); /*You will need to change the itemid if you use the 3 items ive made or if you want to use your own items*/ $db->query("INSERT INTO inventory ('','5',$userid,'1', 'jail'')"); } else { print"For confessing to smuggling diamonds the courts have sentented you to {$time} in jail While in jail you found this item which the guard didnt find when you were released [url='index.php']Go home [/url]"; $db->query("UPDATE users SET jail=jail+{$time},jail_reason='confessed to Diamond smuggling' WHERE userid=$userid"); /*You will need to change the itemid if you use the 3 items ive made or if you want to use your own items*/ $db->query("INSERT INTO inventory ('','6',$userid,'1', 'jail'')"); } } /*This is where you go when you lawyer up*/ function lawyerup() { global $db, $ir,$c,$userid,$h; /*This is where you can set the amount of money you can get as compensation*/ $money = (int) (rand(10000,25000)); $_GET['stop'] = abs((int) $_GET['stop']); if($_GET['stop'] = 1) { print"You make your call to your very expensive lawyer to get him to help you out, Once there your lawyer is able to get to released free of charge on a technicality and suggests that you sue for wrongful detained and is able to get you \${$money} in compensation [url='index.php']Go home [/url]"; $db->query("UPDATE users SET money=money+'{$money}' WHERE userid=$userid"); } else if($_GET['stop'] = 2) { print"You make your call to your very expensive lawyer to get him to help you out, Once there your lawyer is able to get to released free of charge on a technicality and suggests that you sue for wrongful detained and is able to get you \${$money} in compensation [url='index.php']Go home [/url] "; $db->query("UPDATE users SET money=money+'{$money}' WHERE userid=$userid"); } else { print"You make your call to your very expensive lawyer to get him to help you out, Once there your lawyer is able to get to released free of charge on a technicality and suggests that you sue for wrongful detained and is able to get you \${$money} in compensation [url='index.php']Go home [/url] "; $db->query("UPDATE users SET money=money+'{$money}' WHERE userid=$userid"); } } /*This is where you go when you try to flee*/ function flee() { global $db, $ir,$c,$userid,$h; $_GET['stop'] = abs((int) $_GET['stop']); /*this is for the success rate for fleeing*/ $flee = (int) (rand(1,100)); /*this is for the jail time if caught*/ $jailtime = (int) (rand(25,75)); /*this is for the amount of diamonds(crystals or whatever you use)*/ $diamonds = (int) (rand(1,10)); if($_GET['stop'] = 1) { print"After decideding that you cant spend any more time in jail you atempt to flee from the station. "; } else if($flee < 25) { print"You were able to run away from the station and to lose the goons that were chasing you, on your way out you were able to grab back the bag the diamonds were in when you got home you open the bag and in there is {$diamonds} diamond(s) [url='index.php']Go home [/url]"; } else if($flee > 25) { print"While running for the door out of nowhere 1 of the guards rugby tabkes you to the group and the other guards jump on you then when you get up a guard knocks you out and you awake to find yourself in jail for {$jailtime} [url='index.php']Go home [/url]"; $db->query("UPDATE users SET jail=jail+{$jailtime},jail_reason={tried to flee arrest} WHERE userd=$userid"); } if($_GET['stop'] = 2) { print"After decideding that you can spend any more time in jail you atempt to flee from the station. "; } else if($flee < 25) { print"You were able to run away from the station and to lose the goons that were chasing you, on your way out you were able to grab back the bag the diamonds were in when you got home you open the bag and in there is {$diamonds} diamond(s) [url='index.php']Go home [/url]"; } else if($flee > 25) { print"While running for the door out of nowhere 1 of the guards rugby tabkes you to the group and the other guards jump on you then when you get up a guard knocks you out and you awake to find yourself in jail for {$jailtime} [url='index.php']Go home [/url]"; $db->query("UPDATE users SET jail=jail+{$jailtime},jail_reason={tried to flee arrest} WHERE userd=$userid"); } if($_GET['stop'] = 3) { print"After decideding that you can spend any more time in jail you atempt to flee from the station. "; } else if($flee < 25) { print"You were able to run away from the station and to lose the goons that were chasing you, on your way out you were able to grab back the bag the diamonds were in when you got home you open the bag and in there is {$diamonds} diamond(s) [url='index.php']Go home [/url]"; } else if($flee > 25) { print"While running for the door out of nowhere 1 of the guards rugby tabkes you to the group and the other guards jump on you then when you get up a guard knocks you out and you awake to find yourself in jail for {$jailtime} [url='index.php']Go home [/url]"; $db->query("UPDATE users SET jail=jail+{$jailtime},jail_reason={tried to flee arrest} WHERE userd=$userid"); } } ?>   [mysql] INSERT INTO `items` (`itmid`, `itmtype`, `itmname`, `itmdesc`, `itmbuyprice`, `itmsellprice`, `itmbuyable`, `effect1_on`, `effect1`, `effect2_on`, `effect2`, `effect3_on`, `effect3`, `weapon`, `armor`) VALUES (1, 3, 'soap on a rope', 'a bar of soap type onto a bit of string', 0, 1000, 0, 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 25, 0), (2, 3, 'Toothbrush shank', 'a toothbrush with a razer blade melted into the toothbrush', 0, 1000, 0, 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 20, 0), (3, 3, 'Guards cat and 9 tails', 'a Guard whip for beating convicts that stepped out of line', 0, 1000, 0, 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 0, 'a:4:{s:4:"stat";s:6:"energy";s:3:"dir";s:3:"pos";s:8:"inc_type";s:6:"figure";s:10:"inc_amount";i:0;}', 30, 0); [/mysql]
  18. hi i am trying to make my own ammo mod for my game but im having a problem with my code atm everytime to go the ammoshop it insert 2 records the 1st 1 it only fills out 2 of the 4 fields ammoid and userid and the 2nd 1 is how i wanted it to be ive tried playing with the code and to see if ive missed anythink (i prob have) if you could be so kind to point me in the right direction of where the problems is or how to fix it i would be greatful here is the code
  19. there is 2 ways that you can do it $_get['tester'] = mysql_real_escape_string($_get['tester']); or $tester = mysql_real_escape_string($_get['tester']); and with that what you can also do is add like stripslash, abs, int, float, or whatever but just doing this $_get['tester'] = mysql_real_escape_string((abs(int) $_get['tester'])); but you can also use $db->escape(); if just using V2 i think hope this helps just ask if you need any other help
  20. its ok now fixed it didnt need the <img src bit lol but thanks for the help
  21. just had a quick test with the engine thats some good work youve got there keep it up matey
  22. ok im trying to make it that when you equip a wep in the users table it saves where the files can be found but im having problems getting it to work instead of doing what i want it to do its chucking out a SQL error and showing the pic instead of just equiping the weapon im gonna post the alter sql and the code and hopefully some1 can point me in the right direction here is the alter sql [mysql] ALTER TABLE `users` ADD `primarypic` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL ALTER TABLE `users` ADD `secondarypic` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL [/mysql] here is the stock equip_weapon plus my little bit of code <?php include "globals.php"; $_GET['ID'] = abs((int) $_GET['ID']); $id=$db->query("SELECT iv.*,it.* FROM inventory iv LEFT JOIN items it ON iv.inv_itemid=it.itmid WHERE iv.inv_id={$_GET['ID']} AND iv.inv_userid=$userid LIMIT 1"); if($db->num_rows($id)==0) { print "Invalid item ID"; $h->endpage(); exit; } else { $r=$db->fetch_row($id); } if(!$r['weapon']) { print "This item cannot be equipped to this slot."; $h->endpage(); exit; } if($_GET['type']) { if(!in_array($_GET['type'], array("equip_primary", "equip_secondary"))) { print "This slot ID is not valid."; $h->endpage(); exit; } if($ir[$_GET['type']]) { item_add($userid, $ir[$_GET['type']], 1); } item_remove($userid, $r['itmid'], 1); $db->query("UPDATE users SET {$_GET['type']} = {$r['itmid']} WHERE userid={$userid}"); if($r['itmpic']) { $itmpic = "[img=itmpics/".$r[]query("UPDATE users SET secendarypic = '{$itmpic}' WHERE userid={$userid}"); } else { $db->query("UPDATE users SET primarypic = '{$itmpic}' WHERE userid={$userid}"); } print "Item {$r['itmname']} equipped successfully."; } else { print "<h3>Equip Weapon</h3><hr /> <form action='equip_weapon.php' method='get'> <input type='hidden' name='ID' value='{$_GET['ID']}' /> Please choose the slot to equip {$r['itmname']} to, if there is already a weapon in that slot, it will be removed back to your inventory. <input type='radio' name='type' value='equip_primary' checked='checked' /> Primary <input type='radio' name='type' value='equip_secondary' /> Secondary <input type='submit' value='Equip Weapon' /></form>"; } $h->endpage(); ?>
×
×
  • Create New...