Nicholas
Members-
Posts
467 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Nicholas
-
Title: Criminals-Nightmare Site URL: www.criminals-nightmare.co.cc Description: This game is new and is in need of good reviews to get more players, so can anyone register upto my game, and please review the game out of 10, it is new, so there wont be alot players at moment... The game should have a unique layout inside, as i hired someone to make it for me. and well i think it looks good lol :) So feel free to register up, rate my game, and carry on playing if you want :)
-
hi, im wondering i just cant figure this out lol this is in the fivemin cron file... $query="UPDATE users SET energy=energy+(maxenergy/(12.5)) WHERE energy<maxenergy AND donatordays=0"; $query5="UPDATE users SET energy=energy+(maxenergy/(6)) WHERE energy<maxenergy AND donatordays>0"; maxenergy = 100 100 / 12.5 = 8... <-- but non-donators get 16.5% energy. 100 / 6 = 16... <-- but donators get 33% energy. i want it to be like this non-donators get 10% energy donators get 20% energy but i cant figure it out... can anyone help me out, and tell me how to do it, and also why it is giving like double the energy, and not the 8 and 16% like its surpose to?? if u know what i know?
-
Re: question... hmm... well monocountry does it. unless it was just my pc at the time lol.
-
im wondering does anyone know how to stop people from going on say going on a game, and right clicking the mouse and clicking View Source, to get my coding? does anyone know how to make it so if you click on View Source it wont do nothing. it wont pop up a like notepad thing with the information crap?
-
Re: Staff Items V2 Help oh lol.
-
Re: Staff Items V2 Help my verison works perfectly on my game... NOTE: i edited this abit, as it has some my mods on it lol. so if u get any errors, feel free to post the problem on here lol. <?php include "sglobals.php"; //This contains item stuffs switch($_GET['action']) { case 'newitem': new_item_form(); break; case 'newitemsub': new_item_submit(); break; case 'giveitem': give_item_form(); break; case 'giveitemsub': give_item_submit(); break; case 'killitem': kill_item_form(); break; case 'killitemsub': kill_item_submit(); break; case 'edititem': edit_item_begin(); break; case 'edititemform': edit_item_form(); break; case 'edititemsub': edit_item_sub(); break; case 'newitemtype': newitemtype(); break; default: print "Error: This script requires an action."; break; } function new_item_form() { global $db,$ir,$c; if($ir['user_level'] > 2) { die("403"); } print "<h3><font color=white>Adding an item to the game</h3><form action='staff_items.php?action=newitemsub' method='post'> Item Name: <input type='text' name='itmname' value='' /> Item Desc.: <input type='text' name='itmdesc' value='' /> Item Type: ".itemtype_dropdown($c,'itmtype')." Item Buyable: <input type='checkbox' name='itmbuyable' checked='checked' /> Item Price: <input type='text' name='itmbuyprice' /> Item Sell Value: <input type='text' name='itmsellprice' /> <hr /> [b]Usage Form[/b]<hr /> [b]<u><font color=white>Effect 1</u>[/b] On? <input type='radio' name='effect1on' value='1' /> Yes <input type='radio' name='effect1on' value='0' checked='checked' /> No Stat: <select name='effect1stat' type='dropdown'> <option value='energy'>Energy</option> <option value='will'>Will</option> <option value='brave'>Brave</option> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='guard'>Guard</option> <option value='labour'>Labour</option> <option value='IQ'>IQ</option> <option value='hp'>Health</option> <option value='hospital'>Hospital Time</option> <option value='jail'>Jail Time</option> <option value='money'>Money</option> <option value='crystals'>Crystals</option> <option value='cdays'>Education Days Left</option> <option value='bankmoney'>Bank money</option> <option value='cybermoney'>Cyber money</option> <option value='crimexp'>Crime XP</option> </select> Direction: <select name='effect1dir' type='dropdown'> <option value='pos'>Increase</option> <option value='neg'>Decrease</option> </select> Amount: <input type='text' name='effect1amount' value='0' /> <select name='effect1type' type='dropdown'> <option value='figure'>Value</option> <option value='percent'>Percent</option> </select><hr /> [b]<u><font color=white>Effect 2</u>[/b] On? <input type='radio' name='effect2on' value='1' /> Yes <input type='radio' name='effect2on' value='0' checked='checked' /> No Stat: <select name='effect2stat' type='dropdown'> <option value='energy'>Energy</option> <option value='will'>Will</option> <option value='brave'>Brave</option> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='guard'>Guard</option> <option value='labour'>Labour</option> <option value='IQ'>IQ</option> <option value='hp'>Health</option> <option value='hospital'>Hospital Time</option> <option value='jail'>Jail Time</option> <option value='money'>Money</option> <option value='crystals'>Crystals</option> <option value='cdays'>Education Days Left</option> <option value='bankmoney'>Bank money</option> <option value='cybermoney'>Cyber money</option> <option value='crimexp'>Crime XP</option> </select> Direction: <select name='effect2dir' type='dropdown'> <option value='pos'>Increase</option> <option value='neg'>Decrease</option> </select> Amount: <input type='text' name='effect2amount' value='0' /> <select name='effect2type' type='dropdown'> <option value='figure'>Value</option> <option value='percent'>Percent</option> </select><hr /> [b]<u><font color=white>Effect 3</u>[/b] On? <input type='radio' name='effect3on' value='1' /> Yes <input type='radio' name='effect3on' value='0' checked='checked' /> No Stat: <select name='effect3stat' type='dropdown'> <option value='energy'>Energy</option> <option value='will'>Will</option> <option value='brave'>Brave</option> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='guard'>Guard</option> <option value='labour'>Labour</option> <option value='IQ'>IQ</option> <option value='hp'>Health</option> <option value='hospital'>Hospital Time</option> <option value='jail'>Jail Time</option> <option value='money'>Money</option> <option value='crystals'>Crystals</option> <option value='cdays'>Education Days Left</option> <option value='bankmoney'>Bank money</option> <option value='cybermoney'>Cyber money</option> <option value='crimexp'>Crime XP</option> </select> Direction: <select name='effect3dir' type='dropdown'> <option value='pos'>Increase</option> <option value='neg'>Decrease</option> </select> Amount: <input type='text' name='effect3amount' value='0' /> <select name='effect3type' type='dropdown'> <option value='figure'>Value</option> <option value='percent'>Percent</option> </select><hr /> [b]<font color=white>Combat Usage[/b] Weapon Power: <input type='text' name='weapon' value='0' /> Armor Defense: <input type='text' name='armor' value='0' /><hr /> <input type='submit' value='Add Item To Game' /></form>"; } function new_item_submit() { global $db,$ir,$c,$h; if($ir['user_level'] > 2) { die("403"); } if(!isset($_POST['itmname']) || !isset($_POST['itmdesc']) || !isset($_POST['itmtype']) || !isset($_POST['itmbuyprice']) || !isset($_POST['itmsellprice'])) { print "<font color=white>You missed one or more of the fields. Please go back and try again. [url='admin.php?action=newitem']> <font color=white>Back[/url]"; $h->endpage(); exit; } $itmname=$db->escape($_POST['itmname']); $itmdesc=$db->escape($_POST['itmdesc']); $weapon=abs((int) $_POST['weapon']); $armor=abs((int) $_POST['armor']); if($_POST['itmbuyable'] == 'on') { $itmbuy=1; } else { $itmbuy=0; } $efx1=$db->escape(serialize(array("stat" => $_POST['effect1stat'], "dir" => $_POST['effect1dir'], "inc_type" => $_POST['effect1type'], "inc_amount" => abs((int) $_POST['effect1amount'])))); $efx2=$db->escape(serialize(array("stat" => $_POST['effect2stat'], "dir" => $_POST['effect2dir'], "inc_type" => $_POST['effect2type'], "inc_amount" => abs((int) $_POST['effect2amount'])))); $efx3=$db->escape(serialize(array("stat" => $_POST['effect3stat'], "dir" => $_POST['effect3dir'], "inc_type" => $_POST['effect3type'], "inc_amount" => abs((int) $_POST['effect3amount'])))); $m=$db->query("INSERT INTO items VALUES('',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor)"); print "The {$_POST['itmname']} Item was added to the game."; stafflog_add("Created item {$_POST['itmname']}"); } function give_item_form() { global $db,$ir,$c; if($ir['user_level'] > 3) { die("403"); } print "<h3><font color=white>Giving Item To User</h3> <form action='staff_items.php?action=giveitemsub' method='post'> User: ".user_dropdown($c,'user')." Item: ".item_dropdown($c,'item')." Quantity: <input type='text' name='qty' value='1' /> <input type='submit' value='Give Item' /></form>"; } function give_item_submit() { global $db,$ir,$c; if($ir['user_level'] > 3) { die("403"); } $db->query("INSERT INTO inventory VALUES('',{$_POST['item']},{$_POST['user']},{$_POST['qty']})",$c) or die(mysql_error()); print "You gave {$_POST['qty']} of item ID {$_POST['item']} to user ID {$_POST['user']}"; stafflog_add("Gave {$_POST['qty']} of item ID {$_POST['item']} to user ID {$_POST['user']}"); } function kill_item_form() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } print "<h3><font color=white>Deleting Item</h3> The item will be permanently removed from the game. <form action='staff_items.php?action=killitemsub' method='post'> Item: ".item_dropdown($c,'item')." <input type='submit' value='Kill Item' /></form>"; } function kill_item_submit() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } $d=$db->query("SELECT * FROM items WHERE itmid={$_POST['item']}"); $itemi=$db->fetch_row($d); $db->query("DELETE FROM items WHERE itmid={$_POST['item']}"); $db->query("DELETE FROM shopitems WHERE sitemITEMID={$_POST['item']}"); $db->query("DELETE FROM inventory WHERE inv_itemid={$_POST['item']}"); $db->query("DELETE FROM itemmarket WHERE imITEM={$_POST['item']}"); print "<font color=white>The {$itemi['itmname']} Item was removed from the game."; stafflog_add("Deleted item {$itemi['itmname']}"); } function edit_item_begin() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } print "<h3><font color=white>Editing Item</h3> You can edit any aspect of this item. <form action='staff_items.php?action=edititemform' method='post'> Item: ".item_dropdown($c,'item')." <input type='submit' value='Edit Item' /></form>"; } function edit_item_form() { global $db,$ir,$c,$h; if($ir['user_level'] > 2) { die("403"); } $d=$db->query("SELECT * FROM items WHERE itmid={$_POST['item']}"); $itemi=$db->fetch_row($d); print "<h3><font color=white>Editing Item</h3> <form action='staff_items.php?action=edititemsub' method='post'> <input type='hidden' name='itmid' value='{$_POST['item']}' /> Item Name: <input type='text' name='itmname' value='{$itemi['itmname']}' /> Item Desc.: <input type='text' name='itmdesc' value='{$itemi['itmdesc']}' /> Item Type: ".itemtype_dropdown($c,'itmtype',$itemi['itmtype'])." Item Buyable: <input type='checkbox' name='itmbuyable'"; if ($itemi['itmbuyable']) { print " checked='checked'"; } print " /> Item Price: <input type='text' name='itmbuyprice' value='{$itemi['itmbuyprice']}' /> Item Sell Value: <input type='text' name='itmsellprice' value='{$itemi['itmsellprice']}' /><hr />[b]Usage Form[/b]<hr />"; $stats=array( "energy" => "Energy", "will" => "Will", "brave" => "Brave", "hp" => "Health", "strength" => "Strength", "agility" => "Agility", "guard" => "Guard", "labour" => "Labour", "IQ" => "IQ", "hospital" => "Hospital Time", "jail" => "Jail Time", "money" => "Money", "crystals" => "Crystals", "cdays" => "Education Days Left", "bankmoney" => "Bank money", "cybermoney" => "Cyber money", "crimexp" => "Crime XP"); for($i=1;$i<=3;$i++) { if($itemi["effect".$i]) { $efx=unserialize($itemi["effect".$i]); } else { $efx=array("inc_amount" => 0); } $switch1=($itemi['effect'.$i.'_on'] > 0) ? " checked='checked'" : ""; $switch2=($itemi['effect'.$i.'_on'] > 0) ? "" : " checked='checked'"; print "[b]<u><font color=white>Effect {$i}</u>[/b] On? <input type='radio' name='effect{$i}on' value='1'$switch1 /> Yes <input type='radio' name='effect{$i}on' value='0'$switch2 /> No Stat: <select name='effect{$i}stat' type='dropdown'>"; foreach($stats as $k => $v) { if($k==$efx['stat']) { print "<option value='{$k}' selected='selected'>{$v}</option>\n"; } else { print "<option value='$k'>{$v}</option>\n"; } } if($efx['dir']=="neg") { $str="<option value='pos'>Increase</option><option value='neg' selected='selected'>Decrease</option>"; } else { $str="<option value='pos' selected='selected'>Increase</option><option value='neg'>Decrease</option>"; } if($efx['inc_type']=="percent") { $str2="<option value='figure'>Value</option><option value='percent' selected='selected'>Percent</option>"; } else { $str2="<option value='figure' selected='selected'>Value</option><option value='percent'>Percent</option>"; } print "</select> Direction: <select name='effect{$i}dir' type='dropdown'>{$str} </select> Amount: <input type='text' name='effect{$i}amount' value='{$efx['inc_amount']}' /> <select name='effect{$i}type' type='dropdown'>{$str2}</select><hr />"; } print "[b]<font color=white>Combat Usage[/b] <font color=white>Weapon Power: <input type='text' name='weapon' value='{$itemi['weapon']}' /> <font color=white>Armor Defense: <input type='text' name='armor' value='{$itemi['armor']}' /><hr /> <input type='submit' value='Edit Item' /></form>"; } function edit_item_sub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } if(!isset($_POST['itmname']) || !isset($_POST['itmdesc']) || !isset($_POST['itmtype']) || !isset($_POST['itmbuyprice']) || !isset($_POST['itmsellprice'])) { print "<font color=white>You missed one or more of the fields. Please go back and try again. [url='staff_items.php?action=edititem']> <font color=white>Back[/url]"; $h->endpage(); exit; } $itmname=$_POST['itmname']; $itmdesc=$_POST['itmdesc']; $weapon=abs((int) $_POST['weapon']); $armor=abs((int) $_POST['armor']); if($_POST['itmbuyable'] == 'on') { $itmbuy=1; } else { $itmbuy=0; } $db->query("DELETE FROM items WHERE itmid={$_POST['itmid']}",$c); $efx1=$db->escape(serialize(array("stat" => $_POST['effect1stat'], "dir" => $_POST['effect1dir'], "inc_type" => $_POST['effect1type'], "inc_amount" => abs((int) $_POST['effect1amount'])))); $efx2=$db->escape(serialize(array("stat" => $_POST['effect2stat'], "dir" => $_POST['effect2dir'], "inc_type" => $_POST['effect2type'], "inc_amount" => abs((int) $_POST['effect2amount'])))); $efx3=$db->escape(serialize(array("stat" => $_POST['effect3stat'], "dir" => $_POST['effect3dir'], "inc_type" => $_POST['effect3type'], "inc_amount" => abs((int) $_POST['effect3amount'])))); $m=$db->query("INSERT INTO items VALUES('{$_POST['itmid']}',{$_POST['itmtype']},'$itmname','$itmdesc',{$_POST['itmbuyprice']},{$_POST['itmsellprice']},$itmbuy, '{$_POST['effect1on']}', '$efx1', '{$_POST['effect2on']}', '$efx2', '{$_POST['effect3on']}', '$efx3', $weapon, $armor)"); print "The {$_POST['itmname']} Item was edited successfully."; stafflog_add("Edited item {$_POST['itmname']}"); } function newitemtype() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } if($_POST['name']) { $db->query("INSERT INTO itemtypes VALUES(NULL, '{$_POST['name']}')"); print "Item Type {$_POST['name']} added."; stafflog_add("Added item type {$_POST['name']}"); } else { print "<h3><font color=white>Add Item Type</h3><hr /> <form action='staff_items.php?action=newitemtype' method='post'> <font color=white>Name: <input type='text' name='name' /> <input type='submit' value='Add Item Type' /></form>"; } } $h->endpage(); ?>
-
Re: why isnt my text going to the LEFT? worked :) thanks SkyFuse :) it worked :)
-
hi, im wondering does anyone know why my text isnt going to the left? ive tried... <left> <text-align: left> does anyone else know any others or any idea why it isnt working and just stays in the center?? and no i dont have <center> in the coding page.
-
Re: Honor Market - My Mod! lol very true... well 5-10 mins. but hey who cares, not me... at least there is one on this forum now hehe.
-
Re: Honor Market - My Mod! yep, still a mod tho lol. but anyways stop complaining... at least there is one now on this forum lol.
-
Re: Honor Market - My Mod! lol eternal, my game gives out 1 honor point everyday when you log on. and i didnt copyright this, i just moditfied the crystal market i have to make it sell honors lol. also it was the first recoded mod i done that works, so im happy :)
-
Re: Honor Market - My Mod! no completely different one m8, one he helped me on was the honorexchange page that where you can exchange the honors out for weapons/armour and not just stats/money/crystals. this one is where you can sell your honors like crystal market and item market lol.
-
Re: Honor Market - My Mod! so... its still my mod lol. no one else has made it... well no ones made on and put it on here lol.
-
Re: Honor Market - My Mod! how do i secure that?
-
Re: Honor Market - My Mod! dm fixed it lol. it was just my verison as mines called rewardmarket.php and not honormarket.php i moditfied it on here before i posted it.
-
hi, i made this honor market, and i feel like giving it everyone. phpmyadmin sql information: CREATE TABLE IF NOT EXISTS `honormarket` ( `rwID` int(11) NOT NULL auto_increment, `rwQTY` int(11) NOT NULL default '0', `rwADDER` int(11) NOT NULL default '0', `rwPRICE` int(11) NOT NULL default '0', PRIMARY KEY (`rwID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=52 ; honormarket.php <?php include "globals.php"; $_GET['ID'] = abs(@intval($_GET['ID'])); print "<h1><font color=white>Honor Market</font></h1>"; switch($_GET['action']) { case "buy": honor_buy(); break; case "remove": honor_remove(); break; case "add": honor_add(); break; default: honormarket_index(); break; } function honormarket_index() { global $db,$ir,$c,$userid,$h; $st=($_GET['st']) ? $_GET['st'] : 0; $cnt = $db->query("SELECT rw.*, u.* FROM honormarket rw LEFT JOIN users u ON u.userid=rw.rwADDER ORDER BY rwPRICE/rwQTY ASC LIMIT $st,15"); $membs=mysql_num_rows($cnt); $pages=(int) ($membs/15)+1; $no1=$st+1; $no2=$st+15; if($membs % 100 == 0) { $pages--; } print "<font color=red>Pages:</font> "; for($i=1;$i <= $pages;$i++) { $stl=($i-1)*15; print "[url='honormarket.php?st=$stl&ord=$ord']$i[/url] "; } $no1=$st+1; $no2=$st+15; print " [url='honormarket.php?action=add']<font color=white>Add A Listing</font>[/url] <table width=75% cellspacing=1 class='table'> <tr style='background:gray'> <th>Adder</th> <th>Qty</th> <th>Price each</th> <th>Price total</th> <th>Links</th> </tr>"; while($r=$db->fetch_row($q)) { if($r['rwADDER'] == $userid) { $link = "[url='honormarket.php?action=remove&ID={$r[']Remove[/url]"; } else { $link = "[url='honormarket.php?action=buy&ID={$r[']Buy[/url]"; } $each= (int) $r['rwPRICE'] / $r['rwQTY']; print "\n<tr> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url] <font color=white>[{$r['userid']}]</td> <td><font color=white>{$r['rwQTY']}</td> <td> <font color=white>\$" . number_format($each)."</td> <td><font color=white>\$".number_format($r['rwPRICE'])."</td> <td>[$link]</td> </tr>"; } print "</table>"; } function honor_remove() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT * FROM honormarket WHERE rwID={$_GET['ID']} AND rwADDER=$userid"); if(!$db->num_rows($q)) { print "<font color=white>Error, either these honors do not exist, or you are not the owner. <a href=honormarket.php'>> Back</a>"; $h->endpage(); exit; } $r=$db->fetch_row($q); $db->query("UPDATE users SET honor=honor+{$r['rwQTY']} where userid=$userid"); $db->query("DELETE FROM honormarket WHERE rwID={$_GET['ID']}"); print "<font color=white>Honors removed from market! [url='honormarket.php']> Back[/url]"; } function honor_buy() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT * FROM honormarket rw WHERE rwID={$_GET['ID']}"); if(!$db->num_rows($q)) { print "Error, either these honors do not exist, or they have already been bought. [url='honormarket.php']> Back[/url]"; $h->endpage(); exit; } $r=$db->fetch_row($q); if($r['rwPRICE'] > $ir['money']) { print "Error, you do not have the funds to buy these honors. [url='honormarket.php']> Back[/url]"; $h->endpage(); exit; } $db->query("UPDATE users SET honor=honor+{$r['rwQTY']} where userid=$userid"); $db->query("DELETE FROM honormarket WHERE rwID={$_GET['ID']}"); $db->query("UPDATE users SET money=money-{$r['rwPRICE']} where userid=$userid"); $db->query("UPDATE users SET bankmoney=bankmoney+{$r['rwPRICE']} where userid={$r['rwADDER']}"); event_add($r['rwADDER'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] bought your {$r['rwQTY']} honors from the market for \$".number_format($r['rwPRICE']).".",$c); print "You bought the {$r['rwQTY']} honors from the market for \$".number_format($r['rwPRICE'])."."; } function honor_add() { global $db,$ir,$c,$userid,$h; $_POST['amnt'] = abs((int) $_POST['amnt']); $_POST['price'] = abs((int) $_POST['price']); if($_POST['amnt']) { if($_POST['amnt'] > $ir['honor']) { die ("<font color=white>You are trying to add more honors to the market than you have."); } $tp=$_POST['amnt']*$_POST['price']; $db->query("INSERT INTO honormarket VALUES('',{$_POST['amnt']},$userid,$tp)"); $db->query("UPDATE users SET honor=honor-{$_POST['amnt']} WHERE userid=$userid"); print "<font color=white>Honors added to market! [url='honormarket.php']> <font color=white>Back[/url]"; } else { print "[b]<font color=white>Adding a listing...[/b] You have [b]{$ir['honor']}[/b] honor(s) that you can add to the market.<form action='honormarket.php?action=add' method='post'><table width=50% border=2><tr> <td><font color=white>Honors:</td> <td><input type='text' name='amnt' value='{$ir['honor']}' /></td></tr><tr> <td><font color=white>Price Each:</td> <td><input type='text' name='price' value='0' /></td></tr><tr> <td colspan=2 align=center><input type='submit' value='Add To Market' /></tr></table></form>"; } } $h->endpage(); ?> please note, i havnt tested it 100%, only added them to the market and removed them, nothing else, no ones brought them yet, since i havnt really put it on the explore.php page yet lol.
-
Re: honor exchange help thx danny, i didnt use that verison, but i converted it into my verison :) but still i wouldnt of been able to do it without your help :)
-
Re: honor exchange help the honor exchange thing confuses me when trying to make it add a item and not stats. the adding stats bit is easy. thats why i asked if someone can convert that honor exchange file i posted up into where you can give out items and not stats. thats all i asked... not how to do it. as if someone can convert it into making it give out items for a set amount of honors which is 100 of them, i can learn how to do it that way. its much easier...
-
Re: honor exchange help no, i have no idea what u mean lol. i dont know how to write the query thing in to insert a item thing. if anyone knows, can u tell me please? or even show me a post which probably explains it :)
-
Re: honor exchange help but anyways, does anyone know how to make it so u can exchange the honor points for weapons or armour? it would be greatful, if u can convert the money into weapon and crystals into armour at 100 honor points each. with the item ID's of 86 and 87,
-
Re: honor exchange help so have it like that then?
-
Re: honor exchange help it was on the harry something mod. dont ask why... but what does that do anyways?
-
Re: honor exchange help also if you could... can u tell me how to make the streets search 1 by 1 and not all at a time until u go into hospital/jail? i have tried searching for both these topics before i posted a help thing, but i cant find it.
-
hi im wondering can anyone help me on this honor exchange thing? im trying to make it so you can exchange 100 honors for a weapon or armour. this is my money/crystals part, can anyone change the information in this coding to make it so u can exchange the honors for weapon or armour the item ID's are 86 and 87. <?php include "globals.php"; if(!$_GET['spend']) { print "<font color=white>Welcome to the Reward Exchange Center! You have [b]{$ir['honor']}[/b] Rewards. What would you like to spend your Rewards on?</font> <table width=50% cellspacing=1 class='table'> <th><font color=firebrick><h3>Type</h3></th> <th><font color=firebrick><h3>Money/Knifes Per Reward</h3></th> <th><font color=firebrick><h3>Claim</h3></font></th></tr> <td><center><font color=white>Money</td><td><center><font color=white>\$10000</td><td><center><a href='rewardexchange.php?spend=money'>Get It</td></tr><tr> <td><center><font color=white>Knifes</td><td><center><font color=white>50</td><td><center><a href='rewardexchange.php?spend=crystals'>Get It</td></tr><tr> </td></tr></table>"; } else if($_GET['spend'] == 'money') { print "<font color=white>Type in the amount of Rewards you want to swap for cash. You have [b]{$ir['honor']}[/b] Rewards. One Reward = \$10000.</font><form action='rewardexchange.php?spend=money2' method='post'><input type='text' name='honor' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'money2') { $_POST['honor']=(int) $_POST['honor']; if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor']) { print "<font color=white>Error, you either do not have enough Rewards or did not fill out the form.</font> [url='rewardexchange.php?spend=money']Back[/url]"; } else { $moneygain=$_POST['honor']*10000; mysql_query("UPDATE users SET honor=honor-{$_POST['honor']},money=money+$moneygain WHERE userid=$userid",$c); print "<font color=white>You traded {$_POST['honor']} Rewards for $moneygain.</font>"; } } else if($_GET['spend'] == 'crystals') { print "<font color=white>Type in the amount of Rewards you want to swap for Knifes. You have [b]{$ir['honor']}[/b] Rewards. One Reward = 50 Knifes.</font><form action='rewardexchange.php?spend=crystals2' method='post'><input type='text' name='honor' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'crystals2') { $_POST['honor']=(int) $_POST['honor']; if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor']) { print "Error, you either do not have enough Rewards or did not fill out the form. [url='rewardexchange.php?spend=crystals']Back[/url]"; } else { $crystalsgain=$_POST['honor']*50; mysql_query("UPDATE users SET honor=honor-{$_POST['honor']},crystals=crystals+$crystalsgain WHERE userid=$userid",$c); print "<font color=white>You traded {$_POST['honor']} Rewards for $crystalsgain knifes.</font>"; } } $h->endpage(); ?>
-
who makes cheap and good layouts/templates?
Nicholas replied to Nicholas's topic in General Discussion
Re: who makes cheap and good layouts/templates? got someone to do a layout for me :) thx for your help :)