Jump to content
MakeWebGames

MyGunWars

Members
  • Posts

    237
  • Joined

  • Last visited

Everything posted by MyGunWars

  1. Re: [mccode] RSS Feed for Announcements Mine Works But How Do I Add Stuff To It: http://www.mygunwars.com/rssfeed.php
  2. Re: (MCCODES) V2 Layout For Sale $100 is starting bid I Need A New Layout And A Kool Intro Mail Me [email protected] My Site: www.mygunwars.com
  3. Re: [mccodes V2] Add any type of video media to your game Nice Mod Man
  4. Re: [MC-Codes][V2]Thugs (core system) Sounds Like A Good Mod Dayo.
  5. Re: [mccodes V2] Review staff. Any Time Yubi09 Im Still Learning As Well! :-D
  6. Re: [mccodes V2] Review staff. I Posted The Mod Above All Fixed And Working TESTED It On My Site Works 100% Enjoy!
  7. Re: [mccodes V2] Review staff. SQLS For This MOD:   CREATE TABLE IF NOT EXISTS `review` ( `id` int(11) NOT NULL 'auto_increment', `user` int (11) NOT NULL default '0', `review` int(11) NOT NULL default '1', `reason` varchar(266) NOT NULL default 'None', `time` int(11) NOT NULL default '0', PRIMARY KEY (`id`) )   ALTER TABLE `users` ADD `review` INT(11) NOT NULL DEFAULT '1';   review.php FIXED:   <?php include(DIRNAME(__FILE__) . '/globals.php'); $_GET['review'] = abs(@intval($_GET['review'])); if(!$_GET['review']) { echo "Invalid use of file"; $h->endpage(); exit; } $sql = sprintf( "SELECT u.*, us.*, c.*, h.*, g.*, f.* " . "FROM users u " . "LEFT JOIN userstats us ON (u.userid = us.userid) " . "LEFT JOIN cities c ON (u.location = c.cityid) " . "LEFT JOIN houses h ON (u.maxwill = h.hWILL) " . "LEFT JOIN gangs g ON (u.gang = g.gangID) " . "LEFT JOIN fedjail f ON (u.userid = f.fed_userid) " . "WHERE (u.userid = %u)", $_GET['review']); $q = $db->query($sql); if(!$db->num_rows($q)) { echo "You cannot review someone who does not exist."; $h->endpage(); exit; } $r = $db->fetch_row($q); if($r['user_level'] == 1) { echo "This user is not staff!"; $h->endpage(); exit; } if(!$ir['review']) { echo "You may only review once a day"; $h->endpage(); exit; } if($ir['daysold'] < 3) { echo "You may not post a review as you are less than 3 days old."; $h->endpage(); exit; } echo sprintf("<h3>Reviewing %s</h3>", stripslashes($r['username'])); echo "Below you may submit a review about a member of staff. Use the drop down menu to give a review of 1 or 9, 1 being the lowest and 9 being the highest. then explain the reason for your low or high review. This is to help pick decent staff and monitor there behaviour. "; $_POST['reason'] = mysql_real_escape_string(htmlspecialchars($_POST['reason'])); $_POST['rating'] = abs(@intval($_POST['rating'])); $sql1 = sprintf("INSERT INTO review VALUES ('', %u, %u, '%s', unix_timestamp())", $_GET['review'], $_POST['rating'], $_POST['reason']); $sql2 = sprintf("UPDATE users SET review = 0 WHERE (userid = %u)", $userid); $db->query($sql1); $db->query($sql2); echo "[b]You have reviewed this staff member[/b] "; echo sprintf("<form action='review.php?review=%u' method='post'>", $r['userid']); echo " Reason: <textarea rows='7' cols='50' name='reason'></textarea> "; echo "Rate: <select name='rating' type='dropdown'>"; for($i = 1; $i < 10; ++$i) { echo sprintf("<option value='%u'>%u</option>", $i, $i); } echo "</select>"; echo "<input type='submit' name='review' value='Review' />"; echo "</form>"; $h->endpage(); ?>   staff_review.php FIXED:   <?php include(DIRNAME(__FILE__) . '/globals.php'); if($ir['user_level'] != 2) { die("403"); } $_GET['action'] = isset($_GET['action']) && ctype_alpha($_GET['action']) ? strtolower(trim($_GET['action'])) : false; switch($_GET['action']) { case 'index': index(); break; case 'clear': clear(); break; default: index(); break; } function index() { global $db, $ir, $h; echo "[url='staff_review.php?action=clear']Delete all[/url] "; echo "<table cellspacing='1' class='table' width='90%'>"; echo "<tr>"; echo "<th>Userid</th>"; echo "<th>Review</th>"; echo "<th>Reason</th>"; echo "<th>Time</th>"; echo "</tr>"; $sql = "SELECT r.*, u.username " . "FROM review r " . "LEFT JOIN users u ON (r.user = u.userid)"; $q1 = $db->query($sql); while($r = $db->fetch_row($q1)) { echo "<tr>"; echo sprintf("<td>[url='viewuser.php?u=%u']%s[/url] [%s]</td>", $r['user'], stripslashes($r['username']), number_format($r['user'])); echo sprintf("<td>%u</td>", $r['review']); echo sprintf("<td>%s</td>", stripslashes(nl2br($r['reason']))); echo sprintf("<td>%s</td>", date('F j Y g:i:s a', $r['time'])); echo "</tr>"; } echo "</table>"; } function clear() { global $db; $db->query("TRUNCATE review"); echo "Cleared!"; } $h->endpage(); ?>   Add This In Your smenu.php FIXED:   [url='staff_review.php']View reviews[/url]   Add To cron_day.php: $db->query("UPDATE users SET review=1");   Open stafflist.php Find: <th>Status</th> Add After: <th>Review</th>   Then Find: <td>$on</td> Add After: <td>[[url='review.php?review={$r[']Review[/url]]</td>   All FIXED But Good Job Yubi09
  8. Re: [Mccodes V2] Shop Reduction Prices I'm Going To Add This To The New Player Shop Mod I Bought. http://www.pbbgaming.com/mods/playershops.html
  9. Re: [Mccodes][V2] SMF Registration Intergration!!!!! Do What ???
  10. Re: [Mccodes V2] Player Mood I Made A Mood Mod But Nice Mod Sniko`. http://criminalexistence.com/ceforums/i ... ic=23416.0 I'm Working On Mood Mod V2 It Will Have Smileys.
  11. Re: [Mccodes][V2] SMF Registration Intergration!!!!! Will It Work With ??? Forum version: SMF 2.0 RC1
  12. Re: [mccodes v2]Sin City [50$] one copy Is This Still Available?
  13. Re: [Mccodes V2] In-game template (first come, first serve) Im Willing To Pay For One Like It. Screen Shot: http://i194.photobucket.com/albums/z127 ... plate1.png
  14. Re: Mccodes V2. Music Player. $40 I Loged In To Your Site To Take A Look At The Mod Witch Looks Cool And I Got Errors.
  15. Re: [?5]Login & Register[v1+v2] Have Any Examples Of Your Work :?
  16. Re: Add, Edit, Delete House Upgrades from Staff Panel Who Sells It And How Much? Would It Be Something Like?   $db->query("SELECT u.*, h.* FROM users u LEFT JOIN houses h ON h.hWILL=u.maxwill WHERE userid={$ir['married']}",$c);
  17. Re: Add, Edit, Delete House Upgrades from Staff Panel Nice Man Now I Wonder If Any One Can Come Out With A Mod For House Shearing For Marred Users???
  18. Re: [Mc Codes V2] My Search Streets I Added It To My Site Nice Mod And I Used My Own Pix.
  19. Re: [V2] Day Cron Help Please Very Urgent $db->("UPDATE users SET redcross=0",$c); Needs To Be: $db->query("UPDATE users SET redcross=0",$c);
  20. Re: [any version] Removal of 1 minute crons Helped By Magictallguy: Add In header.php: Make sure it's at least under the function userdata(). include_once('crons_file.php');   SQL: CREATE TABLE `updates` ( `name` VARCHAR(255) NOT NULL DEFAULT '', `last` INT(255) NOT NULL DEFAULT '60' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; INSERT INTO `updates` (name,last) VALUES('1min', unix_timestamp()); INSERT INTO `updates` (name,last) VALUES('5min', unix_timestamp()); INSERT INTO `updates` (name,last) VALUES('1hour', unix_timestamp()); INSERT INTO `updates` (name,last) VALUES('1day', unix_timestamp());   File(cron_file.php): <?php include(DIRNAME(__FILE__) . '/config.php'); global $_CONFIG; include_once(DIRNAME(__FILE__) . '/class/class_db_'.$_CONFIG['driver'].'.php'); $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database']); $db->connect(); $query1 = $db->query("SELECT * FROM updates WHERE name = '1min'") or die($db->error()); $min1 = $db->fetch_row($query1); $time = time(); $mla = $time - $min1['last']; if($mla > (60)) { $m = floor($mla / 60); //MINUTE CRONS $floor = $time - (floor($time / 60) * 60); if($floor > 0) { $newUpdate = time() - $floor; $db->query("UPDATE updates SET last = ".$newUpdate." WHERE name = '1min'") or die($db->error()); } } ################## $query2 = $db->query("SELECT * FROM updates WHERE name = '5min'") or die($db->error()); $min5 = $db->fetch_row($query2); $fla = $time - $min5['last']; if($fla > (300)) { $f = floor($fla / 300); for($i = 1; $i <= (1 * $f); ++$i) { //FIVEMIN CRONS } $floor = $time - (floor($time / 300) * 300); if($floor > 0) { $newUpdate = time() - $floor; $db->query("UPDATE updates SET last = ".$newUpdate." WHERE name = '5min'") or die($db->error()); } } ################## $query4 = $db->query("SELECT * FROM updates WHERE name = '1hour'") or die($db->error()); $hour1 = $db->fetch_row($query4); $fla = $time - $hour1['last']; if($fla > (3600)) { $f = floor($fla / 3600); for($i = 1; $i <= (1 * $f); ++$i) { //HOUR CRONS } } ################## $query3 = $db->query("SELECT * FROM updates WHERE name = '1day'") or die($db->error()); $day1 = $db->fetch_row($query3); $fla = $time - $day1['last']; if($fla > (86400)) { $f = floor($fla / 86400); for($i = 1; $i <= (1 * $f); ++$i) { //DAY CRONS } $floor = $time - (floor($time / 86400) * 86400); if($floor > 0) { $newUpdate = $time - $floor; $db->query("UPDATE updates SET last = ".$newUpdate." WHERE name = '1day'") or die($db->error()); } } ?>
  21. Re: [MCCODES v2] Trivia Quiz Creator   Ok Sounds Good Man
  22. Re: [MCCODES v2] Trivia Quiz Creator How Dose A Users Answer The Questions? :?
  23. Re: [MCCODES v2] Trivia Quiz Creator Ok I Will Add It In My Game! Thanks A Lot illusions :-D
  24. Re: [MCCODES v2] Trivia Quiz Creator Sounds Like A Cool Mod
  25. Re: [V2] New Small Accuracy Mod [V2] accuracy bar sounds cool
×
×
  • Create New...