Samurai Legend
Members-
Posts
483 -
Joined
-
Last visited
-
Days Won
5
Content Type
Profiles
Forums
Events
Everything posted by Samurai Legend
-
Looking for a coder paying £20/$30 for someone to code me a wheel of fortune in ajax. (Already coded in JS, http://samuraiassault.com/new/wof) I want the wheel to spin (You will need to provide the image) And it then stops at a certain place rewarding you your reward.
-
Sorry [MENTION=64603]Sim[/MENTION] read the topic wrong
-
I have a Wheel Of Fortune codded in JS. I just need it help coding it into php and credit users the prize
-
Thakns for the share! What is the difference between mt_rand and rand?
-
I have an Ajax Search which needs fixing. Doesn't really work? I also need Multiple Item Use. Where users can use more than one item at once. Insteading of refreshing to use the item again and again. Paying £10
-
My website, I am just worried since tax is vary serious
-
If I am making an income do I have to pay tax?
-
Damn, didn't really know about ints, thanks for teaching me something new mate! In the feature I shall be using int correctly 300th post!
-
This modification is for your players in game to have sex with someone. <?php require('globals.php'); if (!isset($_GET['action'])) { $_GET['action'] = ''; } switch ($_GET['action']) { case "do": do_whore(); break; default: index(); break; } function index() { global $db, $ir, $userid, $goback; if($ir['brothel'] > 4) { error("You came here already five times!<br/>Come back tomorrow."); } echo "<h3><u>Brothel</u></h3>"; echo "<hr width = '75%'><table width = '75%' class = 'table'> <tr style='background:grey'> <th colspan='4'> <b>Male</b> </th> </tr> <tr> <th>Name</th> <th>Price</th> <th>Benefit</th> <th>Link</th> </tr>"; $query = $db->query("SELECT `whoreID`, `whoreNAME`, `whoreCOST`, `whoreGENDER`, `whoreFIELD`, `whoreBENEFIT` FROM `brothel` WHERE `whoreGENDER` = 'Male'"); while($r = $db->fetch_row($query)) { echo "<tr> <td>{$r['whoreNAME']}</td> <td>" . money_formatter($r['whoreCOST']) . "</td> <td>Full {$r['whoreFIELD']} bar</td> <td><a href='brothel.php?action=do&ID={$r['whoreID']}'>Do</a></td>"; } echo "</table><hr width = '75%'>"; echo "<table width = '75%' class = 'table'> <tr style='background:grey'> <th colspan='4'> <b>Female</b> </th> </tr> <tr> <th>Name</th> <th>Price</th> <th>Benefit</th> <th>Link</th> </tr>"; $query = $db->query("SELECT `whoreID`, `whoreNAME`, `whoreCOST`, `whoreGENDER`, `whoreFIELD`, `whoreBENEFIT` FROM `brothel` WHERE `whoreGENDER` = 'Female'"); while($r = $db->fetch_row($query)) { echo "<tr> <td>{$r['whoreNAME']}</td> <td>" . money_formatter($r['whoreCOST']) . "</td> <td>Full {$r['whoreFIELD']} bar</td> <td><a href='brothel.php?action=do&ID={$r['whoreID']}'>Do</a></td>"; } echo "</table><hr width = '75%'>$goback<hr width = '75%'>"; } function do_whore() { global $db, $ir, $userid, $goback; $_GET['ID'] = (isset($_GET['ID']) && is_numeric($_GET['ID'])) ? abs(intval($_GET['ID'])) : ''; $query = $db->query("SELECT `whoreID`, `whoreNAME`, `whoreCOST`, `whoreGENDER`, `whoreFIELD`, `whoreBENEFIT` FROM `brothel` WHERE `whoreID` = {$_GET['ID']}"); $r = $db->fetch_row($query); if($ir['brothel'] > 4) { error("You came here already five times!<br/>Come back tomorrow."); } if ($ir['money'] < $r['whoreCOST']) { error('You don\'t have enough money.'); } confirmation("You and {$r['whoreNAME']} have spent 20 minutes in the corner and gained max {$r['whoreFIELD']} points."); $db->query("UPDATE `users` SET {$r['whoreFIELD']} = {$r['whoreBENEFIT']}, `brothel` = `brothel` + 1, `money` = `money` - {$r['whoreCOST']} WHERE `userid` = {$ir['userid']}"); } $h->endpage(); ?> SQLs - ALTER TABLE users ADD brothel INT(11) DEFAULT 0 ; CREATE TABLE IF NOT EXISTS `brothel` ( `whoreID` int(11) NOT NULL AUTO_INCREMENT, `whoreNAME` varchar(255) NOT NULL DEFAULT '', `whoreCOST` int(11) NOT NULL DEFAULT '0', `whoreGENDER` enum('Male','Female') NOT NULL, `whoreFIELD` varchar(255) NOT NULL, `whoreBENEFIT` varchar(255) NOT NULL, PRIMARY KEY (`whoreID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; INSERT INTO `brothel` (`whoreID`, `whoreNAME`, `whoreCOST`, `whoreGENDER`, `whoreFIELD`, `whoreBENEFIT`) VALUES (1, 'Male 1', 10000, 'Male', 'brave', 'maxbrave'), (2, 'Male 2', 15000, 'Male', 'hp', 'maxhp'), (3, 'Female Babe', 50000, 'Female', 'energy', 'maxenergy'); Add this to cron_day.php - $db->query("UPDATE `users` SET `brothel` = 0"); Add this to global_func.php - $goback = "<a onclick='window.history.go(-1);' style='cursor: pointer;'>>Go Back</a>"; function error($message) { global $h echo " " . $message . " " . $goback . ""; exit($h->endpage()); }
-
At the moment I have a MacBook (13-inch, Late 2009) [ATTACH=CONFIG]1800[/ATTACH] It is in mint condition and I don't know how much to sell it for. I live in the UK (East London) So price may be different to other places. If anyone can tell me how much I can sell it for that will be great! As after I sell it I want a new windows 7 laptop. Brand new and I am willing to pay £500. However I need to know opinions on laptops and which one is the best to buy for £500.
-
mccode-v2 Refinery [Use with my mining mod]
Samurai Legend replied to TheMasterGeneral's topic in Free Modifications
I didn't message you on Skype... Must have been someone else. But overall I love this modification! -
mccode-v2 Refinery [Use with my mining mod]
Samurai Legend replied to TheMasterGeneral's topic in Free Modifications
This is great! I literally love you man! You have Skype? -
So the first four or five days of my game. I have made $362.50. Can be approved by MTG. Is this a good start?
-
Hello MWG! I have a slight problem. So the Mugger of the hour Sniko made whenever someone mugs someone a new insert in the table happens instead of updating the table. Even if there is already a table for the user? [ATTACH=CONFIG]1782[/ATTACH] Code - $objThisHour = $db->query("SELECT `uid` FROM `mugger_oth` WHERE `uid` = ". $userid ." AND `date_start` LIKE DATE_FORMAT(NOW(), '%Y-%m-%d %k')"); if($db->num_rows($objThisHour) > 0) { $db->query("UPDATE `mugger_oth` SET `total_mugged` = `total_mugged` + ". $stole .", `total_mugs` = `total_mugs` + 1 WHERE `uid` = ". $userid ." AND `date_start` LIKE DATE_FORMAT(NOW(), '%Y-%m-%d %k')"); } else { $db->query("INSERT INTO `mugger_oth` (`uid`,`total_mugged`,`date_start`, `total_mugs`) VALUES (". $userid .", ". $stole .", NOW(), 1)"); }
-
Thanks so much, I've been working my arse off. With my GCSE finished. I've been working everyday for 2 - 3 hours a day. I may have small experiance with web languages. However I am determined that my game will be a success. Only way it can be is if I try my best. I've been working my socks off. Thanks Script47
-
Thanks man, yeah I am a bit stuck on that. Don't know how to fix it :/
-
Hello everyone! I am not sure weather I am ready to release my game. I have been working on it for nearly a year now. I need few people to help me out and check out my game. Game Link - http://samuraiassault.com/login.php Demo Account - User: Demo Pass: password If people can give me advice that will be great. I hope to release soon. If you guys can help me please do. I appericate the community for helping me out a lot when I needed help with my game. I just want to thank you all and it makes me happy. I would like to thank Magictallguy, BioHazard and everyone in the community for helping me out. Thank you all! You guys don't know how much you guys mean to me. Without you guys I probably wouldnt be at this stage with my game. If the whole community just logs into the dmeo account and checks out my game and help me out! That would just be great! Also if there is any exploits, glitches, anything bad towards the game. Can you please mail me. So I can patch up the fix. Thank you everyone.
-
This looks great!
-
This is where people in federal jail can appeal to their case. Another easier way for the player to communicate. Create a file called fedsupport.php - <?php require('globals.php'); ?> <h3><u>Federal Jail</u></h3> <?php if (!$ir['fedjail']) { error("Your not in federal jail."); } if (!isset($_GET['action'])) { $_GET['action'] = ''; } switch ($_GET['action']) { case 'reply': reply(); break; default: index(); break; } ?> <?php function index() { global $db, $ir, $h, $goback, $userid, $set; $q = $db->query("SELECT * FROM `fedjail` WHERE `fed_userid` = $userid"); $r = $db->fetch_row($q); if ($ir['fed_lock'] != 0) { ?> <hr width='100%'><span style='font-weight: bold; color:red;'> You have been put in the <?php echo format($set['game_name']);?> Federal Jail for <?php echo format($r['fed_days']); ?> day(s).<br /> Reason: <?php echo format($r['fed_reason']); ?> </span><hr width='100%'> <?php } else { ?> <hr width='100%'><span style='font-weight: bold; color:red;'> You have been put in the <?php echo format($set['game_name']);?> Federal Jail for <?php echo format($r['fed_days']); ?> day(s).<br /> Reason: <?php echo format($r['fed_reason']); ?> </span><hr width='100%'> <table width='100%' cellspacing='1' class='table'><tr> <th>User</th><th>Comment</th></tr><tr> <?php $q = $db->query("SELECT `userid`,`username`,`frTEXT`,`frTIME`,`frUSER`,`frUSERTO`, `u1`.`username` AS `frUSER` FROM `fedjail_reports` AS `a` INNER JOIN `users` AS `u1` ON `a`.`frUSER` = `u1`.`userid`"); ?> <?php while ($p = $db->fetch_row($q)) { ?> <td width='40%'><?php echo $p['frUSER']; ?> - <?php echo DateTime_Parse($p['frTIME']); ?></td> <td><?php echo format($p['frTEXT']); ?></td></tr><tr> <?php } ?> </tr></table><hr width='100%'><form action="fedsupport.php?action=reply" method="post"> Reply (You can only send a message everytime a staff replys):<br /> <textarea name="comment" rows="10" cols="60" placeholder="Enter text here"></textarea> <br /><br /> <input type="submit" value="Add Comment!" /> </form> <hr width='100%'><a href='logout.php'>>Logout</a><hr width='100%'> <?php } } ?> <?php function reply() { global $db, $ir, $h, $goback, $userid, $set; if (!$ir['fedjail']) { error("Your not in federal jail."); } if ($ir['fed_lock'] != 0) { error("Your locked out from here."); } $q = $db->query("SELECT `frUSERTO`, `frTIME` FROM `fedjail_reports` WHERE `frUSERTO` = $userid AND `frTIME` > unix_timestamp()-1200"); if ($db->num_rows($q) >= 1) { error("You can only send one message every 20 minutes."); } $_POST['comment'] = (isset($_POST['comment']) && is_string($_POST['comment'])) ? $db->escape(strip_tags(stripslashes($_POST['comment']))) : ''; if ($_POST['comment']) { if (strlen($_POST['comment']) < 10) { error('Sorry, the comment is too short. Minimum of 10 words.'); } $db->query("INSERT INTO fedjail_reports (`frID`, `frUSER`, `frTIME`, `frTEXT`, `frUSERTO`) VALUES ('', '".$userid."', ".time().", '".$_POST['comment']."', '".$userid."')"); confirmation('Comment added!'); } else { error('You have not entered any text at all.'); } } $h->endpage(); ?> Open up header and replace the federal jail part with this - if ($ir['fedjail']) { if($_SERVER['PHP_SELF'] != '/fedsupport.php') { redirect('fedsupport.php', false); } } SQL - ALTER TABLE users ADD fed_lock INT(11) DEFAULT 0 ; CREATE TABLE IF NOT EXISTS `fedjail_reports` ( `frID` int(11) NOT NULL AUTO_INCREMENT, `frUSER` int(11) NOT NULL, `frTIME` int(11) NOT NULL, `frTEXT` text NOT NULL, `frUSERTO` int(11) NOT NULL, PRIMARY KEY (`frID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; If someone can create the staff reply system. That would be great!
-
Yes that's from my website. I'll give you the code to you for free. Once I am free of course.
-
Congratulations you two!
-
Creating the items will be great with Snikos crafting mod!
-
This is great! I love it. I always wanted someething like this! But you made it! Thanks man thank you so much!
-
Hello all, I have an idea which I would think it will be useful. Webmail built in MCCodes Staff Panel. As I use 10 emails. Out of them 10. 10 will be using the emails. However I do not want them to use Horde, RoundCube and SquirrelMail. I want them to use a system in the engine which will allow my team to acsess emails by signing in. And recieve and view emails and throw away in the trash bin. I also want my staff team to be able to send off emails. I am willing to invest my time and money for this to be created.
-
[In Production] Heists Module
Samurai Legend replied to NonStopCoding's topic in Requests & In Production
This looks great! I always wanted to make something like this!!!!