Jump to content
MakeWebGames

ImaxDevelopment

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by ImaxDevelopment

  1. I actually have it on my game so that all staff can warn people but if you don't want that then do the edits posted above :) Thanks Guys
  2. Ok sorry about that it was just easier for me to post it like that i will add it into the post in a moment.
  3. Hi, this will be my first mod shared on MWG and i am hoping that you will all enjoy it. When using this mod you will receive support with any problems installing or using it, i currently do not have a homepage to show off some of my work but i am hoping to get one set up. My mod package comes in a ZIP format and will contain set up instructions and a credits page to thank all those that i have used snippets from or to thank those who have helped me. Please read on for more information about the modification. This modification is to make it easier for staff to punish users, with this mod package you will receive: gamerules.php warnings.php Installation.txt Images All of these files are in a ZIP folder so it is easier to get the whole thing out and set it up, The mod comes with step by step instructions on how to set it up or how to contact me. This modification is similar to the previous warnings mod for mccodes, except this one you have a drop down box where you select what percent you want your users to be at but when you adjust the users percentage they will see an event telling them what you have done and they may also receive a punishment. EG, Multi Accounts - 100% Warning - Instant Ban Sending Abusive Mail - 30% Message From Admin This Mod Is: Active - Support & Updates Are Still Available Click Here To Download Selected Modification Or You Can Just Follow These Simple Instructions: +=========================================+ + Ok so to begin the installation please run these SQLS +=========================================+ [mysql]CREATE TABLE `warnings` ( `id` int(11) NOT NULL auto_increment, `user` int(11) NOT NULL default '0', `warnedfor` text NOT NULL, `warner` int(11) NOT NULL default '0', `time` int(11) NOT NULL default '0', `padded` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;[/mysql] +=========================================+ [mysql]ALTER TABLE users ADD wpercent int(11) NOT NULL default'0';[/mysql] +=========================================+ +=========================================+ + After you have run them please Open up view user + and: +=========================================+ + FIND: Days Old: {$r['daysold']} Days Old "; +=========================================+ + ADD AFTER: +=========================================+ print " <hr /><font color=red>Warning Level: {$r['wpercent']}%</font> "; print "[img=/images/warning/{$r[]"; if($ir['user_level'] > 1) { print " [<a href=warnings.php?action=index&user={$r['userid']}>Manage Warning Level</a>]"; } print "<hr /></font>"; +=========================================+ +=========================================+ + Open Up Index.php and add this code where you + want your bar to be displayed +=========================================+ <center> [b]<u>Your Current Warning Level: {$ir['wpercent']} : [img=/images/warning/{$ir[][/b]</u> +=========================================+ Then Create A File Called warnings.php and ADD: <?php /*----------------------------------------------------- / ImaxDevelopment Modification (Please Do Not Remove) / Modification Created On 20th October 2010 / Contact: [email][email protected][/email] / Modification Made For The MAKEWEBGAMES Community -----------------------------------------------------*/ include "globals.php"; if($ir['user_level'] > 2) { echo'Im sorry but you do not have the correct permissions to visit this page, please can you leave before an admin finds you'; $h->endpage();exit(); } switch($_GET['action']) { case 'add': addwarning(); break; case 'addsub': addwarning2(); break; case 'remove' : removewarning(); break; default: index(); break; } function index() { global $ir,$userid,$db; print " <font color=black>You Are Currently Viewing The Warning Page For</font> User ID: <u><a href=viewuser.php?u={$_GET['user']}>{$_GET['user']}</u></a> "; $q=$db->query("SELECT w.*,u.* FROM warnings w LEFT JOIN users u ON w.warner=u.userid WHERE w.user={$_GET['user']} ORDER BY w.time DESC"); $p=$db->query("SELECT * FROM users wpercent WHERE userid={$_GET['user']}"); print "<center><font color=red><h3>Total Warnings: ".$db->num_rows($q)." </font></h3> [b]Total Warning Percent: {$_GET['wp']} : [img=/images/warning/{$_GET[][/b] [<a href=warnings.php?action=add&userid={$_GET['user']}><font color=green>[b]Add Warning[/b]</font></a>] <table width=90% border='1' align=center><tr><tr class='h'> <td><font color=red>Warned By:</font></td> <td width=40%><font color=red>Reason</font></td> <td><font color=red>Percent Added</font></td> <td><font color=red>Date</font></td> <td><font color=red>Links</font></td></tr>"; while($r=$db->fetch_row($q)) { $warned=date('F j, Y, g:i:s a',$r['time']); print "<tr><td><a href=viewuser.php?u={$r['userid']}>{$r['username']}</a></td><td>{$r['warnedfor']}</td><td>{$r['padded']}</td><td>$warned</td><td>"; if($ir['warner'] != $userid) { print "[<a href=warnings.php?action=remove&ID={$r['id']}&user={$r['user']}&padded={$r['padded']}><font color=blue>Delete Warning</font></a>]"; } print "</td></tr>"; }} function addwarning() { global $ir,$userid,$db; print "<form action=warnings.php?action=addsub method=post> <input style='visibility: hidden' name=user value={$_GET['userid']}> <center><u>You Are Adding A Warning Please Make Sure You State Why You Have Issued This Warning</u> </center> <select name='padded'> <option value='10'>10%</option> <option value='20'>20%</option> <option value='30'>30%</option> <option value='40'>40%</option> <option value='50'>50%</option> <option value='60'>60%</option> <option value='70'>70%</option> <option value='80'>80%</option> <option value='90'>90%</option> <option value='100'>100%</option> </select> <textarea rows=30 cols=50 name=reason>Please State A Rule That The User Has Broken In This Box Or A Reason To Why You Are Adding This Warning!</textarea> <input type=submit value='Add warning'></form>"; } function addwarning2() { global $ir,$userid,$db; $_POST['user']=($_POST['user']); $_POST['reason']=($_POST['reason']); $_POST['padded']=($_POST['padded']); $db->query("INSERT INTO warnings VALUES ('','{$_POST['user']}','{$_POST['reason']}','$userid','unix_timestamp()',{$_POST['padded']})"); $db->query("UPDATE users SET wpercent=wpercent+{$_POST['padded']} WHERE userid={$_POST['user']}"); $checkfed=$db->query("SELECT * FROM warnings WHERE user='{$_POST['user']}'"); if($db->num_rows($checkfed) > 10) { $db->query("UPDATE users SET fedjail=1 WHERE userid='{$_POST['user']}'"); $db->query("INSERT INTO fedjail VALUES('','{$_POST['user']}','300','$userid','Reached 10 warnings in game. Account jailed.')"); } if($db->num_rows($checkfed) > 5) { $db->query("UPDATE users SET jail=100 WHERE userid='{$_POST['user']}'"); } if($db->num_rows($checkfed) > 2) { event_add($_POST['user']," Hello {$_GET['user']}, You have recived more than 2 warnings on Street-Soldiers. Please do not break the rules and we will not have to pester you. Your account is now under Admin Survelance For 2 Weeks Be carefull as one wrong move could mean you getting kicked off the game. Thanks, Admin Team",$c); } print "Warning Added! [*]<a href=viewuser.php?u={$_POST['user']}>Back to users profile</a>"; event_add($_POST['user'],"Hello, You have been given a warning for the following reason<hr /> {$_POST['reason']}<hr /> Please Check Your Home Page For Your Current Warning Level, Dont Reach [b]100%[/b] Or You Wull Be Banned For 1 Whole Year",$c); } function removewarning() { global $ir,$userid,$db; $db->query("UPDATE users SET wpercent=wpercent-{$_GET['padded']} WHERE userid={$_GET['user']}"); $db->query("DELETE FROM warnings WHERE id={$_GET['ID']}"); print "Warning Deleted, <a href=viewuser.php?u={$_GET['user']}>Go To Users Profile</a>"; } ?> Then Create A File Called gamerules.php and ADD: ";print " We here at {$set['game_name']} take our rules seriously and if anyone breaks them we will take action. At this moment in time we have a Rules Percent system in place. Each rule has its own percentage that it is worth You break the rule then we will add the percetage to your account and you will then face the punishment. Ok so here is how it all works, On your profile and homepage you will see a green bar, this green bar turns red as you begin to break the rules, if you get 100% on your bar then it will become red and you will be banned for one whole year. Under each rule there is a information board and that will tell you the information and things that will happen if you break that rule. Please keep checking on the rules as they will update every now and again, FAILURE to do so will not get you out of trouble when you break them 1) Players are only allowed to have 1 account, owning two or more accounts will result in all accounts being jailed, if you are on the same IP as another player, mail staff and let them know.100% - Instant Ban2) No Flaming. Respect other players and dont belittle, make fun off, or insult another player. 'Flaming' and insults, however, will not be tolerated. Agree to disagree.10%3) Children play this game, so keep it PG-13. Mild swearing will be permitted, but F-bombing, sexual vulgarities or excessive swearing will result in some time in Fed until you clean up your act.10%4) Profile images with nudity, profanity, or otherwise offensive images will be removed, and may result in jail time.30%5) Advertising here without the owner's consent will not be tolerated. Offenders will be punished.100% - Instant Ban6) Do not spam the staff's mailbox, if you have a problem, message one of us once. They will deal with your problem in a timely manner, but do not mail them repeatedly, or mail multiple staff members.30%7) Do not harrass other players, use common sense on this one, if you don't know when your crossing the line from fantasy into harrassment, assume that you are harrassing the other player. This will not be tolerated and will result in a stiff punishment.20%8) In the event of a dispute, all decisions made by the SS staff will be final and not up for negotiation. Arguing with staff over a decision will result in action being taken against your account.10%9) Staff slander of any kind will not be tolerated. Offenders will be jailed marked for deletion.100% - Instant Ban10) Browser addons or any third party software that does not change how SS was ment to be played is allowed however if any such addon or software causes harm to the SS server or used to perform cheat methods or hacks is forbidden and will result in stiff punishment.100% - Instant Ban - IP Ban 11) Claims regarding scams or any other issue should be made within 24 - 48 hrs or the player report will be dismissed.Depends On Player Report12) No one is allowed to sell or purchase in-game cash or anything issued as in game items other than thru DP's or special's offered by the owner.50% - If Caught Selling Items Not Attached To The Game13) Auto Refresher's are not allowed here. If your caught using them, You will be punished harshly as it is a form of cheating.100% - Instant Ban14) Same IP Transfer's are NOT allowed here. If you are caught doing a same IP transfer, Whether it be item's or money thru the game, You are subject to the same punishment as any cheating charge.100% - Instant Ban15) Scamming will not be tolerated in any manner. Any attempt to scam anyone will result in being jailed.100% - Instant Ban16) Trading of ingame item's, money etc to better members in another game isnt allowed. You will be punished harshly as it is a form of cheating.100% - Instant Ban17) Common sense rules are not posted here, if you can't determine the difference between what is ok, and what is not, you should consider not interacting with other people until you do understand.10% - Most Common Sense Rules18) Inactive user accounts of 28 days or more will be deleted on detection. In addition accounts marked with any content to suggest they have quit etc will be deleted at the owners discretion. In anycase accounts can go inactive for along time before they are deleted however the times outlined here are the minimum time an account can be deleted due to quiting or inactivity. This is to ensure a clean database of active users is kept.Account Deletion19) The sale or giving away of a user account is not permitted here. Any attempt to sell or give away your account will result in being jailed.100% - Instant Ban20) Exploiting game bugs of any kind is against game rules. Anyone caught doing such activity will have there account jailed and marked for deletion.100% - Instant Ban21) Impersonating a staff member or any other member isn't allowed. Other members using staff or other members names confuses others in regards to who you really are. This isn't allowed.100% - Instant Ban22) Advertising to pay for members in any method for exchange for details so another member can train for the user etc is not permitted. This method is a great risk to a users account content and could result in the loss of the account via details being changed and thus not wanted to be advertised here. If caught breaking this rule will result in action being taken against your account. This method can be arranged out of game however accounts lost / took over / details changed etc via this method will be removed from the site. This rule is for the benefit of member account security!100% - Instant Ban23) Member based deals regarding sharing housing or joining money on a long term arrangement is at the members risk. Reports can be submitted on possable scams via such systems however if the game itself doesn't contain enough logs then any claim will be dismissedNot A Staff Matter24) Accounts that are found to be breaking any rules listed here will be scanned via IP for other accounts. If accounts have been linked they will also be jailed. Accounts jailed for 300 days and above will be IP banned and marked for deletion. As per rule 1 explains that there is to only be 1 account per IP. Exceptions are made to supply extra accounts to other family members however if 1 account fails to comply with rules all will be subject to the punishments resulted by the individual. To avoid this please only log into your account via a 1 member to 1 IP basis. Otherwise ensure the people / family members that share your IP follow ingame rules. Ignorance will not be accepted as an excuse100% - Instant Ban ImaxDevelopment Rules & Warning Modification 2010"; ---- You may want to edit the rules to suit your game or change the warning percentage ---- +=====================================+ + Here are the images that you will need + +=====================================+ 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% +=====================================+ Soon To Come: (Next Mod In Progress) Court System (Users will be able to appeal there warnings and get another game player to be there lawyer. And there will be selected staff judges. Users will be able to sue the admins or other staff if they feel that they have been UN fairly treated on the game or they have had something go wrong with there account. All they have to do is click the explore page, click on Court and then i will add a load of options on what they can do on that page and i will have a admin page for the judges and one for the jury, i might also add a live chat in the court to make it easier for people to argue there case.
  4. The policeman is a render just added that in to make the prison theme more apealing, gonna start coding it now though.
  5. Hi, currently i do not have the time to code this template but am happy to split the prize if someone else codes it :)
×
×
  • Create New...