Jump to content
MakeWebGames

S.Cosmin

Members
  • Posts

    149
  • Joined

  • Last visited

Everything posted by S.Cosmin

  1. Damn, thats mathematic ! what ever, i think i understand...thank you guys
  2. Wasn't not. Because the new version of mcc 2.0.3 has just the script files, no info's...So...i must to post on forum what i don't know. Simple
  3. How can i make the success rate at robbery a little bit big? For example i have this one ((WILL*0.8)/1)+(LEVEL/4) but i don't understand to much what there it is. Can anyone help me the users to have more success?
  4. Can anyone to re-upload the images on the biggest site ever tinypic.com ?
  5. How can i make to have all users the option add friends add enemy...and to can access mailbox and send messages without donation. I want something normal.
  6. Ok, one to 1 or 5 min. And how to make more braves, for example 400 ...
  7. Guys, i have searching but nothing...How the users can get more braves? And if someone has a manual how all work to post it please, because my version has no instructions...what all do.
  8. =)) Ok, thank you guys for answers. Thank you officer rulerofzu :))
  9. Hmm...i have another idea. Can i copyright my game? I mean my CSS or images, for free. And if anyone still from me, i go to police department :D What do you thing :)
  10. Andhow can i compressing my CSS?
  11. Hallo guys, i ask me if i can to hide my CSS. I dont want to see all my css, so..is that possibili? And to block CTRL-U?
  12. Oh, it's works. Thank you very much.
  13. You mean that or? If is not this tell me where i found it.   <?php include_once (DIRNAME(__FILE__) . '/globals.php'); $_GET['ID'] = ( isset($_GET['ID'])&&is_numeric($_GET['ID']) )?abs(intval($_GET['ID'])):''; $_POST['qty'] = ( isset($_POST['qty'])&&is_numeric($_POST['qty']) )?abs(intval($_POST['qty'])):''; if ( empty($_GET['ID']) OR empty($_POST['qty']) ) { echo 'Invalid use of file'; } else { $q = $db->query("SELECT `itmbuyprice`,`itmname`,`itmbuyable` FROM `items` WHERE `itmid` = {$_GET['ID']}"); if ( $db->num_rows($q) == 0 ) { echo 'Invalid item ID'; } else { $itemd = $db->fetch_row($q); if ( $ir['money'] < ($itemd['itmbuyprice'] * $_POST['qty']) ) { echo 'You don\'t have enough money to buy '.$_POST['qty'].' '.$itemd['itmname'].'!<br />> <a href="index.php">Go Home</a>'; die($h->endpage()); } if ( $itemd['itmbuyable'] == 0 ) { echo 'This item can\'t be bought!<br />> <a href="index.php">Go Home</a>'; die($h->endpage()); } $grab_shop = $db->query('SELECT `shopID` FROM `shops` WHERE `shopLOCATION` = '.$ir['location']); while ( $list_shop = $db->fetch_row($grab_shop) ) { $shots .= $list_shop['shopID'].','; } $shots .= 0; $result_sID = explode(",", $shots); $grab_sITEM = $db->fetch_row($db->query('SELECT COUNT(`sitemID`) AS `sITEM_CNT` FROM `shopitems` WHERE `sitemSHOP` IN('.$shots.') AND `sitemITEMID` = '.$_GET['ID'])); if ( $grab_sITEM['sITEM_CNT'] == 0 ) { echo 'You can\'t buy items from other cities.<br />> <a href="index.php">Go Home</a>'; die($h->endpage()); } $price = ($itemd['itmbuyprice'] * $_POST['qty']); item_add($userid, $_GET['ID'], $_POST['qty']); $db->query("UPDATE `users` SET `money` = `money` - $price WHERE `userid` = $userid"); $db->query("INSERT INTO `itembuylogs` VALUES ('', $userid, {$_GET['ID']}, $price, {$_POST['qty']}, unix_timestamp(), '{$ir['username']} bought {$_POST['qty']} {$itemd['itmname']}(s) for {$price}')"); echo '<div class="generalinfo_simple"><font color="green"><center><b><div class="statusbox_ok">You bought '.$_POST['qty'].' '.$itemd['itmdesc'].' '.(($_POST['qty'] > 1) ? 's' : '').' for '.money_formatter($price).'</div></div></b><center></font>'; } } $h->endpage(); ?>
  14. I have tried this and doesn't work, that's why i post here...if you guys have another solution...
  15. Ok guys, i want to change right here from itmname to itmdesc. I have this line, and i want to change there, at "You bought '.$_POST['qty'].' '.$itemd['itmname']..." to be desc not name.   $price = ($itemd['itmbuyprice'] * $_POST['qty']); item_add($userid, $_GET['ID'], $_POST['qty']); $db->query("UPDATE `users` SET `money` = `money` - $price WHERE `userid` = $userid"); $db->query("INSERT INTO `itembuylogs` VALUES ('', $userid, {$_GET['ID']}, $price, {$_POST['qty']}, unix_timestamp(), '{$ir['username']} bought {$_POST['qty']} {$itemd['itmname']}(s) for {$price}')"); echo '<div class="generalinfo_simple"><font color="green"><center><b><div class="statusbox_ok">You bought '.$_POST['qty'].' '.$itemd['itmname'].' '.(($_POST['qty'] > 1) ? 's' : '').' for '.money_formatter($price).'</div></div></b><center></font>'; ;
  16. Can tell me someone what is this? I cant control my control panel, and if i want to edit a item i can se the name of the item. What to do?
  17. Well mister, what mod you use, can you gave me the link?
  18. So guys, i have a new question for you :) Why you can buy many items? For example, weapons. You cant use 10 AK's 47...but you can buy...Thats my question.hmmm...
  19. No, that just writing. I show you. I gonna buy a host in Romanian, and i use Ravan or Mccodes warez script. Than you can make a complaint to that firma, they respond to you by "Have a nice day mister, this is romania, Bye" :) Biggest warez forums are hosed in romanian.
  20. Really, whee don't care about copyrights, what they like, they use. And, nobody can go in Bucharest for example and to say to one man you cant use this cuz is copyrighted. You right, whee are in EU, but EU for me is nothing, if i want to use something, is use, without permissions. If you see a script, music, movie in USA and you like it that you buy it but if i see something what i like, i call to warez... :))
  21. Yeah, i have deleted the post, i was nervos cuz all going wrong. :D
  22. Hmmm...I leave in Romanian and if i have a warez licence from mccodes you cant do anything. You cant take down my site or something. This is romanian :)) Biggest warez land, all are free. Thats why paypal dont accept romanian. What ever, i have a licence for mccodes and ravan's to.
  23. Ahaa, i found the bug. Thats my code, but where to place include "menu_right.php"; to work fine?I dont knowo wher is finish the container...   <?php class headers { function startheaders() { global $ir, $set; global $_CONFIG; define("MONO_ON", 1); $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']; } $q=$db->query("SELECT userid FROM users"); $membs=$db->num_rows($q); $q=$db->query("SELECT userid FROM users WHERE bankmoney>-1"); $banks=$db->num_rows($q); $q=$db->query("SELECT userid FROM users WHERE gender='Male'"); $male=$db->num_rows($q); $q=$db->query("SELECT userid FROM users WHERE gender='Female'"); $fem=$db->num_rows($q); $money=money_formatter($ir['money']); $crystals=money_formatter($ir['crystals'],''); $cn=0; // Users Online , Counts Users Online In Last 15 minutes $q=$db->query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC"); $online=$db->num_rows($q); $ec=$ir['new_events']; $mc=$ir['new_mail']; $ids_checkpost=urldecode($_SERVER['QUERY_STRING']); if(eregi("[\'|'/'\''<'>'*'~'`']",$ids_checkpost) || strstr($ids_checkpost,'union') || strstr($ids_checkpost,'java') || strstr($ids_checkpost,'script') || strstr($ids_checkpost,'substring(') || strstr($ids_checkpost,'ord()')){ $passed=0; echo "<center> <font color=red> Hack attempt <br/>!!! WARNING !!! <br/> Malicious Code Detected! The staff has been notified.</font></center>"; event_add(1," <a href='viewuser.php?u={$ir['userid']}'> <font color=red> ".$ir['username']."</font> </a> <b> Tried to use [".$_SERVER['SCRIPT_NAME']."{$ids_checkpost}].. ",$c); $h->endpage(); exit; } echo <<<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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']} - Massive Multiplayer Online Role Playing Game </title> <meta name="keywords" content="RPG, Online Games, Online Mafia Game" /> <meta name="description" content=" {$set['game_name']} - Online Mafia Game " /> <meta name="author" content="Mafia Game Scripts " /> <meta name="copyright" content="Copyright {$_SERVER['HTTP_HOST']} " /> <link rel="SHORTCUT ICON" href="favicon.ico" /> <script src="js/jquery-1.js" type="text/javascript"></script> <link rel="stylesheet" href="css/wcg.css" type="text/css" /> <script type="text/javascript" src="js/header.js"></script> <style type="text/css"> .boston a{ background:url(images/boston.jpg) no-repeat; } .boston a:hover{ background:url(images/boston_hover.jpg) no-repeat; } </style> <!--<script type="text/javascript"> $(document).ready(function(){ $.get("userstatajax.php",function(res){ if(res) { var resarray = res.split('||||||'); $('.profile_mid').html(resarray[0]); $('#points_money').html(resarray[1]); } }); }); </script>--> <Script language="JavaScript"> <!-- window.IMAGEPATH = "http://thecrims.cachefly.net/images/"; document.addEventListener("DOMNodeInserted",bdcbccabedbe, true); document.addEventListener("DOMAttrModified",bfdedceaea, true); document.addEventListener("DOMNodeRemoved",fccbafca, true); function cbcaadb(name) { var tags = new Array('SPAN','TR','TD'); for(x in tags) { if(name == tags[x]) return false; } return true; } function ddaaefaa(evt){ if (typeof(window.event) != 'undefined') return window.event.srcElement; else return evt.target; } function ccfcfcfdf(tagName) { } function bdcbccabedbe(event) { if(typeof(event.target.tagName) != 'undefined' && cbcaadb(event.target.tagName) == false) { srcElement = ddaaefaa(event); if(typeof(srcElement) != 'undefined') $(srcElement).remove(); ccfcfcfdf(event.target.tagName); } } function bfdedceaea(event) { if(event.target.tagName == 'OPTION') { ccfcfcfdf(event.target.tagName); } } function fccbafca(event) { var srcElement = ddaaefaa(event); if(srcElement && srcElement.attributes && srcElement.attributes.length) { $(srcElement).remove(); } if(typeof(event.target.id) != 'undefined' && typeof(event.target.tagName) != 'undefined' && (event.target.id == 'topbox' || event.target.tagName == 'IFRAME' || event.target.id == 'banner_bottom')) { ccfcfcfdf(event.target.tagName); } } function confirmChoice() { var value = confirm("Esti sigur?"); if (value == true) { wait(); return true; } else { return false; } } function checkBox(value) { if(value == '-') { alert("Alege din lista"); return false; } else { wait(); return true; } } // --> </script> </head> <!-- // Flas Header Part Stars --> <div class="flashpartig"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="950" height="235" title="TheGangsters.ro"> <param name="movie" value="images/flash/header.swf" /> <param name="quality" value="high" /> <param name="wmode" value="Transparent" /> <embed src="images/flash/header.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="950" height="235"></embed> </object> </div> <!-- //Flash Header Part End --> <!-- Container Part Starts --> <div id="centercontainer"> <div id="centermaincontainer"> <!-- Container Part Ends --> <!-- Center Part Starts --> <div class="icenterpart"><div class="icolumn1"> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = $_SERVER['REMOTE_ADDR']; $IP=addslashes($IP); $IP=mysql_real_escape_string($IP); $IP=strip_tags($IP); $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); $_GET['ID'] = abs(@intval($_GET['ID'])); $_GET['reply'] = abs(@intval($_GET['reply'])); if(!$ir['email']) { global $domain; die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "<CENTER><P><b><font color=red>You lost all your EXP for running from the fight.</font></b></P></CENTER> <br/><br/>"; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } include "rank.php"; $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=green>{$ir['username']}</font>";$d="<img src='donator.gif' alt='Donator: {$ir['donatordays']} Days Left' title='Donator: {$ir['donatordays']} Days Left' />"; } $gn=""; global $staffpage; $bgcolor = 'FFFFFF'; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die(" <br /><br /><br /><br /><br /> <CENTER><P> <b><font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s).<br /> <br /> Reason: {$r['fed_reason']}</font></b> </P></CENTER> </body></html>"); } if(file_exists('ipbans/'.$IP)) { die("<br /><br /><br /><br /><br /><CENTER><P><b><font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font></b></P></CENTER></body></html>"); } include "menu_right.php"; } function menu_left() { include "menu_left.php"; global $ir,$c; $bgcolor = ''; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><center>'; if($ir['hospital']) { print "<div class='generalinfo_simple'><br/><font color='yellow'><center<b><div class='statusbox_ok'>Esti internat in spital pentru {$ir['hospital']} de minute. Data viitoare ai grija!</div></b><center></font><br/></div>"; } if($ir['jail']) { print "<div class='generalinfo_simple'><br/><font color='red'><center<b><div class='statusbox_ok'>Esti in inchisoare timp de {$ir['jail']} minute. Data viitoare ai grija!</div></b><center></font><br/></div>"; } if($ir['bguard'] >0) { print "<font color='green'><b>NOTE:</b></font> Your Bodyguard is protecting you for {$ir['bguard']} more minutes.<br/><br/>"; } } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = ''; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><center>'; } function endpage() { global $db; include "footer.php"; } } ?>
  24. Why my game seen like sh*t in internet explorel? With the other browsers is good..firefox, chorme, opera....but IE is sucks, why?
  25. Sir, i mean the infos files.
×
×
  • Create New...