Jump to content
MakeWebGames

HITMAN 17

Members
  • Posts

    1,145
  • Joined

  • Last visited

Everything posted by HITMAN 17

  1. Re: [mccode] Advanced Warning System here guys have this v2 version they i converted it woks perfectly make a file warnings.php <?php include 'globals.php'; if($ir['user_level'] != 2 && $ir['user_level'] != 3) { echo"Staff Only!"; $h->endpage(); exit; } switch($_GET['action']) { case 'add': addwarning(); break; case 'addsub': addwarning2(); break; case 'del': deletewarning(); break; case 'edit': editwarning(); break; case 'edit2': editwarning2(); break; default: index(); break; } function index() { global $ir,$c,$userid; ?><h3>Viewing Warnings For ID: [url='viewuser.php?u=<? echo $_GET[']'><? echo $_GET['user']; ?>[/url]</h3> <? $q=mysql_query("SELECT w.*,u.* FROM warnings w LEFT JOIN users u ON w.warner=u.userid WHERE w.user={$_GET['user']} ORDER BY w.time DESC",$c); ?><center><font color="#FF0000"><h4>Total Warnings: <? echo mysql_num_rows($q); ?></h4></font> [[url='warnings.php?action=add&userid=<? echo $_GET[']&user=<? echo $_GET['user']; ?>'>Add Warning[/url]] <table width=90% border=1 align=center><tr><tr style='background: gray'><td>Warned By:</td><td width=40%>Reason</td><td>Date</td><td>Links</td></tr><? while($r=mysql_fetch_array($q)) { $warned=date('F j, Y, g:i:s a',$r['time']); ?><tr><td>[url='viewuser.php?u=<? echo $r[']'><? echo $r['username']; ?>[/url]</td><td><? echo $r['warnedfor']; ?></td><td><? echo $warned; ?></td><td><? if($ir['user_level'] == 2) { ?>[[url='warnings.php?action=del&ID=<? echo $r[']&user=<? echo $_GET['user']; ?>'>Remove[/url]] <? } if($ir['user_level'] == 2) { ?>[[url='warnings.php?action=edit&ID=<? echo $r[']&user=<? echo $_GET['user']; ?>'>Edit[/url]]<? } ?></td></tr><? } ?></table> [url="viewuser.php?u=<? echo $_GET['user']; ?>"][b]Back[/b][/url]</p> <? } function addwarning() { global $ir,$c,$userid; ?> <form action="warnings.php?action=addsub&user=<? echo $_GET['user']; ?>" method="post"> <input style="visibility: hidden" name="user" value="<? echo $_GET['userid']; ?>"> Reason: <textarea rows="7" cols="30" name="reason"></textarea> <input type="submit" value="Add warning"></form><? } function addwarning2() { global $ir,$c,$userid; $_POST['user']=($_POST['user']); $_POST['reason']=($_POST['reason']); mysql_query("INSERT INTO warnings VALUES ('','{$_POST['user']}','{$_POST['reason']}','$userid',unix_timestamp())",$c); event_add($_POST['user'],"You have been given a warning, <font color='red'>if you have 6 warnings you could find yourself in Fed</font>.", $c); $checkfed=mysql_query("SELECT * FROM warnings WHERE user='{$_POST['user']}'",$c); if((mysql_num_rows($checkfed) % 6)==0 && mysql_num_rows($checkfed) != 0) { mysql_query("UPDATE users SET fedjail=1 WHERE userid='{$_POST['user']}'",$c); mysql_query("INSERT INTO fedjail VALUES('','{$_POST['user']}','100','$userid','Reached 6 warnings in game. Account jailed.')",$c); ?> Fedded for having 6 warnings.</p><? } ?> Warning Added</p> [*][url='viewuser.php?u=<? echo $_POST[']'>Back to users profile[/url] [*][url='warnings.php?user=<? echo $_GET[']'>Back to warnings[/url] <? } function deletewarning() { global $ir,$c,$userid; if($ir['user_level'] != 2) { die("Owner Only");} mysql_query("DELETE FROM warnings WHERE id={$_GET['ID']}",$c); ?>Warning Deleted. [url="warnings.php?user=<? echo $_GET['user']; ?>"][b]Back[/b][/url]<? } function editwarning() { global $ir,$c,$userid; $target=$_GET['ID']; $edit=mysql_query("SELECT * FROM warnings WHERE id='$target'",$c); while($r=mysql_fetch_array($edit)) { if($r['warner'] != $userid || $ir['user_level'] != 2) { die("You never set this warning, therefore cannot edit it"); } ?><h3>Edit Warning</h3> <form action="warnings.php?action=edit2&user=<? echo $_GET['user']; ?>" method="post"> <input style='visibility: hidden;' name="id" value="<? echo $target; ?>"> <textarea rows="7" cols="30" name="reason"><? echo $r['warnedfor']; ?></textarea> <input type="submit" value='Edit Warning'></form><? } } function editwarning2() { global $ir,$c,$userid; mysql_query("UPDATE warnings SET warnedfor={$_POST['reason']} WHERE id={$_POST['id']}",$c); ?>Warning Updated. [*][url='warnings.php?user=<? echo $_GET[']'>[b]Back[/b][/url]<? } $h->endpage(); ?> upload this sql to the database CREATE TABLE `warnings` ( `id` int( 11 ) NOT NULL AUTO_INCREMENT , `user` int( 11 ) NOT NULL default '0', `warnedfor` text NOT NULL , `warner` int( 11 ) NOT NULL default '0', `time` int( 11 ) NOT NULL default '0', PRIMARY KEY ( `id` ) ) ENGINE = MYISAM AUTO_INCREMENT =18 DEFAULT CHARSET = latin1; then in viewuser.php find: [b]Days Old:[/b] {$r['daysold']} Days Old "; replace with: [b]Days Old:[/b] {$r['daysold']} Days Old "; $w=$db->query("SELECT * FROM warnings WHERE user={$r['userid']}",$c); print " <font color=red>Warnings: ".mysql_num_rows($w)." "; if($ir['user_level'] > 1) { print "|| [<a href=warnings.php?action=index&user={$r['userid']}>Manage</a>]"; } print "
  2. Re: [V2]Crystal Smuggling Mod[V2] SQL query: UPDATE `a5069509_a5069509`.`users` SET `smuggling` = '100' WHERE `users`.`userid` =1 LIMIT 1 MySQL said: Documentation #1054 - Unknown column 'smuggling' in 'field list'
  3. Re: [V2]Crystal Smuggling Mod[V2] UPDATE `mydatabase_mydatabase`.`users` SET `smuggling` = '100' WHERE `users`.`userid` =1 LIMIT 1 so i just insert that into database;
  4. Re: [V2]Crystal Smuggling Mod[V2] so which bit needs editing
  5. Re: [v1] Bar Room w/ Chat FREE this can be seen here look wats wrong http://www.tbrpg.890m.com/barroom.php
  6. Re: Free Loan Shark System nope u are right it dont work
  7. Re: [V2]Crystal Smuggling Mod[V2] emm it keeps saying You Can Only Go Sailing Once A Day y i havent teven done it once
  8. Re: Free (v2) money market banking works like clock work you can see this working at www.tbrpg.890m.com
  9. Re: [V2]Jail Attack[V2] Not Tested thts wat he said at the start if u read the post
  10. Re: [mccode] voting Pimped Out edit some of the site wat are on there mate
  11. Re: [Mccode][Free] House Pictures   is there a sql to do that
  12. Re: [Mccode][Free] House Pictures sql is wrong here seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem ERROR: Unclosed quote @ 111 STR: ' SQL: ALTER TABLE `houses` ADD `hPIC` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT ' MySQL said: Documentation #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''[/img]' at line 1
  13. Re: [v1] New criminal.php layout (FREE) cheers mate i ow u 1 credit remind me when shop is open
  14. Re: Free (v2) money market banking Parse error: syntax error, unexpected '>' in /home/a5069509/public_html/moneymarket.php on line 99
  15. Re: [v1] New criminal.php layout (FREE) looks cool but better if v2s
  16. Re: FREE ADVANCED USERSONLINE MOD its still not working have i added in the right place <?php // Made by Daniel Robert // Free mod advanced useronline for v1 // Please do not resell // Please leave this note // Other than that have a nice time // Don't do drugs. They aren't good for you. // Usersonline.php include "globals.php"; if($r['user_level'] == 2) { $user="<font color='red'>{$r['username']}</font>"; } else if($r['user_level'] == 3) { $user="<font color='green'>{$r['username']}</font>"; } else if($r['user_level'] ==5) { $user="<font color='yellow'>{$r['username']}</font>"; } else { $user="{$r['username']}"; } $cn=0; echo "<table width='500' border='2' height='20' class='table' bordercolor='#666666'> <tr> <th height='6'><u>Order</u></th> <th><u>Name</u></th> <th><u>ID</u></th> <th><u>Level</u></th> <th><u>Gender<u/></th> <th><u>Last Action<u/></th> <th><u>Money</u></th> <th><u>Location</u></th> <th><u>Gang</u></th> <th><u>Attack</u></th> </tr>"; $q=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC"); while($r=mysql_fetch_array($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"; } } if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } $cn++; $gq=mysql_query("SELECT g.*,oc.* FROM gangs g LEFT JOIN orgcrimes oc ON g.gangCRIME=oc.ocID WHERE g.gangID={$r['gang']}",$c);$gangdata=mysql_fetch_array($gq); $cz = mysql_query("SELECT * FROM `cities` WHERE `cityid` = '".$r["location"]."'"); $ck = mysql_fetch_array($cz); echo "<tr> <td>$cn.</td> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url]</td> <td>{$r['userid']}</td> <td>{$r['level']}</td> <td>{$r['gender']}</td> <td>$str</td> <td>$".money_formatter($r['money'], "")."</td> <td>{$ck['cityname']}</td> <td>[url='gangs.php?action=view&ID={$r[']<font color=red>{$gangdata['gangNAME']}[/url]</font></td> <td><a href='attack.php?ID={$r['userid']}'>Attack "; if($r['gender'] == 'Female') { echo "Her"; } else { echo "Him"; } echo "</a></td> </tr>"; } echo "</table>"; $h->endpage(); ?>
  17. Re: (New) Feature Vip News [V1] ye some but not all mate and u cant talk
  18. Re: [mccode] Mining mod anyone have the v2 one that they could post here please that works and that includes crons
  19. Re: Crons Guide by the way just to let ppl know this is v1 crons not v2
  20. Re: who likes mccodes? ye same lol as it helps me get better at coding and understand more things
  21. Re: (New) Feature Vip News [V1] he posts ie spamming cause he wants to get hist credits up
  22. i love mccodes my favourite version is version 2
  23. Re: New Website No Crons lol if u have paid for the mods you shud get a manual
  24. Re: SMF & MCCodes? i havent but i wanna lol
  25. Re: free top gangs nope tell u what can u insert it on my login script here <?php session_start(); include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } print <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{$set['game_name']}</title> <script language="JavaScript"> <!-- function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function DeleteCookie (name,path,domain) { if (GetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } // --> </script> <script language="JavaScript"> var usr; var pw; var sv; function getme() { usr = document.login.username; pw = document.login.password; sv = document.login.save; if (GetCookie('player') != null) { usr.value = GetCookie('username') pw.value = GetCookie('password') if (GetCookie('save') == 'true') { sv[0].checked = true; } } } function saveme() { if (usr.value.length != 0 && pw.value.length != 0) { if (sv[0].checked) { expdate = new Date(); expdate.setTime(expdate.getTime()+(365 * 24 * 60 * 60 * 1000)); SetCookie('username', usr.value, expdate); SetCookie('password', pw.value, expdate); SetCookie('save', 'true', expdate); } if (sv[1].checked) { DeleteCookie('username'); DeleteCookie('password'); DeleteCookie('save'); } } else { alert('You must enter a username/password.'); return false; } } </script> <style type="text/css"> <!-- body { background-color: #000000; margin-top: 0px; margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: yellow; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: white;text-decoration: none; } table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: white; } .table2 { } .lgrad { background-image:url(lgrad.jpg); background-repeat:repeat-y; width:19px; } .linegrad { background-image:url(linegrad.PNG); background-repeat:repeat-y; background-align: center; width:2px; } .rgrad { background-image:url(rgrad.jpg); background-repeat:repeat-y; width:19px; } .dgrad { background-image:url(dgrad.jpg); background-repeat:repeat-x; height:38px; } .dgradl { background-image:url(dgradl.jpg); background-repeat:no-repeat; height:38px; width:38px; } .dgradr { background-image:url(dgradr.jpg); background-repeat:no-repeat; height:38px; width:38px; } .center { width:932px; background-color:#000000; vertical-align:top; text-align:center; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#000000; height:22px; } .table3 td { background-color:#000000; } td .alt { background-color:#000000; height:22px; } td .h { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #000000; } .table th { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #000000; } --> </style></head> <body onload="getme();"> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="lgrad"></td> <td class="center">[img=http://tbrpg.890m.com/Text Based.gif] EOF; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } $year=date('Y'); print "<h3>{$set['game_name']} Logging page</h3> <table width='50%' border='3' cellpadding='1' cellspacing='1'> <tr> <td width='20%' bgcolor='#000000' valign='top'>[url='register.php']<big>Register</big>[/url] | [url='URL HERE']<big>Forum</big>[/url]</p> <center> <table width=100% border=6 cellspacing=0 class=tabletrans><th><font color=white>[b]Decription[/b]</th><th><font color=white>[b]Login[/b]</th><tr><td width=50%><center><font color=white> Description coming soon </td><td><form action=authenticate.php method=post name=login onsubmit=\"return saveme();\">Username: <input type=text name=username> Password: <input type=password name=password> Remember me? <input type=\"radio\" value=\"ON\" name=\"save\">Yes <input type=\"radio\" name=\"save\" value=\"OFF\" checked>No <input type=submit value=Submit></a></form></td></tr></table></center> <font color=white> <center><table width=30% border=1 cellspacing=0 class=tabletrans><th><font color=white>[b][/b] [i]<center> Powered by codes made by Dabomstew (&copy {$year}). Game Copyright ©{$year} {$set['game_owner']}.</center>[/i]"; print <<<OUT </td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"> </td> <td class="dgrad"> </td> <td class="dgradr"> </td> </tr> </table> </td> </tr> </table> </body> </html> OUT; ?>
×
×
  • Create New...