-
Posts
2,667 -
Joined
-
Last visited
-
Days Won
75
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
$25 id stick with the MCC version :)
-
Hope this helps added a fwe extra features for you cos im nice like that lol Now has an Action category that shows whos in hosp whos in jail and if they can be attacked.. <?php require "globals.php"; if ($_GET['time']) { $time=$_GET['time']; } else { $time=60; } $cn=0; $lk=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-1440*60"); $aa=mysql_num_rows($lk); $ll=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-60*60"); $ab=mysql_num_rows($ll); $lm=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-45*60"); $ac=mysql_num_rows($lm); $ln=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-30*60"); $ad=mysql_num_rows($ln); $lo=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60"); $ae=mysql_num_rows($lo); $he=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-1*60"); $hu=mysql_num_rows($he); $q=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-{$time}*60 ORDER BY laston DESC"); ?> <table border="0" class=table width="100%" cellpading="0" cellspacing="0"> <tr> <td class=table> <h3>Time Selecter</h3> <a href='usersonline.php?time=1'>(1 Min)</a><br /> <a href='usersonline.php?time=15'>(15 Mins)</a><br /> <a href='usersonline.php?time=30'>(30 Mins)</a><br /> <a href='usersonline.php?time=45'>(45 Mins)</a><br /> <a href='usersonline.php?time=60'">(60 Mins)</a><br /> <a href='usersonline.php?time=1440'>(24 Hours)</a><br /> </td> <td class=table> <h3>Statistics</h3> Users online in the last minute: <?php print"{$hu}"; ?><br /> Users online in the last 15 minutes: <?php print"{$ae}"; ?><br /> Users online in the last 30 minutes: <?php print"{$ad}"; ?><br /> Users online in the last 45 minutes: <?php print"{$ac}"; ?><br /> Users online in the last hour: <?php print"{$ab}"; ?><br /> Users online in the last 24 hours: <?php print"{$aa}"; ?><br /> </td> <tr> </table> <table border="0" class=table width="100%" cellpading="0" cellspacing="0"> <tr> <td class=table> <h3></h3> </td> <td class=table> <h3>Gang Tag</h3> </td> <td class=table> <h3><center>User</center></h3> </td> <td class=table> <h3>Last Action</h3> </td> <td class=table> <h3>Time Online</h3> </td> <td class=table> <h3>Action</h3> </td> </tr> <?php while($r=mysql_fetch_assoc($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $cn++; $name=$r['username']; $gangtag=$r['yourgangPREF']; if($r['donatordays'] > 0) { $donator="VIP:<img src='donator.gif' alt='Donator: {$r['donatordays']} Days Left' title='Donator: {$r['donatordays']} Days Left' />"; } if($r['donatordays'] == 0) { $donator=""; } if($r['user_level']== 2) { $staff="<img src='images/admin.gif' alt='Game Staff' />"; } if($r['user_level']== 1) { $staff=""; } if($r['userid']==1) { $owner=" <img src='images/owner.gif' alt='Game Owner' />"; } $r['username']="<b>$staff $owner $donator<a href='viewuser.php?u={$r['userid']}'><font color='{$r['colour']}'> $name</b></font></a>"; print "<tr> <td class=table> $cn. </td> <td class=table>"; if ($r['gang'] > 0) { print" <a href='gangs.php?action=view&ID={$r['gang']}'>View Gang</a> </td>"; } else { print" <small>No Gang</small> </td>"; } print" <td class=table> {$r['username']} </td> <td class=table> ($la $unit) </td> <td class=table>"; $lb=time()-$r['last_login']; $units="secs"; if($lb >= 60) { $lb=(int) ($lb/60); $units="mins"; } if($lb >= 60) { $lb=(int) ($lb/60); $units="hours"; if($lb >= 24) { $lb=(int) ($lb/24); $units="days"; } } if($r['laston'] <= time()-60*60) { $lb="offline"; $unit=""; } print "{$lb} {$units}</td>"; if($r['hospital'] > 0) { print"<td><small>Hospital</small></td>"; } if($r['jail'] > 0) { print"<td><small>Jail</small></td>"; } if($r['hospital'] == 0 AND $r['jail'] == 0) { print"<td><small>[<a href='attack.php?uid={$r['userid']}'>Attack</a>]</td>"; } print"</tr>"; } ?> </td> </tr> </table> <?php $h->endpage(); ?>
-
ayone remember the zapp engine or what ever its name was that was exactly the same as this idea and it went tits up
-
all i can see with this idea is arguments arguments and more arguments :)
-
send your installer.php to me via inbox
-
Snake for line 14 do the same as above just add pregmatch and a / before the first ^ and one before $" so its $/" if (!preg_match("/^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$/", $local_array[$i])) {
-
Stop morphine use in a fight. Please hlep with my code
Uridium replied to Hendrickson's topic in Requests & In Production
create 2 new entries in the users call it attsave and attrem ALTER TABLE users ADD attsave INT(11) NOT NULL default 0; ALTER TABLE users ADD attrem INT(11) NOT NULL default 0; Now in your attack.php add $db->query("UPDATE users SET attsave=0,attrem=0 WHERE userid=$userid"); to place where if a user cant fight for example they are in hosp or jail or low on energy or no weapon equipped or anywhere where the user needs to leave the page for example print "WTF you doing, bro?"; $db->query("UPDATE users SET attsave=0, attrem=0 WHERE userid=$userid"); // new entry print "<a href='index.php'> Leave here</a>"; $h->endpage(); exit; } now open header.php and get rid of the part that says you ran from the fight.. and add if($ir['attsave'] == 1 ) { die("<h1>Attack Count ERROR!</h1></h2>Your in a fight you cant just leave ?<br/><br/><b><a href='attack.php?ID={$ir['attrem']}'><br />Rejoin Fight!</a></b>"); } -
on line 6 change to >> if (!preg_match("/^[^@]{1,64}@[^@]{1,255}$/", $email)) {
-
Just change any mention of ereg to preg_match and you should be ok
-
Stop morphine use in a fight. Please hlep with my code
Uridium replied to Hendrickson's topic in Requests & In Production
Easiest way would be to stop users from re-directing to any page thus putting them back in the fight.... -
Nah didnt think you was shouting at me Sniko and I hope my post didnt come across the same..
-
Just to note you dont always need to use a code at the end of a Cron url and even if users manage to find the cron file to run, It still wouldnt work for them as its being called for by a file with a function to actually run the cron
-
adding code tags example [*php] at start of <?PHP and [*/php] will display the code neater remove the * from both
-
damn if he can get $20 for this i think i'll sell my version :)
-
Kryptonite this site does not hack or give refrerence to hacking of any games thread closed..
-
We are not a hacking forum end of Subject Thread Closed...
-
Only fools and horses
Uridium replied to Jordan Palmer's topic in Media Entertainment (FKA Tv Shows)
OFAH now what a programme that was one of the best sad day though when Learnard Pierece, Buster Merryfield, Kenneth Macdonald died the same year. You just dont get programmes like this anymore that show down to earth nitty gritty life styles. Some people didnt understand the nature of OFAH so disbanded it as a bad sit-com. With Ofah you either understood how they lived cos youd been there and done it or you just watched Dallas... Guess the laughter wont be the same now that John Sullivan has gone. -
well spotted and why didnt I think of that lol will now get round to updating the links...
-
HITMAN i gave up trying to find them i found them one then they changed the forum again
-
How to add an item to everyones inventory?
Uridium replied to Hendrickson's topic in General Discussion
Nicely helped out chicka :) thank you -
Player online attack limit once per 5 minutes
Uridium replied to Hendrickson's topic in Requests & In Production
but when attacked and they lose dont they usually end up in hosp for X amount of minutes ? -
This small mod will allow staff to decide which Links to show in inventory usually only SEND or EQUIP are hidden if you dont have items that do either so your left with SEND, ADD TO MARKET, or AUCTION, SELL which are always shown to the user but supposing we dont want RARE items to be sent to a user or added to the market. so heres how open up inventory.php find.. echo "</td><td>\${$i['itmsellprice']}</td><td>"; echo "$".($i['itmsellprice']*$i['inv_qty']); echo "</td><td>[<a href='iteminfo.php?ID={$i['itmid']}'>Info</a>] [<a href='itemsend.php?ID={$i['inv_id']}'>Send</a>] [<a href='itemsell.php?ID={$i['inv_id']}'>Sell</a>] [<a href='imadd.php?ID={$i['inv_id']}'>Add To Market</a>]"; and replace with print "</td><td>\${$i['itmsellprice']}</td><td>"; print "$".($i['itmsellprice']*$i['inv_qty']); print "</td><td>{$lt}</td></td>"; print "</td><td>[<a href='iteminfo.php?ID={$i['itmid']}'><small>Info</small></a>]"; /* test for link action */ if($i['showsend'] == 1) { print " [<a href='itemsend.php?ID={$i['inv_id']}'><small>Send</small></a>]"; } else { print""; } if($i['showmarket'] == 1) { print " [<a href='itemmarket.php?page=Add&Item={$i['inv_itemid']}'><small>Market</small></a>]"; } else { print""; } if($i['showauction'] == 1) { print " [<a href='auctionadd.php?ID={$i['inv_id']}'><small>Auction's</small></a>]"; } else { print""; } Ive just added 3 cut off switches showauction, showend and showmarket if you have more then just keep adding to it.. Now open up staff_items.php where you create your new item find <b>Usage Form</b> and above it add <hr /> <b>Usage Links: From here you can Switch on or off links visible for this item</b><hr /> <b>Show Send Link</b> <input type='radio' name='showsend' value='1' /> Yes <input type='radio' name='showsend' value='0' checked='checked' /> No<br /> <b>Show Market Link</b> <input type='radio' name='showmarket' value='1' /> Yes <input type='radio' name='showmarket' value='0' checked='checked' /> No<br /> <b>Show Auction Link</b> <input type='radio' name='showauction' value='1' /> Yes <input type='radio' name='showauction' value='0' checked='checked' /> No<br /> <b>Show Give To Clan Link</b> <input type='radio' name='showgiveclan' value='1' /> Yes <input type='radio' name='showgiveclan' value='0' checked='checked' /> No<br /> <hr /> now goto the INSERT INTO part and add this (ONLY IF YOU HAVENT MODIFIED YOUR COPY) $m=$db->query("INSERT INTO items VALUES('',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['showsend']}','{$_POST['showmarket']}','{$_POST['showauction']}','{$_POST['showgiveclan']}','{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor)"); Now for the EDIT ITEM part add Item Sell Value: <input type='text' name='itmsellprice' value='{$itemi['itmsellprice']}' /> <hr /> <b>Usage Links: From here you can Switch on or off links visible for this item</b><hr /> <b>Show Send Link</b> <input type='text' name='showsend' value='{$itemi['showsend']}' style=\"width:25px;\" maxlength=\"1\"/> Yes = 1 OR No = 0 <br /> <b>Show Market Link</b> <input type='text' name='showmarket' value='{$itemi['showmarket']}' style=\"width:25px;\" maxlength=\"1\"/> Yes = 1 OR No = 0<br /> <b>Show Auction Link</b> <input type='text' name='showauction' value='{$itemi['showauction']}' style=\"width:25px;\" maxlength=\"1\"/> Yes = 1 OR No = 0<br /> <b>Show Give To Clan Link</b> <input type='text' name='showgiveclan' value='{$itemi['showgiveclan']}' style=\"width:25px;\" maxlength=\"1\"/> Yes = 1 OR No = 0<br /> <hr /> before USAGE FORM and the UPDATE is $m=$db->query("INSERT INTO items VALUES('{$_POST['itmid']}',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['showsend']}','{$_POST['showmarket']}','{$_POST['showauction']}','{$_POST['showgiveclan']}', '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor)"); and add the new SQLS to phpmyadmin ALTER TABLE items ADD showsend TINYINT(2) NOT NULL DEFAULT 0; ALTER TABLE items ADD showauction TINYINT(2) NOT NULL DEFAULT 0; ALTER TABLE items ADD showmarket TINYINT(2) NOT NULL DEFAULT 0; ALTER TABLE items ADD showgiveclan TINYINT(2) NOT NULL DEFAULT 0; and your done
-
erased cron by accident, where can I find code?
Uridium replied to marvin's topic in General Discussion
if its V2 look in your config.php file for the key then look in installer.php at bottom for how to set them up -
Im not sure wether to delete this post or keep it, its that damn clown its so charming ;)