Parrot Posted July 8, 2009 Posted July 8, 2009 This is my first CE mod. So let me know what you think. This new type will allow a user to choose whether they want to be a good cop or a bad cop. Each one has a different set of calls or crimes! create staff_badcalls.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Parrot Posted July 8, 2009 Author Posted July 8, 2009 Re: New type of Crimes!! create staff_goodcalls.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. create goodcalls.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Parrot Posted July 8, 2009 Author Posted July 8, 2009 Re: New type of Crimes!! create badcalls.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. create dobadcall.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. create dogoodcall.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add this to smenu.php in place of current crimes You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Parrot Posted July 8, 2009 Author Posted July 8, 2009 Re: New type of Crimes!! Add all of these into your mysql database as separate inquiries You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Here are the good tables You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Also add this query to the users table You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Parrot Posted July 8, 2009 Author Posted July 8, 2009 Re: New type of Crimes!! Here is the preferences You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add this anywhere in preferences.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Parrot Posted July 8, 2009 Author Posted July 8, 2009 Re: New type of Crimes!! Replace these dropdowns with your current crime ones in global_func.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Finally exchange this with your current mainmenu.php crime button You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
MyGunWars Posted July 8, 2009 Posted July 8, 2009 Re: New type of Crimes!! Looks Good I May Uses This But Redo Some Of It For My Class Mod. Quote
Parrot Posted July 8, 2009 Author Posted July 8, 2009 Re: New type of Crimes!! No problem man this is just what I used on my game. I then brought it out because lots of people liked it. Turn it into whatever you like Quote
Strats Posted July 8, 2009 Posted July 8, 2009 Re: New type of Crimes!! Looks cool I might try this out Quote
? Sparks ? Posted July 10, 2009 Posted July 10, 2009 Re: New type of Crimes!! 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 ' 0, '22', 'You see an old citizen and want to help cross the street!', ' Query was INSERT INTO goodcalls (callNAME, callBRAVE, callPERCFORM, callSUCCESSMUNY, callSUCCESSCRYS, callSUCCESSITEM, callGROUP, callITEXT, callSTEXT, callFTEXT, callJTEXT, callJAILTIME, callJREASON, callXP) VALUES( '1) Help an old lady cross the street', '1', '((WILL*0.8)/2.5)+(LEVEL/1)', '10', , 0, '22', 'You see an old citizen and want to help cross the street!', 'Thanks why don\'t you take this money to get you some candy!', 'You offer to help the old citizen but he says That he can do It on his own!', 'You ask the old citizen If he needs help crossing the street And he freaks out and calls the cops!', 1, '1', 2) Quote
Danny696 Posted July 10, 2009 Posted July 10, 2009 Re: New type of Crimes!! small problem: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. should be You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and same for all other codes Quote
CrazyT Posted July 11, 2009 Posted July 11, 2009 Re: New type of Crimes!! small problem: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. should be You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and same for all other codes Or.. Userlevel 2 = Admin Userlevel 3 = Sec. Userlevel 4 = Assis. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Eternal Posted July 11, 2009 Posted July 11, 2009 Re: New type of Crimes!! small problem: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. should be You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and same for all other codes $ir is for person veiwing having $r is useless Quote
SMOKEY_TEK Posted August 16, 2009 Posted August 16, 2009 Re: New type of Crimes!! I don't see the Choose your Cop Level in the preferences... What do I do? I added that code in the preferences.php Quote
Danny696 Posted August 16, 2009 Posted August 16, 2009 Re: New type of Crimes!! have you added the link cumon we dont have to do everything do we? Quote
weewooz Posted August 17, 2009 Posted August 17, 2009 Re: New type of Crimes!! function conf_cop_level() { global $ir,$c,$userid,$h; if($ir['coplevel'] == "Good Cop") { $cl="Bad Cop"; } else { $cl="Good Cop"; } print "Are you sure you want to become a $cl? Yes | No"; } function do_cop_level() { global $db,$ir,$c,$userid,$h; if($ir['coplevel'] == "Good Cop") { $cl="Bad Cop"; } else { $cl="Good Cop"; } $db->query("UPDATE users SET coplevel='$cl' WHERE userid=$userid"); print "Success, you are now $cl! Back"; } add that into yourprfes.php file mate then it will work Quote
Shide Posted September 26, 2009 Posted September 26, 2009 nice mod I may try it out on our new game Druglif3. Just change the cops to fit the game and it may be a good add on. Nice job on doing something new that was getting quite boring since its been same crimes on every Mc Code out there. :D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.