Jump to content
MakeWebGames

Hatchet

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Hatchet's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: [TGM] User Rating System [TGM]   u r teh sux preston, i wull du it in 4 mins!
  2. Re: Does anyone know....? you look very suspicious to me.
  3. Re: What is the most liked type/style of game? Zombies. FTW.
  4. Re: stats cap $ir['money']=number_format($ir['money']); or whatever the variable is and you could always use money formatter.
  5. Re: Hospital time So it doesnt go into negatives   mysql_query("UPDATE users SET hospital=0 WHERE hospital<0", $c);
  6. Re: Hospital time something like http://criminalexistence.com/ceforums/i ... pic=1336.0
  7. [Lite] Jail make a cron to lower the jail time by 1 min every minute.   if($ir['jail'] != 0) { print "<center>You cannot access this page</center> [url='index.php']<center>> Back</center>[/url]"; $h->endpage(); exit; } add that to pages you dont want people to access when in jail
  8. [Lite] Jail make sure theres no space between <?php and the top line
  9. User Notepad make it editable in index and viewable by only staff in viewuser.... :whistle:
  10. adding a crime panel in admin panel   function crime_dropdown($connection,$ddname="crime",$selected=-1) { $ret="<select name='$ddname' type='dropdown'>"; $q=mysql_query("SELECT * FROM crime ORDER BY crimeNAME ASC",$connection); if($selected == -1) { $first=0; } else { $first=1; } while($r=mysql_fetch_array($q)) { $ret.="\n<option value='{$r['crimeID']}'"; if ($selected == $r['crimeID'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.= ">{$r['crimeNAME']}</option>"; } $ret.="\n</select>"; return $ret; }   Just need to add an s to crime on the mysql query.
  11. adding a crime panel in admin panel might want to change   CrimeITEXT: <input type='text' name='crimeITEXT' value='{$itemi['crimeITEXT']}' />   to   CrimeITEXT: <textarea rows=4 cols=40 name='crimeITEXT' /></textarea>
  12. Jail break Why not make it cost something to attempt?
  13. [Lite] Jail It should be mysql_query("UPDATE users SET jailreason='failed a crime' WHERE userid=$userid", $c);   I left off the ; by accident. sorry.
  14. [Lite] Jail I took my time making it and it isn't really that hard to make.... so I'll post it if I want :)
  15. This should work for lite.   run this mysql query   ALTER TABLE `users` ADD `jail` INT( 11 ) NOT NULL , ADD `jailreason` VARCHAR( 255 ) NOT NULL ;   shit looks good to me :burp: if you want to add a simple jail script after failing a crime find in docrime.php else { print $r['crimeFTEXT']; and after that add $jailtime=(int) rand(10,30); mysql_query("UPDATE users SET jail=$jailtime WHERE userid=$userid", $c); mysql_query("UPDATE users SET jailreason='failed a crime' WHERE userid=$userid", $c);   thats pretty stupid and basic though
×
×
  • Create New...