Jump to content
MakeWebGames

HITMAN 17

Members
  • Posts

    1,145
  • Joined

  • Last visited

Everything posted by HITMAN 17

  1. Re: If you dont have a licence then dont use mccode v2!!! i agree with floydian also floydian i bet you arnt stupid enough to not put copy right on your software
  2. Re: If you dont have a licence then dont use mccode v2!!! mate people think that its not worth buying the codes as many people have them illegally so he should just not sell mccodes v2 or v1 no more and just concentrate on mc v3 as everyone have mc v2 now
  3. i am looking to buy an auction market that properly works for v2 with not errors between $10-$15
  4. Re: [mccode V1 V2] Chat Mod can you just do the index bitlike just where to add it instead of your one
  5. Re: [request][mccodes v2] local school i would love to see someone make a free one of the one like tc
  6. Re: [mccode v2] Faction with Armoury has anyone got gang ocs for this yet
  7. Re: [Mcodes V2]Auction Cron Fix[Needed] ok guys i really tried for a few hours fixing it but i can fix it can someone please have an attempt and i have looked around the forum whats going on
  8. Re: [Mcodes V2]Auction Cron Fix[Needed] it dont work maybe someone elser can help
  9. Re: [Mcodes V2]Auction Cron Fix[Needed] oo cheers ill try now
  10. Re: [Mcodes V2]Auction Cron Fix[Needed] ok there is one other problem with this that the auction doesnt credit the person who was selling the item the money
  11. Re: [mccode v2] Fight the good Fight i think it better if you go to hospital
  12. Re: [mccode v2] Donator Packs To Items ok cheers now in donator.php im sure this needs changing <input type="hidden" name="notify_url" value="http://{$domain}/ipn_donator.php"> but what to
  13. Re: [mccode v2] Donator Packs To Items im not sure what the link is can someone help me out please
  14. Re: [mccode v2] Donator Packs To Items i have done it hurray well i think this is all correct can someone check <? include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; require 'global_func.php'; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // post back to PayPal system to validate $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30); // assign posted variables to local variables $item_name = $_POST['item_name']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; $payment_amount = $_POST['mc_gross']; $payment_currency = $_POST['mc_currency']; $txn_id = $_POST['txn_id']; $receiver_email = $_POST['receiver_email']; $payer_email = $_POST['payer_email']; if (!$fp) { // HTTP ERROR } else { fputs ($fp, $header . $req); while (!feof($fp)) { $res = fgets ($fp, 1024); if (strcmp ($res, "VERIFIED") == 0) { // check the payment_status is Completed if($payment_status != "Completed") { fclose ($fp);die(""); } if(mysql_num_rows($db->query("SELECT * FROM dps_accepted WHERE dpTXN='{$txn_id}'", $c)) > 0) { fclose ($fp);die(""); } if(mysql_num_rows($db->query("SELECT * FROM willps_accepted WHERE dpTXN='{$txn_id}'", $c)) > 0) { fclose ($fp);die(""); } // check that txn_id has not been previously processed // check that receiver_email is your Primary PayPal email if($receiver_email != $set['paypal']) { fclose ($fp);die(""); } // check that payment_amount/payment_currency are correct if($payment_currency != "USD") { fclose ($fp);die(""); } // parse for pack $packr=explode('|',$item_name); if(str_replace("www.","",$packr[0]) != str_replace("www.","",$_SERVER['HTTP_HOST'])) { fclose($fp); die(""); } if($packr[1] != "DP") { fclose($fp);die(""); } $pack=$packr[2]; if( $pack != 1 and $pack != 2 and $pack != 3 and $pack != 4 and $pack != 5) { fclose($fp);die(""); } if(($pack == 1 || $pack == 2 || $pack == 3) && $payment_amount != "3.00") { fclose ($fp);die(""); } if($pack == 4 && $payment_amount != "5.00") { fclose ($fp);die(""); } if($pack == 5 && $payment_amount != "10.00") {fclose ($fp);die(""); } // grab IDs $buyer=$packr[3]; $for=$buyer; // all seems to be in order, credit it. if($pack==1) { item_add($for, $set['dp_item1'], 1); } else if($pack==2) { item_add($for, $set['dp_item2'], 1); } else if($pack==3) { item_add($for, $set['dp_item3'], 1); } else if($pack==4) { item_add($for, $set['dp_item4'], 1); } else if($pack==5) { item_add($for, $set['dp_item5'], 1); } // process payment event_add($for, "Your \${$payment_amount} Pack {$pack} Donator Pack has been successfully credited to you.", $c); $db->query("INSERT INTO dps_accepted VALUES('', {$buyer}, {$for}, '$t', unix_timestamp(), '$txn_id')"); } else if (strcmp ($res, "INVALID") == 0) { } } fclose ($fp); } ?>
  15. Re: [mccode v2] Donator Packs To Items ok how would i do that me a newbie still so how could i do that and what can i rplace it with
  16. Re: [mccode v2] Donator Packs To Items $set['willp_item'] what would i change that for for the donator item packs
  17. Re: [mccode v2] Donator Packs To Items ok cheers i am doing this but what can i change this for the doantor packs if($pack==1) { item_add($for, $set['willp_item'], 1);
  18. Re: [mccode v2] Donator Packs To Items just now as i need it for my game
  19. Re: [mccode v2] Donator Packs To Items well can someone make one for free or i can pay you
  20. Re: [mccode v2] Crimes (Players Can Go To Hospital) i actually really like this mod as its a little different and say if you made a crime like say you saw an aston martin with the keys in the car you could make it saying you trip up and injusre your self badly your in hospital
  21. Re: [mccode v2] Donator Packs To Items the one what i did isnt the standard one it is a beeter one which is made for dp to items
  22. Re: [mccode v2] Donator Packs To Items try something like this for the ipn_donator.php <?php include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; require 'global_func.php'; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // post back to PayPal system to validate $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30); // assign posted variables to local variables $item_name = $_POST['item_name']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; $payment_amount = $_POST['mc_gross']; $payment_currency = $_POST['mc_currency']; $txn_id = $_POST['txn_id']; $receiver_email = $_POST['receiver_email']; $payer_email = $_POST['payer_email']; if (!$fp) { // HTTP ERROR } else { fputs ($fp, $header . $req); while (!feof($fp)) { $res = fgets ($fp, 1024); if (strcmp ($res, "VERIFIED") == 0) { // check the payment_status is Completed if($payment_status != "Completed") { fclose ($fp);die(""); } if($db->num_rows($db->query("SELECT * FROM dps_accepted WHERE dpTXN='{$txn_id}'")) > 0) { fclose ($fp);die(""); } // check that txn_id has not been previously processed // check that receiver_email is your Primary PayPal email if($receiver_email != $set['paypal']) { fclose ($fp);die(""); } // check that payment_amount/payment_currency are correct if($payment_currency != "USD") { fclose ($fp);die(""); } // parse for pack $packr=explode('|',$item_name); if($packr[1] != "DP") { fclose($fp);die(""); } $pack=$packr[2]; if( $pack != 1 and $pack != 2 and $pack != 3) { fclose($fp);die(""); } if($pack == 2 && $payment_amount != "3.00") { fclose ($fp);die(""); } if($pack == 1 && $payment_amount != "5.00") { fclose ($fp);die(""); } if($pack == 3 && $payment_amount != "50.00") {fclose ($fp);die(""); } // grab IDs $buyer=$packr[4]; $for=$packr[3]; // all seems to be in order, credit it. if($pack==1) { $db->query("INSERT INTO inventory VALUES ('','35','{$for}','1')"); $d=0; $t="regular"; } else if($pack==2) { $db->query("INSERT INTO inventory VALUES ('','35','{$for}','1')"); $d=30; $t="gem"; } else if($pack==3) { $db->query("INSERT INTO inventory VALUES ('','35','{$for}','1')"); $d=300; $t="50"; } // process payment event_add($for, "Your \${$payment_amount} Pack {$pack} Donator Pack has been successfully credited to you.", $c); $db->query("INSERT INTO mail VALUES ('',0,1,{$for},unix_timestamp(),'Your Donation','Thank you for donating, it keeps this game up and running, for everyone to enjoy. There is no way to express how much I sincerely appreciate this, good luck in the game.')"); $db->query("UPDATE users SET new_mail=new_mail+1 WHERE userid={$buyer}"); $db->query("INSERT INTO dps_accepted VALUES('', {$buyer}, {$for}, '$t', unix_timestamp(), '$txn_id')"); $db->query("INSERT INTO donations VALUES(NULL, {$for} ,'SYSTEM',unix_timestamp(),$pack)"); $email="[email protected]"; $message = "Donator pack Done: Buyer: $buyer For: $for Pack: $pack"; $subject = "Donator Pack"; $headers = "From: \"Donation\"<email address>\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\""; mail($email, $subject, $message, $headers); } else if (strcmp ($res, "INVALID") == 0) { } } fclose ($fp); } ?>
  23. Re: [mccode v2] cMarket Total Limiter ahh cheers i didnt check that line
  24. Re: [mccode v2] cMarket Total Limiter looks very good and it was made for me i cant fix this error Parse error: syntax error, unexpected T_VARIABLE in /home//public_html/cmarket.php on line 198 on this line $bought = sprintf("UPDATE users SET cry = cry - '%u' WHERE userid = '%u' ",
  25. Re: [mccode v2] cMarket Total Limiter thank you very much i will add it tonight or tomoz +1
×
×
  • Create New...