Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted

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.

Posted

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.

Posted

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.

Posted

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

Posted

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)

Posted

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

Posted

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.

Posted

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

  • 1 month later...
Posted

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

  • 1 month later...
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...