
zbirc3
Members-
Posts
173 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by zbirc3
-
Re: [mccodes]Secure demo account This is pretty useful. +1 to the Poster.
-
Re: [mccode v2] Tag Mod (Complete) @ryzzo123 1. Try using correct grammar and spelling, please. It does not help you if you cannot help us understand what is going on. 2.
-
Re: [mccode v2]My Simple Search Streets Very nice mod, Ishmell.
-
Re: [mccode v2] Humans vs. Zombies EVENT mod I am definitely going to use this. +1 for all the people who pitched in when it is out.
-
Re: [MCC V2] - Brothel Non exploitable TYVM Killah, +1 I am using this.
-
Re: [Mccode V2] Comment Board No problem. Just check my post ... I edited it.
-
Re: [Mccode V2] Comment Board +1 using this AND I like it. PM me later to remind me to +1 you again in 10 hours :P EDIT: Found ONE little tiny problem:
-
Re: [v2]Simple Mine +1 Homie. I love this. Added to AM, as I do with 99% of your free mods :P
-
Re: [mccode V2] Attack :) Well couldn't you just make it say "You made your attack on..."? :P anyway, Nice mod. Using it. +1
-
Re: [V2] Annoucements Upgrade! Works on my game. +1
-
Re: [mccode v2]View User I tested it on my game and worked nicely (without my current features included in the orig viewuser.php script) but it didnt go well mixing with my other mods .
-
Re: Calling it a Day :) Damn man, you will ALWAYS be missed. You were a great asset to the MCC community ... And CE. Have a Merry Xmas and a happy new year man. Keep well.
-
Re: [mccode v2]View User But then again, it's not too hard to test it, eh? Nice mod Sniko ^_^
-
Re: [mccode v2]View User Very nice modification, mate. ;) +1
-
Re: [mccode v2] Christmas Gift ( Abit Late :P ) the fifth link is a 404... update the image and it should be fine. :)
-
Re: Organizations & Productions It's actually looking pretty good. Nice work and looking forward to see those tutorials. ;) +1
-
[mccode v2] Pass Parcel or Secret Santa [Working Copy]
zbirc3 replied to Uridium's topic in Free Modifications
Re: [Mccodes v2] Pass Parcel or Secret Santa [Working Copy] uh, THIS should be the staff_parcel.php Reason: Some of the queries were mixed up with the parcel types query, ect... <?php include "sglobals.php"; //This contains parcel stuffs switch($_GET['action']) { case 'newparcel': new_parcel_form(); break; case 'newparcelub': new_parcel_submit(); break; case 'giveparcel': give_parcel_form(); break; case 'giveparcelub': give_parcel_submit(); break; case 'killparcel': kill_parcel_form(); break; case 'killparcelub': kill_parcel_submit(); break; case 'editparcel': edit_parcel_begin(); break; case 'editparcelform': edit_parcel_form(); break; case 'editparcelub': edit_parcel_sub(); break; case 'newparceltype': newparceltype(); break; case 'editparceltype': editparceltype(); break; case 'editparceltypeform': editparceltypeform(); break; case 'editparceltypesub': editparceltypesub(); break; case 'delparceltypes': delparceltypes(); break; case 'delparceltypesub': delparceltypesub(); break; case 'whosgotit': whosgotit(); break; default: print "Error: This script requires an action."; break; } function new_parcel_form() { global $db,$ir,$c; if($ir['user_level'] > 2) { die("403"); } print "<h3>Adding an parcel to the game</h3><form action='staff_parcel.php?action=newparcelub' method='post'> parcel ID: <input type='text' name='parcelid' value='' /> parcel Name: <input type='text' name='parcelname' value='' /> parcel Desc.: <input type='text' name='parceldesc' value='' /> wrapper Amount: <input type='text' name='parcelamount' /> parcel Prize: ".item_dropdown($c,'parcelprize')." [b]parcel Pics[/b] If you cannot find an Image put default.jpg in the text area <input type='text' name='parcelpic' value='default.jpg' /><hr /> <input type='submit' value='Add parcel To Game' /></form>"; } function new_parcel_submit() { global $db,$ir,$c,$h; if($ir['user_level'] > 2) { die("403"); } if(!isset($_POST['parcelname']) || !isset($_POST['parceldesc'])) { print "You missed one or more of the fields. Please go back and try again. [url='staff_parcel.php?action=newparcel']> Back[/url]"; $h->endpage(); exit; } $parcelname=$db->escape($_POST['parcelname']); $parceldesc=$db->escape($_POST['parceldesc']); $parceltypes=$db->escape($_POST['parceltypes']); $parcelamount=$db->escape($_POST['parcelamount']); $parcelprize=$db->escape($_POST['parcelprize']); $parcelpic=$db->escape($_POST['parcelpic']); $m=$db->query("INSERT INTO parcel VALUES('','{$_POST['parcelid']}','$parcelname','$parceldesc','{$_POST['parcelamount']}', '{$_POST['parcelpic']}','{$_POST['parcelprize']}')"); print "The {$_POST['parcelname']} parcel was added to the game."; stafflog_add("Created parcel {$_POST['parcelname']}"); } function give_parcel_form() { global $db,$ir,$c; if($ir['user_level'] > 3) { die("403"); } print "<h3>Giving parcel To User</h3> <form action='staff_parcel.php?action=giveparcelub' method='post'> User: ".user_dropdown($c,'user')." parcel: ".parcelgift_dropdown($c,'parcelgift')." Quantity: <input type='text' name='qty' value='1' /> <input type='submit' value='Give parcel' /></form>"; } function give_parcel_submit() { global $db,$ir,$c; if($ir['user_level'] > 3) { die("403"); } $db->query("INSERT INTO parcelinventory VALUES('',{$_POST['parcelgift']},{$_POST['user']},{$_POST['qty']})",$c) or die(mysql_error()); print "You gave {$_POST['qty']} of parcel ID {$_POST['parcelgift']} to user ID {$_POST['user']}"; stafflog_add("Gave {$_POST['qty']} of parcel ID {$_POST['parcelgift']} to user ID {$_POST['user']}"); } function kill_parcel_form() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } print "<h3>Deleting parcel</h3> The parcel will be permanently removed from the game. <form action='staff_parcel.php?action=killparcelub' method='post'> parcel: ".parcel_dropdown($c,'parcel')." <input type='submit' value='Kill parcel' /></form>"; } function kill_parcel_submit() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } $d=$db->query("SELECT * FROM parcel WHERE parcelid={$_POST['parcel']}"); $parceli=$db->fetch_row($d); $db->query("DELETE FROM parcel WHERE parcelid={$_POST['parcel']}"); print "The {$parceli['parcelname']} parcel was removed from the game."; stafflog_add("Deleted parcel {$parceli['parcelname']}"); } function edit_parcel_begin() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } print "<h3>Editing parcel</h3> You can edit any aspect of this parcel. <form action='staff_parcel.php?action=editparcelform' method='post'> parcel: ".parcel_dropdown($c,'parcel')." <input type='submit' value='Edit parcel' /></form>"; } function edit_parcel_form() { global $db,$ir,$c,$h; if($ir['user_level'] > 2) { die("403"); } $d=$db->query("SELECT * FROM parcel WHERE parcelid={$_POST['parcel']}"); $parceli=$db->fetch_row($d); print "<h3>Editing parcel</h3> <form action='staff_parcel.php?action=editparcelub' method='post'> <input type='hidden' name='parcelid' value='{$_POST['parcel']}' /> parcel Name: <input type='text' name='parcelname' value='{$parceli['parcelname']}' /> parcel Desc.: <input type='text' name='parceldesc' value='{$parceli['parceldesc']}' /> wrapper Amount: <input type='text' name='parcelamount' value='{$parceli['parcelamount']}' /> parcel Prize: ".item_dropdown($c,'parcelprize',$parceli['parcelprize'])." [b]parcel Pics[/b] <input type='text' name='parcelpic' value='{$parceli['parcelpic']}' /><hr /> <input type='submit' value='Edit parcel' /></form> <center>parcel Image Available [img=parcelpics/{$parceli[]"; } function edit_parcel_sub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } if(!isset($_POST['parcelname']) || !isset($_POST['parceldesc'])) { print "You missed one or more of the fields. Please go back and try again. [url='staff_parcel.php?action=editparcel']> Back[/url]"; $h->endpage(); exit; } $parcelname=$db->escape($_POST['parcelname']); $parceldesc=$db->escape($_POST['parceldesc']); $parceltypes=$db->escape($_POST['parceltypes']); $parcelamount=$db->escape($_POST['parcelamount']); $parcelprize=$db->escape($_POST['parcelprize']); $parcelpic=$db->escape($_POST['parcelpic']); $db->query("DELETE FROM parcel WHERE parcelid={$_POST['parcelid']}",$c); $m=$db->query("INSERT INTO parcel VALUES('','{$_POST['parcelid']}','$parcelname','$parceldesc','{$_POST['parcelamount']}', '{$_POST['parcelpic']}','{$_POST['parcelprize']}')"); print "The {$_POST['parcelname']} parcel was edited successfully."; stafflog_add("Edited parcel {$_POST['parcelname']}"); } function newparceltype() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } if($_POST['name']) { $db->query("INSERT INTO parceltypes VALUES('','{$_POST['name']}','','')"); print "parcel Type {$_POST['name']} added."; stafflog_add("Added parcel type {$_POST['name']}"); } else { print "<h3>Add parcel Type</h3><hr /> <form action='staff_parcel.php?action=newparceltype' method='post'> Name: <input type='text' name='name' /> <input type='submit' value='Add parcel Type' /></form>"; } } function editparceltype() { global $db,$ir,$c,$h,$userid; print "<h3>Remove parcel Type</h3><hr /> <form action='staff_parcel.php?action=editparceltypeform' method='post'> Name: ".parcel_dropdown($c,'parcel')." <input type='submit' value='Edit parcel Type' /></form> "; } function editparceltypeform() { global $db,$ir,$c,$h,$userid; $d=$db->query("SELECT * FROM parceltypes WHERE parceltypeid={$_POST['parceltypeid']}"); $parcelt=$db->fetch_row($d); print "<h3>Edit parcel Type</h3><hr /> <form action='staff_parcel.php?action=editparceltypesub' method='post'> <input type='hidden' name='parcelid' value='{$_POST['parcel']}' /> Name: <input type='text' name='parcelname' value='{$parcelt['parcelname']}' /> <input type='submit' value='Edit parcel Type' /></form> "; } function editparceltypesub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } $db->query("DELETE FROM parceltypes WHERE parcelid={$_POST['parceltypeid']}"); $db->query("INSERT INTO parceltypes VALUES('{$_POST['parceltypeid']}', '{$_POST['parceltypename']}')"); print "The parceltypes {$_POST['parceltypename']} has been edited."; stafflog_add("Edited parceltypes {$_POST['parceltypename']}"); } function delparceltypes() { global $db,$ir,$c,$h,$userid; print "<h3>Remove parcel Type</h3><hr /> <form action='staff_parcel.php?action=delparceltypesub' method='post'> Name: ".parceltypes_dropdown($c,'parceltype')." <input type='submit' value='Remove parcel Type' /></form> "; } function delparceltypesub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } $d=$db->query("SELECT * FROM parceltypes WHERE parceltypeid={$_POST['parceltype']}"); $parcelt=$db->fetch_row($d); $db->query("DELETE FROM parceltypes WHERE parcelid={$_POST['parcelid']}"); print "The parceltype {$parcelt['parceltypename']} has been removed from the game."; stafflog_add("Deleted parceltypes {$parcelt['parceltypename']}"); } function mass_give_parcel() { global $db,$ir,$c; print "<h3>Giving parcel To All Users</h3> <form action='staff_parcel.php?action=massparcelgivesub' method='post'> parcel: ".parcel_dropdown($c,'parcel')." Quantity: <input type='text' name='qty' value='1' /> <input type='submit' value='Mass Send' /></form>"; } function mass_give_parcel_sub() { global $db,$ir,$c; $q=mysql_query("SELECT * FROM users WHERE fedjail=0",$c); while($r=mysql_fetch_array($q)) { $db->query("INSERT INTO inventory VALUES('',{$_POST['parcel']},{$r['userid']},{$_POST['qty']})",$c) or die(mysql_error()); event_add($r['userid'],"All users were given an parcel {$_POST['parcel']}, Click [url='inventory.php']Here[/url] to check.",$c); print "parcel Sent To {$r['username']}</br>"; } print " <font color=blue>Mass parcel sending complete!</br></font>"; stafflog_add("Gave {$_POST['qty']} of parcel ID {$_POST['parcel']} to all users"); } function whosgotit() { global $db,$ir,$c,$userid; $q=mysql_query("SELECT parcelinv_qty=1 FROM parcelinventory WHERE parcelinv_userid=$userid",$c); while($r=$db->fetch_row($q)) { // Oh look a space aye } global $db,$ir,$c, $userid; $d=$db->query("SELECT parcelinv_qty=1 FROM parcelinventory WHERE parcelinv_userid=$userid",$c); $parcel=$db->fetch_row($d); } if($ir['parcel'] = 0) { die(" <h2><font color=yellow>Nobody has the Parcel</h2>"); } if($ir['parcel'] = 1) { die(" <h2><font color=yellow>{$ir['username']} Has The Parcel at the moment</h2>"); } $h->endpage(); ?> also can anyone fix my Wrapper.php for me cuz it keeps saying i dont have a parcel in my possession as soon as i click on unwrap layer after i click remove layer in inventory. -
[mccode v2] Item needed to perform crime.
zbirc3 replied to shaved92bravada's topic in Free Modifications
Re: [mccode V2] Item needed to perform crime. +1. Testing on my game now. EDIT: Sorry, it is not working for me. :( Still +1'ed you, though. -
[mccode v2] Pass Parcel or Secret Santa [Working Copy]
zbirc3 replied to Uridium's topic in Free Modifications
Re: [Mccodes v2] Pass Parcel or Secret Santa [Working Copy] +1 but i'm having troubles with it, Illusions. Mind going on MSN? -
[mccode v2] Pass Parcel or Secret Santa [Working Copy]
zbirc3 replied to Uridium's topic in Free Modifications
Re: [Mccodes v2] Pass Parcel or Secret Santa [Working Copy] Fatal error: Call to undefined function parcel_dropdown() in /#/#/public_html/staff_parcel.php on line 34 :( also QUERY ERROR: Column count doesn't match value count at row 1 Query was INSERT INTO parceltypes VALUES(NULL, 'Round 1') -
[mccode v2] Item sell code revamp ~ Last of the lot
zbirc3 replied to radio_active's topic in Free Modifications
Re: [MCcode V2] Item sell code revamp ~ Last of the lot Poster #2's code doesnt work. Does not give the money that it is worth - It gives 0. radio_active's script on Post #1 works perfectly. Thanks :) -
Re: [mccodeV2] Donations page Elite That would be sweet man. Another +1 for you.
-
Re: [MCcode V2] Item Market Revamped QUERY ERROR: 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 'FROM `itemmarket` im LEFT JOIN `items` i ON `im.imIT' at line 4 Query was SELECT im.`imID`,`imITEM`,`imADDER`,`imPRICE`,`imCURRENCY`, i.`itmid`,`itmtype`, FROM `itemmarket` im LEFT JOIN `items` i ON `im.imITEM` = 0 WHERE `imID` = 3 AND `imADDER` = 1 ^^ When Removing from the item market...
-
Re: [mccodeV2] Donations page Elite LOL we all know that. :P Just not all of us know how to code it. ;) +1 anyway
-
Re: [MCcode V2] Item Info revamp! Lovin' your Revamps, matey. ^_^ +1