
Veasey
Members-
Posts
44 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by Veasey
-
[Mod] Profile Music & Profile Sig[Mod] Save and close preferences.php and open and replace profiles.php with this; <?include 'header.php';include 'bbcode_engine.php';$profile_class = new User($_GET['id']);?><embed src='http://www.youtube.com/watch?v=<?php echo $profile_class->profilemusic; ?>' height='0' autoplay='true'><tr><td class="contenthead">Profile</td></tr><tr><td class="contentcontent"><table width='100%'><tr><td colspan='4'> <table width='100%' height='100%' cellpadding='5' cellspacing='2'><tr> <td width='120' align='center'>[img=<?= $profile_class->avatar ?>]</td><td align='center'>[b]Favorite Quote: [/b]"<?php echo $profile_class->quote; ?>"</td> </tr></table> </td></tr> <tr><td width='15%'>[b]Name[/b]:</td><td width='35%'><?php echo $profile_class->formattedname; ?></td> <td width='15%'>[b]HP[/b]:</td><td width='35%'><?php echo $profile_class->formattedhp; ?></td></tr> <tr><td width='15%'>[b]Type[/b]:</td><td width='35%'><?php echo $profile_class->type ?></td> <td width='15%'>[b]Crimes[/b]:</td><td width='35%'><?php echo $profile_class->crimetotal; ?></td></tr> <tr><td width='15%'>[b]Level[/b]:</td><td width='35%'><?php echo $profile_class->level; ?></td> <td width='15%'>[b]Money[/b]:</td><td width='35%'>$<?php echo $profile_class->money; ?></td></tr> <tr><td width='15%'>[b]Age[/b]:</td><td width='35%'><?php echo $profile_class->age; ?></td> <td width='15%'>[b]Last Active[/b]:</td><td width='35%'><?php echo $profile_class->formattedlastactive; ?></td></tr> <tr><td width='15%'>[b]Online[/b]:</td><td width='35%'><?php echo $profile_class->formattedonline; ?></td> <td width='15%'>[b]Gang[/b]:</td><td width='35%'><?php echo $profile_class->formattedgang; ?></td></tr> <tr><td width='15%'>[b]City[/b]:</td><td width='35%'><?php echo $profile_class->cityname; ?></td> <td width='15%'>[b]House[/b]:</td><td width='35%'><?php echo $profile_class->housename; ?></td></tr></table></td></tr> <?if ($user_class->id != $profile_class->id){?> <tr><td class="contenthead">Actions</td></tr><tr><td class="contentcontent"><table width='100%'><tr><td width='25%' align='center'>[url='pms.php?to=<? echo $profile_class->username ?>']Message[/url]</td> <td width='25%' align='center'>[url='attack.php?attack=<? echo $profile_class->id ?>']Attack[/url]</td><td width='25%' align='center'>[url='mug.php?mug=<? echo $profile_class->id ?>']Mug[/url]</td><td width='25%' align='center'>[url='spy.php?id=<?php echo $profile_class->id; ?>']Spy[/url]</td></tr> <tr><td width='25%' align='center'>[url='sendmoney.php?person=<? echo $profile_class->id; ?>']Send Money[/url]</td><td width='25%' align='center'>[url='sendpoints.php?person=<? echo $profile_class->id ?>']Send Points[/url]</td> <td width='25%' align='center'></td><td width='25%' align='center'></td></tr> </table></td></tr> <table width='100%' height='100%' cellpadding='5' cellspacing='2'><?}print"<tr><td class='contenthead'>Profile Sig</td></tr><tr><td class='contentcontent'><table width='100%'><td align='center'>".$bbc->bbcode_parse($profile_class->profileSIG)."</td>";include 'footer.php';?> and save and close, now open classes.php and add $this->profileSIG = $worked['profileSIG'];$this->profilemusic = $worked['profilemusic']; And your done
-
Profile Music?... When you install this mod, please can take note that when you are putting music on your profiles you must get the right url Example the link for a song --> get the green bit. THE PROFILE SIGNATURE IS DONE BY SLANDERDESIGN NOT ME! Add this SQL to your database; [mysql]ALTER TABLE `grpgusers` ADD `profilemusic` text NOT NULL ALTER TABLE `grpgusers` ADD `profileSIG` text NOT NULL [/mysql] now open up preferences.php and replace with this one; <?include 'header.php'; if (isset($_POST['submit'])) { $avatar = $_POST["avatar"]; $quote = $_POST["quote"]; $profileSIG = $_POST["profileSIG"]; $profilemusic = $_POST["profilemusic"]; if (!isset($message)){ $result= mysql_query("UPDATE `grpgusers` SET `profileSIG`='".$profileSIG."',`avatar`='".$avatar."', `profilemusic`='".$profilemusic."', `quote`='".$quote."' WHERE `id`='".$user_class->id."'"); echo Message('Your preferences have been saved.'); die(); }}?> <?if (isset($message)) {echo Message($message);}?> <tr><td class="contenthead">Account Preferences</td></tr> <tr><td class="contentcontent"><form name='login' method='post'> <table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'> <tr> <td height='28'><font size='2' face='verdana'>Avatar Image Location</font></td> <td><font size='2' face='verdana'> <input type='text' name='avatar' value='<?= $user_class->avatar ?>'></font></td></tr> <tr><tr> <td height='28' ><font size='2' face='verdana'>Quote</font></td> <td><font size='2' face='verdana'> <input type='text' name='quote' value='<?= $user_class->quote ?>'></font></td></tr> <td></td> <td><font size='2' face='verdana'> <input type='submit' name='submit' value='Save Preferences'></font></td></tr> <tr><tr> <td height='28' ><font size='2' face='verdana'>Profile Sig</font></td> <td><font size='2' face='verdana'><input type='text' name='profileSIG' value='<?= $user_class->profileSIG ?>'></font></td> </tr><tr> <td height='28' ><font size='2' face='verdana'>Profile Music [size="1"]*<font color=red>Youtube URL Code ( x7Cvzj_2GzM )</font>*[/size]</td> <td><font size='2' face='verdana'><input type='text' name='profilemusic' value='<?= $user_class->profilemusic ?>'></font></td></tr> <td></td> <td><font size='2' face='verdana'><input type='submit' name='submit' value='Save Preferences'></font></td></tr></table></form> <?include 'footer.php';?>
-
25,000 was the limit it was a p*** take and thanks
-
Staff Leveling Save and close control.php, that should be it, if you have a problem please reply or contact [email protected] for errors or installations, he will do them for free, as its a free mod, Enjoy!
-
Staff Leveling Third Part Continued ( Last Part ) <tr><td class="contenthead">View A Player's Items</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='submit' name='listitems' value='List Items'></td></tr></form><?} if ($_GET['page'] == "referrals") { ?><tr><td class="contenthead">Manage Referrals</td></tr><tr><td class="contentcontent"><?$result = mysql_query("SELECT * FROM `referrals` WHERE `credited`='0'");while($line = mysql_fetch_array($result, MYSQL_ASSOC)) {echo "<div>".$line['id'].".) ".$line['referred']." was referred by Player ID:". $line['referrer']." (".date(F." ".d.", ".Y." ".g.":".i.":".sa,$line['when']).") [url='control.php?page=referrals&givecredit=".$line[']Credit[/url] | [url='control.php?page=referrals&denycredit=".$line[']Deny[/url]</div>";}?></td></tr><?}if ($_GET['page'] == "crimes") { ?><tr><td class="contenthead">Crimes</td></tr><tr><td class="contentcontent"><?$result = mysql_query("SELECT * FROM `crimes`");echo "<table><tr align='center'><td>[b]ID[/b]</td><td>[b]Name[/b]</td><td>[b]Nerve[/b]</td><td>[b]Delete[/b]</td><tr>";while($line = mysql_fetch_array($result, MYSQL_ASSOC)) {echo "<tr><td>".$line['id'].".)</td><td>".$line['name']."</td><td>". $line['nerve']."</td><td>[url='control.php?page=crimes&deletecrime=".$line['][Delete Crime][/url]</td></tr>";}echo "</table>";?></td></tr><tr><td class="contenthead">Add New Crime To Database</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='name' size='30' maxlength='75'> [name] <input type='text' name='nerve' size='30' maxlength='75'> [nerve] <textarea name='stext' cols='53' rows='7'>Success message</textarea> <textarea name='ctext' cols='53' rows='7'>Fail message</textarea> <textarea name='ftext' cols='53' rows='7'>Fail and caught message</textarea> <input type='submit' name='addcrimedb' value='Add Crime'></td></tr></form><tr><td class="contenthead">View/Edit A Crime</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='crimeid' size='10' maxlength='75'> [Crime ID] <input type='submit' name='vieweditcrime' value='View/Edit Crime'></td></tr><?if($_POST['vieweditcrime']){$result = mysql_query("SELECT * FROM `crimes` WHERE `id`='".$_POST['crimeid']."'");$worked = mysql_fetch_array($result);?><tr><td class="contenthead">Edit Crime</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='name' size='30' maxlength='75' value='<?= $worked['name'] ?>'> [name] <input type='text' name='nerve' size='30' maxlength='75' value='<?= $worked['nerve'] ?>'> [nerve] <textarea name='stext' cols='53' rows='7'><?= $worked['stext'] ?></textarea> <textarea name='ctext' cols='53' rows='7'><?= $worked['ctext'] ?></textarea> <textarea name='ftext' cols='53' rows='7'><?= $worked['ftext'] ?></textarea> <input type="hidden" name="id" value="<?= $worked['id'] ?>"><input type='submit' name='editcrimedb' value='Edit Crime'></td></tr></form><?}}if ($_GET['page'] == "cities") { ?><tr><td class="contenthead">Cities</td></tr><tr><td class="contentcontent"><?$result = mysql_query("SELECT * FROM `cities`");echo "<table cellpadding='4'><tr align='center'><td>[b]ID[/b]</td><td>[b]Name[/b]</td><td>[b]Level Req[/b]</td><td>[b]Land Left[/b]</td><td>[b]Land Price[/b]</td><td>[b]Delete[/b]</td></tr>";while($line = mysql_fetch_array($result, MYSQL_ASSOC)) {echo "<tr><td>".$line['id'].".)</td><td>".$line['name']."</td><td>". $line['levelreq']."</td><td>".$line['landleft']."</td><td>".$line['landprice']."</td><td>[url='control.php?page=cities&deletecity=".$line['][Delete City][/url]</td></tr>";}echo "</table>";?></td></tr><tr><td class="contenthead">Add New City To Database</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='name' size='30' maxlength='75'> [name] <input type='text' name='levelreq' size='30' maxlength='75'> [level req] <input type='text' name='landleft' size='30' maxlength='75'> [land left] <input type='text' name='landprice' size='30' maxlength='75'> [land price] <textarea name='description' cols='53' rows='7'>Description goes here...</textarea> <input type='submit' name='addcitydb' value='Add City'></td></tr></form><tr><td class="contenthead">View/Edit A City</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='cityid' size='10' maxlength='75'> [City ID] <input type='submit' name='vieweditcity' value='View/Edit City'></td></tr><?if($_POST['vieweditcity']){$result = mysql_query("SELECT * FROM `cities` WHERE `id`='".$_POST['cityid']."'");$worked = mysql_fetch_array($result);?><tr><td class="contenthead">Edit City</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='name' size='30' maxlength='75' value='<?= $worked['name'] ?>'> [name] <input type='text' name='levelreq' size='30' maxlength='75' value='<?= $worked['levelreq'] ?>'> [level req] <input type='text' name='landleft' size='30' maxlength='75' value='<?= $worked['landleft'] ?>'> [land left] <input type='text' name='landprice' size='30' maxlength='75' value='<?= $worked['landprice'] ?>'> [land price] <textarea name='description' cols='53' rows='7'><?= $worked['description'] ?></textarea> <input type="hidden" name="id" value="<?= $worked['id'] ?>"><input type='submit' name='editcitydb' value='Edit City'></td></tr></form><?}}if ($_GET['page'] == "jobs") { ?><tr><td class="contenthead">Jobs</td></tr><tr><td class="contentcontent"><?$result = mysql_query("SELECT * FROM `jobs`");echo "<table><tr align='center'><td>[b]ID[/b]</td><td>[b]Name[/b]</td><td>[b]Money[/b]</td><td>[b]Strength[/b]</td><td>[b]Defense[/b]</td><td>[b]Speed[/b]</td><td>[b]Level[/b]</td><td>[b]Delete[/b]</td><tr>";while($line = mysql_fetch_array($result, MYSQL_ASSOC)) {echo "<tr><td>".$line['id'].".)</td><td>".$line['name']."</td><td>". $line['money']."</td><td>".$line['strength']."</td><td>".$line['defense']."</td><td>".$line['speed']."</td><td>".$line['level']."</td><td>[url='control.php?page=jobs&deletejob=".$line['][Delete Job][/url]</td></tr>";}echo "</table>";?></td></tr><tr><td class="contenthead">Add New Job To Database</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='name' size='30' maxlength='75'> [name] <input type='text' name='money' size='30' maxlength='75'> [money] <input type='text' name='strength' size='30' maxlength='75'> [strength] <input type='text' name='defense' size='30' maxlength='75'> [defense] <input type='text' name='speed' size='30' maxlength='75'> [speed] <input type='text' name='level' size='30' maxlength='75'> [level] <input type='submit' name='addjobdb' value='Add Job'></td></tr></form><tr><td class="contenthead">View/Edit A Job</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='jobid' size='10' maxlength='75'> [Job ID] <input type='submit' name='vieweditjob' value='View/Edit Job'></td></tr><?if($_POST['vieweditjob']){$result = mysql_query("SELECT * FROM `jobs` WHERE `id`='".$_POST['jobid']."'");$worked = mysql_fetch_array($result);?><tr><td class="contenthead">Edit Job</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='name' size='30' maxlength='75' value='<?= $worked['name'] ?>'> [name] <input type='text' name='money' size='30' maxlength='75' value='<?= $worked['money'] ?>'> [money] <input type='text' name='strength' size='30' maxlength='75' value='<?= $worked['strength'] ?>'> [strength] <input type='text' name='defense' size='30' maxlength='75' value='<?= $worked['defense'] ?>'> [defense] <input type='text' name='speed' size='30' maxlength='75' value='<?= $worked['speed'] ?>'> [speed] <input type='text' name='level' size='30' maxlength='75' value='<?= $worked['level'] ?>'> [level] <input type="hidden" name="id" value="<?= $worked['id'] ?>"><input type='submit' name='editjobdb' value='Edit Job'></form></td></tr><?}}include 'footer.php';?>
-
Staff Leveling Second Part Continued: if(isset($_POST['congress'])){$user = trim($_POST['username']);if($user != ""){$query = "UPDATE grpgusers SET admin = 4 WHERE username = '$user'";mysql_query($query) or die("Failure to Update a player with Admin Status. MySQL reports: ".mysql_error());}}if(isset($_POST['impeachcongress'])){$user = trim($_POST['username']);if($user != ""){$query = "UPDATE grpgusers SET admin = 0 WHERE username = '$user'";mysql_query($query) or die("Failure to Update a player with Admin Status. MySQL reports: ".mysql_error());}}?><tr><td class="contenthead">Control Panel</td></tr><tr><td class="contentcontent">Welcome to the control panel. Here you can do just about anything, from giving players items they have paid for with real money, to adding, changing, or deleting jobs, cities, items, etc. Please send any ideas for things that need to be added to the control panel to [email][email protected][/email] If you are experiencing problems with any of the options, try clicking the submit button instead of pressing the enter key.</td></tr><?php if($_GET['page'] == "") { ?><tr><td class="contenthead">Change Newspaper Article</td></tr><tr><td class="contentcontent"><form method='post'><?$result = mysql_query("SELECT * from `serverconfig`");$worked = mysql_fetch_array($result);?><textarea name='message' cols='53' rows='7'><?= $worked['newspaper']; ?></textarea> <input type='submit' name='changemessage' value='Change Newspaper Acticle'></form></td></tr><tr><td class="contenthead">Change Server Down Text</td></tr><tr><td class="contentcontent"><form method='post'><?$result = mysql_query("SELECT * from `serverconfig`");$worked = mysql_fetch_array($result);?><textarea name='message' cols='53' rows='7'><?= $worked['serverdown']; ?></textarea> <input type='submit' name='changeserverdown' value='Change Server Down Text'></form></td></tr> <?php } ?><?php if ($_GET['page'] == "rmoptions") { ?><tr><td class="contenthead">Add RM Days</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='text' name='rmdays' size='10' maxlength='75'> [How Many RM Days] <input type='submit' name='addrmdays' value='Add RM days'></form></td></tr><tr><td class="contenthead">Add Points</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='text' name='points' size='10' maxlength='75'> [How Many Points] <input type='submit' name='addpoints' value='Give Points'></form></td></tr><tr><td class="contenthead">Add Hookers</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='text' name='hookers' size='10' maxlength='75'> [How Many Hookers] <input type='submit' name='addhookers' value='Give Hookers'></form></td></tr><tr><td class="contenthead">Give RM Gun</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='submit' name='givermgun' value='Give RM Gun'></form></td></tr><tr><td class="contenthead">Give RM Armor</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='submit' name='givermarmor' value='Give RM Armor'></form></td></tr><?php }if ($_GET['page'] == "setplayerstatus") { ?><tr><td class="contenthead">Ban a Player</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='text' name='reason' size='10' maxlength='75'>[Reason for Banning] <input type='submit' name='banplayer' value='Ban Player'></td></tr><tr><td class="contenthead">Give Admin Status</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='submit' name='adminstatus' value='Change Admin Status'></form></td></tr><tr><td class="contenthead">Remove Admin Status</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='submit' name='revokeadminstatus' value='Remove Admin Status'></form></td></tr> <tr><td class="contenthead">Give Moderator Status</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='submit' name='moderatorstatus' value='Change Moderator Status'></form></td></tr><tr><td class="contenthead">Remove Moderator Status</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='submit' name='revokemoderatorstatus' value='Remove Moderator Status'></form></td></tr> <tr><td class="contenthead">Presidential Election</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='submit' name='president' value='Elect President'></form></td></tr><tr><td class="contenthead">Impeach President</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='submit' name='impeachpresident' value='Impeach President'></form></td></tr><tr><td class="contenthead">Congressional Elections</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='submit' name='congress' value='Elect Congress'></form></td></tr><tr><td class="contenthead">Impeach Congress</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='submit' name='impeachcongress' value='Impeach Congressman'></form></td></tr><?} if ($_GET['page'] == "playeritems") { ?><tr><td class="contenthead">List Of All Items</td></tr><tr><td class="contentcontent"><?$result = mysql_query("SELECT * FROM `items`");while($line = mysql_fetch_array($result, MYSQL_ASSOC)) {echo "<div>".$line['id'].".) ".item_popup($line['itemname'], $line['id']) ." $". $line['cost']."</div>";}?></td></tr><tr><td class="contenthead">Add New Item To Database</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='itemname' size='10' maxlength='75'> [itemname] <input type='text' name='description' size='10' maxlength='75'> [description] <input type='text' name='cost' size='10' maxlength='75'> [cost] <input type='text' name='image' size='10' maxlength='75'value='images/noimage.png'> [image] <input type='text' name='offense' size='10' maxlength='75'> [offense] <input type='text' name='defense' size='10' maxlength='75'> [defense] <input type='text' name='heal' size='10' maxlength='75'value='0'> [heal] <input type='text' name='buyable' size='10' maxlength='75'value='0'> [buyable] <input type='text' name='level' size='10' maxlength='75' value='0'> [level] <input type='submit' name='additemdb' value='Add Item'></td></tr></form><tr><td class="contenthead">Give Item</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='text' name='itemnumber' size='10' maxlength='75'> [item Number] <input type='text' name='itemquantity' size='10' maxlength='75'> [Quantity] <input type='submit' name='giveitem' value='Give Items'></td></tr></form><tr><td class="contenthead">Take Item</td></tr><tr><td class="contentcontent"><form method='post'><input type='text' name='username' size='10' maxlength='75'> [username] <input type='text' name='itemnumber' size='10' maxlength='75'> [item Number] <input type='text' name='itemquantity' size='10' maxlength='75'> [Quantity] <input type='submit' name='takeitem' value='Take Items'></td></tr></form>
-
Staff Leveling YOU WILL NEED THE MOD CALLED *NEWSPAPER WITH ADMIN FUNCTION* WHICH IS DONE BY ME SO YOU CAN ACCESS THIS PAGE PROPERLY AND WITHOUT ANY ERRORS Open up control.php and replace with theses parts of theses codes; First part: <?include 'header.php';$result = mysql_query("SELECT * FROM `grpgusers` ORDER BY `lastactive` DESC");while($line = mysql_fetch_array($result, MYSQL_ASSOC)) {$secondsago = time()-$line['lastactive'];if ($secondsago > 2592000) {$user_online = new User($line['id']);$result2 = mysql_query("DELETE FROM `grpgusers` WHERE `id`='".$user_online->id."'");}} if ($user_class->moderator != 1) { echo Message("You are not authorized to be here."); include 'footer.php'; die();} //referrals sectionif ($_GET['givecredit'] != ""){$result = mysql_query("UPDATE `referrals` SET `credited`='1' WHERE `id`='".$_GET['givecredit']."'");$result = mysql_query("SELECT * FROM `referrals` WHERE `id` = '".$_GET['givecredit']."'");$line = mysql_fetch_array($result);$cp_user = new User($line['referrer']);$newpoints = $cp_user->points + 10;$result = mysql_query("UPDATE `grpgusers` SET `points` = '".$newpoints."' WHERE `id`='".$cp_user->id."'");send_event($cp_user->id, "You have been credited 10 points for referring ".$line['referred'].". Keep up the good work!");echo Message("You have accepted the referral.");}if ($_GET['denycredit'] != ""){$result = mysql_query("DELETE FROM `referrals` WHERE `id`='".$_GET['denycredit']."'");send_event($line['referrer'], "Unfortunately you have recieved no points for referring ".$line['referred'].". This could be a result of many different things, such as you abusing the referral system, or the player you referred only signing up, but never actually playing.");echo Message("You have denied the referral.");}//jobs sectionif ($_GET['deletejob']){$result = mysql_query("DELETE FROM `jobs` WHERE `id`='".$_GET['deletejob']."'");echo Message("You have deleted a job.");mrefresh("control.php?page=jobs");include 'footer.php';die();}if ($_POST['addjobdb']){$result= mysql_query("INSERT INTO `jobs` (name, money, strength, defense, speed, level)"."VALUES ('".$_POST['name']."','".$_POST['money']."','".$_POST['strength']."','".$_POST['defense']."','".$_POST['speed']."', '".$_POST['level']."')");echo Message("You have added a job to the database.");}if ($_POST['editjobdb']){$result= mysql_query("UPDATE `jobs` SET `name`='".$_POST['name']."', `money`='".$_POST['money']."', `strength`='".$_POST['strength']."', `defense`='".$_POST['defense']."', `speed`='".$_POST['speed']."', `level`='".$_POST['level']."' WHERE `id`='".$_POST['id']."'");echo Message("You have edited a job.");}//city sectionif ($_GET['deletecity']){$result = mysql_query("DELETE FROM `cities` WHERE `id`='".$_GET['deletecity']."'");echo Message("You have deleted a city.");mrefresh("control.php?page=cities");include 'footer.php';die();}if ($_POST['addcitydb']){$result= mysql_query("INSERT INTO `cities` (name, levelreq, landleft, landprice, description)"."VALUES ('".$_POST['name']."','".$_POST['levelreq']."','".$_POST['landleft']."','".$_POST['landprice']."','".$_POST['description']."')");echo Message("You have added a city to the database.");}if ($_POST['editcitydb']){$result= mysql_query("UPDATE `cities` SET `name`='".$_POST['name']."', `levelreq`='".$_POST['levelreq']."', `landleft`='".$_POST['landleft']."', `landprice`='".$_POST['landprice']."', `description`='".$_POST['description']."' WHERE `id`='".$_POST['id']."'");echo Message("You have edited a city.");}//crime sectionif ($_GET['deletecrime']){$result = mysql_query("DELETE FROM `crimes` WHERE `id`='".$_GET['deletecrime']."'");echo Message("You have deleted a crime.");mrefresh("control.php?page=crimes");include 'footer.php';die();}if ($_POST['addcrimedb']){$result= mysql_query("INSERT INTO `crimes` (name, nerve, stext, ftext, ctext)"."VALUES ('".$_POST['name']."','".$_POST['nerve']."','".$_POST['stext']."','".$_POST['ftext']."','".$_POST['ctext']."')");echo Message("You have added a crime to the database.");}if ($_POST['editcrimedb']){$result= mysql_query("UPDATE `crimes` SET `name`='".$_POST['name']."', `nerve`='".$_POST['nerve']."', `stext`='".$_POST['stext']."', `ftext`='".$_POST['ftext']."', `ctext`='".$_POST['ctext']."' WHERE `id`='".$_POST['id']."'");echo Message("You have edited a crime.");}//items sectionif ($_POST['additemdb']){$result= mysql_query("INSERT INTO `items` (itemname,description,cost,image,offense,defense,heal,buyable,level)"."VALUES ('".$_POST['itemname']."','".$_POST['description']."','".$_POST['cost']."','".$_POST['image']."','".$_POST['offense']."','".$_POST['defense']."','".$_POST['heal']."','".$_POST['buyable']."','".$_POST['level']."')");}if ($_GET['takealluser'] != ""){$oldamount = Check_Item($_GET['takeallitem'], $_GET['takealluser']);$result = mysql_query("DELETE FROM `inventory` WHERE `userid` = '".$_GET['takealluser']."' AND `itemid` = '".$_GET['takeallitem']."'"); echo Message("That user had ".$oldamount." of those, now they are all gone.");}if ($_POST['giveitem'] != ""){$oldamount = Check_Item($_POST['itemnumber'], Get_ID($_POST['username']));Give_Item($_POST['itemnumber'], Get_ID($_POST['username']), $_POST['itemquantity']);$newamount = Check_Item($_POST['itemnumber'], Get_ID($_POST['username']));echo Message("That user had ".$oldamount." of those, and now has ".$newamount." of them.");}if ($_POST['takeitem'] != ""){$oldamount = Check_Item($_POST['itemnumber'], Get_ID($_POST['username']));Take_Item($_POST['itemnumber'], Get_ID($_POST['username']), $_POST['itemquantity']);$newamount = Check_Item($_POST['itemnumber'], Get_ID($_POST['username']));echo Message("That user had ".$oldamount." of those, and now has ".$newamount." of them.");}if ($_POST['listitems'] != ""){$oldamount = Check_Item($_POST['itemnumber'], Get_ID($_POST['username']));$result = mysql_query("SELECT * FROM `inventory` WHERE `userid`='".Get_ID($_POST['username'])."'");while($line = mysql_fetch_array($result, MYSQL_ASSOC)) {$result2 = mysql_query("SELECT * FROM `items` WHERE `id`='".$line['itemid']."'");$worked2 = mysql_fetch_array($result2);$out.= "<div>".$line['itemid'].".) ".item_popup($worked2['itemname'], $worked2['id']) ." $". $worked2['cost']." Quantity: ".$line['quantity']." [url='control.php?page=playeritems&takealluser=".Get_ID($_POST[']Take All[/url]</div>";}echo Message($_POST['username']."'s Items ".$out);}if ($_POST['changemessage'] != ""){$result = mysql_query("UPDATE `serverconfig` SET `newspaper` = '".$_POST['message']."'");echo Message("You have changed the newspaper article.");}if ($_POST['changeserverdown'] != ""){$result = mysql_query("UPDATE `serverconfig` SET `serverdown` = '".$_POST['message']."'");echo Message("You have changed the server down text.");}if ($_POST['addrmdays'] != ""){$result = mysql_query("SELECT * FROM `grpgusers` WHERE `username`='".$_POST['username']."'"); $worked = mysql_fetch_array($result);$newrmdays = $worked['rmdays'] + $_POST['rmdays'];$result = mysql_query("UPDATE `grpgusers` SET `rmdays` = '".$newrmdays."' WHERE `username`='".$_POST['username']."'");echo Message("You have added ".$_POST['rmdays']." RM Days to ".$_POST['username'].".");}if ($_POST['addpoints'] != ""){$result = mysql_query("SELECT * FROM `grpgusers` WHERE `username`='".$_POST['username']."'"); $worked = mysql_fetch_array($result);$newpoints = $worked['points'] + $_POST['points'];$result = mysql_query("UPDATE `grpgusers` SET `points` = '".$newpoints."' WHERE `username`='".$_POST['username']."'");echo Message("You have added ".$_POST['points']." points to ".$_POST['username'].".");}if ($_POST['addhookers'] != ""){$result = mysql_query("SELECT * FROM `grpgusers` WHERE `username`='".$_POST['username']."'"); $worked = mysql_fetch_array($result);$newhookers = $worked['hookers'] + $_POST['hookers'];$result = mysql_query("UPDATE `grpgusers` SET `hookers` = '".$newhookers."' WHERE `username`='".$_POST['username']."'");echo Message("You have added ".$_POST['hookers']." hookers to ".$_POST['username'].".");}if ($_POST['givermgun'] != ""){$result = mysql_query("SELECT * FROM `grpgusers` WHERE `username`='".$_POST['username']."'"); $worked = mysql_fetch_array($result); $result= mysql_query("INSERT INTO `inventory` (userid, itemid)". "VALUES ('".$worked['id']."', '15')");echo Message("You have given an RM Gun to ".$_POST['username'].".");}if ($_POST['givermarmor'] != ""){$result = mysql_query("SELECT * FROM `grpgusers` WHERE `username`='".$_POST['username']."'"); $worked = mysql_fetch_array($result); $result= mysql_query("INSERT INTO `inventory` (userid, itemid)". "VALUES ('".$worked['id']."', '16')");echo Message("You have given an RM Armor to ".$_POST['username'].".");}if ($_GET['action'] == "deleteallfromip"){$result = mysql_query("DELETE FROM `grpgusers` WHERE ip='".$_GET['ip']."'");}if(isset($_POST['adminstatus'])){$user = trim($_POST['username']);if($user != ""){$query = "UPDATE grpgusers SET admin = 1 WHERE username = '$user'";mysql_query($query) or die("Failure to Update a player with Admin Status. MySQL reports: ".mysql_error());}}if(isset($_POST['revokeadminstatus'])){$user = trim($_POST['username']);if($user != ""){$query = "UPDATE grpgusers SET admin = 0 WHERE username = '$user'";mysql_query($query) or die("Failure to Update a player with Admin Status. MySQL reports: ".mysql_error());}} if(isset($_POST['moderatorstatus'])){$user = trim($_POST['username']);if($user != ""){$query = "UPDATE grpgusers SET moderator = 1 WHERE username = '$user'";mysql_query($query) or die("Failure to Update a player with Moderator Status. MySQL reports: ".mysql_error());}}if(isset($_POST['revokemoderatorstatus'])){$user = trim($_POST['username']);if($user != ""){$query = "UPDATE grpgusers SET moderator = 0 WHERE username = '$user'";mysql_query($query) or die("Failure to Update a player with Moderator Status. MySQL reports: ".mysql_error());}} if(isset($_POST['banplayer'])){$user = trim($_POST['username']);if($user != ""){$query = "UPDATE grpgusers SET admin = 5 WHERE username = '$user'";mysql_query($query) or die("Failure to Update a player with Admin Status. MySQL reports: ".mysql_error());}}if(isset($_POST['president'])){$user = trim($_POST['username']);if($user != ""){$query = "UPDATE grpgusers SET admin = 3 WHERE username = '$user'";mysql_query($query) or die("Failure to Update a player with Admin Status. MySQL reports: ".mysql_error());}}if(isset($_POST['impeachpresident'])){$user = trim($_POST['username']);if($user != ""){$query = "UPDATE grpgusers SET admin = 0 WHERE username = '$user'";mysql_query($query) or die("Failure to Update a player with Admin Status. MySQL reports: ".mysql_error());}}
-
Staff Leveling On that same page ( classes.php ) find: if ($this->rmdays > 0){ $this->formattedname .= "[b]<a title='Respected Mobster [".$this->rmdays." RM Days Left]' href='profiles.php?id=".$this->id."'><font color = '".$whichfont."'>".$this->username."</a></font>[/b]"; } elseif ($this->admin != 0) { $this->formattedname .= "[b][url='profiles.php?id=".$this->id."']<font color = '".$whichfont."'>".$this->username."[/url]</font>[/b]"; } else { $this->formattedname .= "[url='profiles.php?id=".$this->id."']<font color = '".$whichfont."'>".$this->username."[/url]</font>"; } and add under: if ($this->rmdays > 0){ $this->formattedname .= "[b]<a title='Respected Mobster [".$this->rmdays." RM Days Left]' href='profiles.php?id=".$this->id."'><font color = '".$whichfont."'>".$this->username."</a></font>[/b]"; } elseif ($this->moderator != 0) { $this->formattedname .= "[b][url='profiles.php?id=".$this->id."']<font color = '".$whichfont."'>".$this->username."[/url]</font>[/b]"; } else { $this->formattedname .= "[url='profiles.php?id=".$this->id."']<font color = '".$whichfont."'>".$this->username."[/url]</font>"; } Save and clise that page
-
Staff Leveling save and now open classes.php and find: $this->admin = $worked['admin']; and add under with: $this->moderator = $worked['moderator']; Now find: if ($this->admin == 1) { $this->type = "Admin"; $whichfont = "blue"; } if ($this->admin == 2) { $this->type = "Staff"; } if ($this->admin == 3) { $this->type = "Preent"; $whichfont = "red"; } if ($this->admin == 4) { $this->type = "Congress"; $whichfont = "red"; } and add under with: if ($this->moderator == 1) { $this->type = "Moderator"; $whichfont = "Purple"; } if ($this->moderator == 2) { $this->type = "Staff"; } if ($this->moderator == 3) { $this->type = "Preent"; $whichfont = "red"; } if ($this->moderator == 4) { $this->type = "Congress"; $whichfont = "red"; } if ($this->moderator == 1 || $this->admin == 1) { $this->type = "Administrator"; $whichfont = "Gold"; }
-
Staff Leveling Add this into your database [mysql]ALTER TABLE `grpgusers` ADD `moderator` INT( 11 ) NOT NULL DEFAULT '0' [/mysql] Now open up header.php and find: <?= ($user_class->admin == 1) ? ' <div class="headbox">Control Panel</div> [url="control.php"]Marquee/Maintenance[/url] [url="control.php?page=rmoptions"]RM Options[/url] [url="control.php?page=setplayerstatus"]Player Options[/url] [url="massmail.php"]Mass Mail[/url] [url="control.php?page=referrals"]Manage Referrals[/url]</div> <div class="headbox">Game Modification</div> [url="control.php?page=crimes"]Manage Crimes[/url] [url="control.php?page=cities"]Manage Cities[/url] [url="control.php?page=jobs"]Manage Jobs[/url] [url="control.php?page=playeritems"]Manage Items[/url] </div> ' : "" ?> And replace with: <?= ($user_class->admin == 1) ? ' <div class="headbox">Control Panel</div> [url="control.php"]Site Shutdown[/url] [url="control.php?page=rmoptions"]RM Options[/url] [url="control.php?page=setplayerstatus"]Player Options[/url] [url="massmail.php"]Mass Mail[/url] [url="control.php?page=referrals"]Manage Referrals[/url]</div> ' : "" ?> <?= ($user_class->moderator == 1) ? ' <div class="headbox">Game Modification</div> [url="control.php?page=crimes"]Manage Crimes[/url] [url="control.php?page=cities"]Manage Cities[/url] [url="control.php?page=jobs"]Manage Jobs[/url] [url="control.php?page=playeritems"]Manage Items[/url] </div> ' : "" ?>
-
On GRPG you only get two user levels which are admin and members, ive made a new one called moderator which is posted below, you are welcome to use it, if you need any more mods contact me [email protected] ( I DID NOT GET HELP WITH ANY OF THESES ) --> All my mods are tested and worked on my site, ive been working on GRPG since Monday Feburary 2010
-
grpg-v1 [Mod] Updated 24hour.php, citizens.php, online.php [Mod]
Veasey replied to Veasey's topic in Free Plugins
Dam Now it should -
Dam It came out wrong, il edit it and paste the copy in
-
Yh i felt like something different im bored of mc crap even though i still have a game of one :) 2 is better then one :)
-
grpg-v1 [Mod] Updated 24hour.php, citizens.php, online.php [Mod]
Veasey posted a topic in Free Plugins
Replace all of your current files with theses 24hour.php citizens.php online.php 24hour.php <?include 'header.php';echo '<tr><td class="contenthead">Users Online In The Last 24 Hours</td></tr>';$result = mysql_query("SELECT * FROM `grpgusers` ORDER BY `lastactive` DESC");echo '<tr><td class="contentcontent"><table width=100% border=0><tr><th>Player</th><th>Last Movement In 24 Hours</th></tr>';while($line = mysql_fetch_array($result, MYSQL_ASSOC)) {$secondsago = time()-$line['lastactive'];if ($secondsago<=86400) {$user_online = new User($line['id']);echo "<tr><td><div>".$user_online->formattedname . "</td><td> ". howlongago($user_online->lastactive)."</td></div></tr>";}}echo '</table></td></tr>'; include 'footer.php'?> citizens.php <?include 'header.php';echo '<tr><td class="contenthead">Total Users</td></tr>';echo '<tr><td class="contentcontent"><table width=100% border=0><tr><th width=20>ID</th><th>Player</th></tr>';$result = mysql_query("SELECT * FROM `grpgusers` ORDER BY `id` ASC"); while($line = mysql_fetch_array($result, MYSQL_ASSOC)) {$secondsago = time()-$line['lastactive'];$user_online = new User($line['id']);echo "<tr><td width=20><div>".$user_online->id."</td><td>".$user_online->formattedname."</div></td></tr>";}echo "</table></td></tr>";include 'footer.php'?> online.php <?include 'header.php';echo '<tr><td class="contenthead">Users Online In The Last 5 Minutes</td></tr>';$result = mysql_query("SELECT * FROM `grpgusers` ORDER BY `lastactive` DESC");echo '<tr><td class="contentcontent"><table width=100% border=0><tr><th>Player</th><th>Last Movement</th></tr>';while($line = mysql_fetch_array($result, MYSQL_ASSOC)) {$secondsago = time()-$line['lastactive'];if ($secondsago<=300) {$user_online = new User($line['id']);echo " <div><tr><td>".$user_online->formattedname . "</td><td> ". howlongago($user_online->lastactive)."</td></tr></div> ";}}echo '</table></td></tr>'; include 'footer.php'?> And your done, enjoy You will need the style.css addon on the post called ( [Mod] Better City Updated [Mod] ) To view them better -
Open Up City.php and Replace with this: <?include 'header.php'; $result = mysql_query("SELECT * FROM `cities` WHERE `id`='".$user_class->city."'");$worked = mysql_fetch_array($result);?><tr><td class="contenthead"><? echo $user_class->cityname; ?></td></tr><tr><td class="contentcontent"><?= $worked['description'] ?></td></tr><tr><td class="contenthead">Places To Go</td></tr><tr><td class="contentcontent"> <table width='100%' border='0'> <tr><th width='33.3%'><u>Shops</u></th><th width='33.3%'><u>Town Hall</u></th><th width='33.3%'><u>Casino</u></th></tr> <tr><td width='33.3%' align=center>[url="astore.php"]Crazy Riley's Armor Emporium[/url] [url="store.php"]Weapon Sales[/url] [url="itemmarket.php"]Item Market[/url] [url="pointmarket.php"]Points Market[/url] [url="spendpoints.php"]Point Shop[/url] [url="pharmacy.php"]Pharmacy[/url] <? echo ($user_class->city == 2) ? "[url='carlot.php']Big Bob's Used Car Lot[/url]" : ""?></td> <td width='33.3%' align=center>[url="halloffame.php"]Hall Of Fame[/url] [url='worldstats.php']World Stats[/url] [url="viewstaff.php"]Town Hall[/url] [url='search.php']Mobster Search[/url] [url="citizens.php"]Mobsters List[/url] [url="online.php"]Mobsters Online[/url] </td> <td width='33.3%' align=center>[url="lottery.php"]Lottery[/url] [url="slots.php"]Slot Machine[/url] [url='5050game.php']50/50 Game[/url] </td></tr> <tr><th width='33.3%'><u>Your Home</u></th><th width='33.3%'><u>Travel</u></th><th width='33.3%'><u>DownTown</u></th></tr> <tr><td width='33.3%' align=center>[url="pms.php"]Mailbox<?php$checkmail = mysql_query("SELECT * FROM `pms` WHERE `to`='$user_class->username' and `viewed`='1'");$nummsgs = mysql_num_rows($checkmail);?> [<?php echo $nummsgs; ?>][/url] [url="events.php"]Events<?php$checkmail = mysql_query("SELECT * FROM `events` WHERE `to`='$user_class->id' and `viewed` = '1'");$numevents = mysql_num_rows($checkmail);?> [<?php echo $numevents; ?>][/url] [url="spylog.php"]Spy Log[/url] [url="inventory.php"]Inventory[/url] [url="refer.php"]Referrals[/url] [url="house.php"]Move House[/url] [url="fields.php"]Manage Land[/url]</td> <td width='33.3%' align=center>[url='bus.php']Bus Station[/url] [url='drive.php']Drive[/url] </td> <td width='33.3%' align=center>[url="buydrugs.php"]Shady-Looking Stranger[/url] [url="downtown.php"]Search Downtown[/url] [url="jobs.php"]Job Center[/url] <a href = "gang_list.php">Gang List</a> [url="<? echo ($user_class->gang == 0) ? "]">Your Gang[/url] [url="bank.php"]Bank[/url] [url="realestate.php"]Real Estate Agency[/url]</td></tr> <tr><th colspan=3><u>Mafia Streets</u></th></tr> <td colspan=3 align=center>[url='viewstocks.php']View Stock Market[/url] [url='brokerage.php']Brokerage Firm[/url] [url='portfolio.php']View Portfolio[/url]</td></tr><tr><td colspan='3'> </td></tr></table> </td></tr><?include 'footer.php';?> Save and Close Now Open Up style.css or your header and add: .table th {background:#111;}.table {text-align: left;}.table td {text-align: left;}th {background:#111;} And Your Done
-
Add This Into Your Database [mysql]ALTER TABLE `serverconfig` ADD `newspaper` text NOT NULL [/mysql] Then Open Control.php and Add: if ($_POST['changemessage'] != ""){ $result = mysql_query("UPDATE `serverconfig` SET `newspaper` = '".$_POST['message']."'"); echo Message("You have changed the newspaper article."); } Now Add <?php if($_GET['page'] == "") { ?><tr><td class="contenthead">Change Newspaper Article</td></tr><tr><td class="contentcontent"><form method='post'><?$result = mysql_query("SELECT * from `serverconfig`");$worked = mysql_fetch_array($result);?><textarea name='message' cols='53' rows='7'><?= $worked['newspaper']; ?></textarea> <input type='submit' name='changemessage' value='Change Newspaper Acticle'></form></td></tr> Save and Close Now Open Newspaper and Replace with this one: <? include 'header.php'; ?> Newspaper $result = mysql_query("SELECT * from `serverconfig`"); $worked = mysql_fetch_array($result); $messagetext = str_replace("^"," ",$worked['newspaper']); echo "".$messagetext.""; ?> include 'footer.php'; ?> Save And Close
-
i will contact me [email protected]
-
grpg-v1 [Mod] GRPG profile signatures [My First]
Veasey replied to SlanderDesign's topic in Free Plugins
Good Mod, Il Be Making Some Soon!