-
Posts
207 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by grant
-
well i have been codding my game for 5 mouth now has NPC bot system and lots of other stuff you can get your fingers in to if you would like to check it out and give me feed back would be great http://www.mafia-warriors.net
-
lol no one would sell me one so i made my own but better than the throne that get sold on here come in a pack with 2 thrones queen and king for the same price and also a throne in every city but with the one you get from here is only one throne in every city and the its the same user on it mines has diff users in every city on it add me on msn [email protected]
-
this website for helping other with they website if not then why is there a GRPG Support and i never ask for work to be done only asking if its bug free
-
ok thanks Dominion
-
for this website help you if you not sure ???? that y am posting it here
-
if not can you please mail me wots needs to be fixed thanks <?php include 'header.php'; $_POST['amount'] = abs((int) $_POST['amount']); if ($_POST['addpoints']){ if($_POST['amount'] == 0){ echo Message("Please enter a valid amount of money"); include 'footer.php'; die(); } $_POST['amount'] = abs((int) $_POST['amount']); if($_POST['amount'] > $user_class->points){ echo Message("You don't have that many points."); } if (!preg_match("/^[-_a-zA-Z0-9]+$/", $_POST['amount'])){ echo Message("Please enter a valid amount"); include "footer.php"; die(); } if (!preg_match("/^[-_a-zA-Z0-9]+$/", $_POST['price'])){ echo Message("Please enter a valid amount"); include "footer.php"; die(); } $time = time(); if($_POST['amount'] >= 1 && $_POST['amount'] <= $user_class->points && $_POST['price'] >= 1){ echo Message("You have added ".$_POST['amount']." points to the market a price of $".$_POST['price']." per point."); $result= mysql_query("INSERT INTO `pointsmarket` (owner, amount, price )"."VALUES ('$user_class->id', '$_POST[amount]', '$_POST[price]')"); $newpoints = $user_class->points - $_POST['amount']; $result = mysql_query("UPDATE `grpgusers` SET `points` = '".$newpoints."' WHERE `id`='".$user_class->id."'"); $user_class = new User($_SESSION['id']); } } if ($_POST['buypoints']){ $result = mysql_query("SELECT * FROM `pointsmarket` WHERE `id`='".$_POST['points_id']."'"); $worked = mysql_fetch_array($result); $price = $worked['price']; $amount = $worked['amount']; $totalcost = $price * $_POST['amount']; $newpointsinmarket = $amount - $_POST['amount']; $user_points = new User($worked['owner']); if (!preg_match("/^[-_a-zA-Z0-9]+$/", $_POST['amount'])){ echo Message("Please enter a valid amount"); include "footer.php"; die(); } if($_POST['amount'] > $amount & $amount < 1){ echo Message("They are not selling that many points."); } elseif($_POST['amount'] < 1){ echo Message("Please enter a valid amount of points to buy."); } elseif($user_class->level < 5){ echo Message("You must be at least level 5 to sell points on the market [<a href='pointmarket.php'>Back</a>]."); include 'footer.php'; die(); } elseif ($totalcost > $user_class->money){ echo Message("You don't have enough money."); } else { echo Message("You have bought ".$_POST['amount']." points for $".$totalcost); Send_Event($user_points->id, $user_class->username." bought ".$_POST['amount']." points for $".$totalcost); $newpoints = $user_class->points + $_POST['amount']; $newmoney = $user_class->money - $totalcost; $result = mysql_query("UPDATE `grpgusers` SET `money` = '".$newmoney."', `points` = '".$newpoints."' WHERE `id`='".$user_class->id."'"); $newmoney = $user_points->money + $totalcost; $result = mysql_query("UPDATE `grpgusers` SET `money` = '".$newmoney."' WHERE `id`='".$user_points->id."'"); $user_class = new User($_SESSION['id']); if ($newpointsinmarket == 0){ $result = mysql_query("DELETE FROM `pointsmarket` WHERE `id`='".$worked['id']."'"); } else { $result = mysql_query("UPDATE `pointsmarket` SET `amount` = '".$newpointsinmarket."' WHERE `id`='".$worked['id']."'"); } } } if ($_POST['remove']){ $result = mysql_query("SELECT * FROM `pointsmarket` WHERE `id`='".$_POST['points_id']."'"); $worked = mysql_fetch_array($result); $price = $worked['price']; $amount = $worked['amount']; $totalcost = $price * $_POST['amount']; $newpointsinmarket = $amount - $_POST['amount']; $user_points = new User($worked['owner']); if (!preg_match("/^[-_a-zA-Z0-9]+$/", $_POST['amount'])){ echo Message("You dont have that many points"); include "footer.php"; die(); } echo Message("You have taken ".$_POST['amount']." points off the market [<a href='pointmarket.php'>Back</a>]."); $newpoints = $user_class->points + $_POST['amount'];; $result = mysql_query("UPDATE `grpgusers` SET `points` = '".$newpoints."' WHERE `id`='".$user_class->id."'"); $user_class = new User($_SESSION['id']); if ($newpointsinmarket == 0){ $result = mysql_query("DELETE FROM `pointsmarket` WHERE `id`='".$worked['id']."'"); } else { $result = mysql_query("UPDATE `pointsmarket` SET `amount` = '".$newpointsinmarket."' WHERE `id`='".$worked['id']."'"); } include 'footer.php'; die(); } ?> <link href="warrior.css" rel="stylesheet" type="text/css"> <tr><td class="contenthead">Point Market</td></tr> <tr><td class="contentcontent"> Use this form to add points to the points market.<br><br> <form method='post'> <table align="center"> <tr> <td>Amount of points</td><td> <input name='amount' type='text' class="areatest" value='<? echo $user_class->points ?>' size='10' maxlength='20'></td> </tr> <tr> <td>Price per point</td><td>$<input name='price' type='text' class="areatest" size='10' maxlength='20'></td> <tr><td align="center" colspan="2"><input name='addpoints' type='submit' class="buttong" value='Add Points'></form></td> </tr></table> </td></tr> <tr><td class="contentcontent"> <?php $result = mysql_query("SELECT * FROM `pointsmarket` ORDER BY `price` DESC"); while($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $user_points = new User($line['owner']); if ($user_points->id == $user_class->id){ $submittext = "<input type='hidden' name='points_id' value='".$line['id']."'><input type='submit' name='remove' class='buttong' value='Remove points'></form>"; } else { $submittext = "<input type='hidden' name='points_id' value='".$line['id']."'><input type='submit' name='buypoints' class='buttong' value='Buy Points'></form>"; } echo "<form method='post'>"; echo $user_points->formattedname." - ".$line['amount']." points for $".$line['price']." per point <input type='text' name='amount' size='3' class='areatest' maxlength='20' value='".$line['amount']."'> ".$submittext."</form><br>"; } ?> </td></tr> <?php include 'footer.php'; ?>
-
lol i see that was a bit big thanks
-
well yeah thats true am going to remove the name change then lol thanks for letting me see this that way and i see about the bomb i was gone to change it so that the admin can turn the bomb off he gets 5 min to turn it off the city users will get an event says that a bomb is about to go off get the heck out of there if the users go to a other city he safe only blows up in that city
-
thanks for letting me no your opinion
-
mabi remove the slap it cost 1000 points to blow the city up and can only be done one time a day for got to add that and the city name only change the name of the city
-
im making a mod where users can fight over a city in the city you have a range of things that you can do * try take the city of the owner who owns the city if you can take the city you become the new owner * Blow the city up along with the users in the city * slap the users in the city * buy the city if the owner of the city put the city for sale the users who buys the city will become owner ***** owner admin panel * can kick users out of the city * can block the menus * can ban players from the city(only last one hour) * can change the color of the city * can change the city banner * can change the name of the city any ideas for this new mod am about 90% done thanks
-
Selling race track where users can race there cars this mod you can race other users if the user speed is higher you lose if yours is higher you winl simple mod but good for the users you need to refuel if your fuel is low other wise you cant race you can only post 1 race at a time this mod includes 1 SQl 1 racetrack.php and some edits in classes i will add money points if wanted this mod is selling at $15 Add [email protected] if you want to buy screen shot
-
yes that wot throne do the house breaking you gain 500 exp and $30000 if your speed is greater that theirs if no you get sent to jail and if the users who you are trying to break in to has no home well you cant break in or if the house has been broke in to in that day at some time you need to wait in till rollover to break in again realy simple to install and fun for the users
-
the house breaking send you a Event telling you that your house has been burgled and by wot user
-
http://www.mafia-warrioirs.net username : test password : test
-
thonre..... you can become the king of a city you gain kills if the other user cant take you of it housebreaking ...... can break in to a users house if your speed is greater than theres can only break in one time every day
-
....selling throne... all made by myself $10 .......throne if you have if you are stronger that the player who is on the throne you will become the king if you wack him off it if not he gains a kill you can have them in any city for all users to try them there is queen to for the ladys just the same if the players is stonger they will take them of if the user goes to a other city the user who trys the throne will become king or queen the other users has left town so he not there to get him ....selling house breaks $5 ......house breaking you gain 500 exp and $30000 if your speed is greater that theirs if no you get sent to jail and if the users who you are trying to break in to has no home well you cant break in or if the house has been broke in to in that day at some time you need to wait in till rollover to break in again ....will install if needed add [email protected]
-
dont matter now got it 8)
-
<?php include "dbcon.php"; function Send_Event ($id, $text){ $timesent = time(); $text = mysql_real_escape_string($text); $result= mysql_query("INSERT INTO `events` (`to`, `timesent`, `text`)". "VALUES ('$id', '$timesent', '$text')"); } function microtime_float() { $time = microtime(); return (double)substr( $time, 11 ) + (double)substr( $time, 0, 8 ); } $time = microtime_float(); // 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']; $first = $_POST['first_name']; $last = $_POST['last_name']; $quantity = $_POST['quantity']; $user_id = $_POST['custom']; $result1000 = mysql_query("INSERT INTO `ipn` (`itemname`, `date`, `itemnumber`, `paymentstatus`, `paymentamount`, `currency`, `txnid`, `receiveremail`, `payeremail`, `first`, `last`, `quantity`, `user_id`)"."VALUES ('".$item_name."', '$time', '".$item_number."', '".$payment_status."', '".$payment_amount."', '".$payment_currency."', '".$txn_id."', '".$receiver_email."', '".$payer_email."', '".$first."', '".$last."', '".$quantity."', '".$user_id."')"); $result2 = mysql_query("SELECT*FROM `grpgusers` WHERE `id`='".$user_id."'"); $worked = mysql_fetch_array($result2); if($item_number == 1 && $payment_status == "Completed"){ $userpoints = $worked['points'] + 25000; $result = mysql_query("UPDATE `grpgusers` SET `rmdays`='".$userrmdays."', `points`='".$userpoints."', `bank`='".$usermoney."' WHERE `id`='".$user_id."'"); Send_Event($user_id, "Your ".$item_name." points has just been credited. "); } if ($item_number == 2 ){ $userpoints = $worked['points'] + 1000; $result = mysql_query("UPDATE `grpgusers` SET `points`='".$userpoints."' WHERE `id`='".$user_id."'"); Send_Event($user_id, "Your ".$item_name." has just been credited. "); } if ($item_number == 3 ){ $userpoints = $worked['points'] + 2500; $result = mysql_query("UPDATE `grpgusers` SET `rmdays`='".$userrmdays."', `points`='".$userpoints."', `bank`='".$usermoney."' WHERE `id`='".$user_id."'"); Send_Event($user_id, "Your ".$item_name." has just been credited. "); } if ($item_number == 4 ){ $userpoints = $worked['points'] + 50000; $result = mysql_query("UPDATE `grpgusers` SET `rmdays`='".$userrmdays."', `points`='".$userpoints."', `bank`='".$usermoney."' WHERE `id`='".$user_id."'"); Send_Event($user_id, "Your ".$item_name." has just been credited. "); } ?>
-
i only posted the button not my full php page wot am trying to use
-
its not html its php
-
only thing i cant get is the user id not posting to data base to give the user the points there bought paypal button that users are buying the points from the idea is that when users buy points the users get the points with me going to give them to the users but cant seem to get the user id to go in database just blank any help wold be great Sql CREATE TABLE IF NOT EXISTS `ipn` ( `itemname` text collate latin1_general_ci NOT NULL, `date` text collate latin1_general_ci NOT NULL, `itemnumber` text collate latin1_general_ci NOT NULL, `paymentstatus` text collate latin1_general_ci NOT NULL, `paymentamount` text collate latin1_general_ci NOT NULL, `currency` text collate latin1_general_ci NOT NULL, `txnid` text collate latin1_general_ci NOT NULL, `receiveremail` text collate latin1_general_ci NOT NULL, `payeremail` text collate latin1_general_ci NOT NULL, `first` text collate latin1_general_ci NOT NULL, `last` text collate latin1_general_ci NOT NULL, `quantity` text collate latin1_general_ci NOT NULL, `user_id` text collate latin1_general_ci NOT NULL <<<<< -Not posting to data base ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci; paypal button <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <td align="center"> <input type=hidden name=cmd value=_xclick> <input type="hidden" name="business" value="******************"> <input type="hidden" name="item_name" value="1"> <input type="hidden" name="payer_id" value="<? echo $user_class->id ?>"> <<<< Dont think the id is posting <input type="hidden" name="amount" value="100"> <input type="hidden" name="no_shipping" value="0"> <input type="hidden" name="return" value="http://www.**********/donatordone.php?payment=done"> <input type="hidden" name="cancel_return" value="http://www.***********.net/donatordone.php"> <input type="hidden" name="notify_url" value="http://www.***************/*****.php"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="hidden" name="on0" value="username"> <input type="hidden" name="os0" value="<? echo $user_class->username ?>" maxlength="60" > <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" width="68" height="23" border="0" name="submit" alt=""> </td> </form>
-
well v not masted securing yet my self thanks for the heads up on that :D
-
make a file slap.php <? include 'header.php'; $attack_person = new User($_GET['slap']); echo Message("You have slaped ".$attack_person->formattedname." on the head Wake up"); Send_Event($attack_person->id,"".$user_class->formattedname." slaped You On the back of the head [[url='slap.php?slap=".$user_class->id."']Slap Back[/url]] "); ?> slap link http://yourgamename.com/slap.php?slap=<? echo $user_class->id ?>