BreakingLight Posted January 17, 2011 Posted January 17, 2011 Well i have another mod i would like to post. Tell me what you guys think. And please give me some ideas of things you would like to see! First replace docrime.php with this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. After that add this SQL into your MYSQL database You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
BreakingLight Posted January 17, 2011 Author Posted January 17, 2011 Its a good mod! Thats the information. lol It lets you add what you want to happen. Do they go to the hospital or jail. A minimum and a maximum time. And it selects a random number between that. A specific reason per crime. So you dont go to the jail page and see. "Caught doing a crime." This mod also allows you to select a minimum and a maximum amount to get paid and selects an amount between there. Quote
Equinox Posted January 17, 2011 Posted January 17, 2011 You can only set 1 reason, for all crimes.....as you've set the hospital and jail reason, in the file. What about giving them a random out come, for each crime? Quote
BreakingLight Posted January 17, 2011 Author Posted January 17, 2011 Explain a little more in detail please! I'm looking for something to do so im up for it! Quote
rulerofzu Posted January 17, 2011 Posted January 17, 2011 You could add something like this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Will give a random result for going into the hospital. Recycle the code for jail and voila!! Quote
Equinox Posted January 17, 2011 Posted January 17, 2011 You could add something like this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Will give a random result for going into the hospital. Recycle the code for jail and voila!! Have it in the database, then you can have a specific outcome for each crime..... What if the crime I'm doing has no relation to guards? Quote
rulerofzu Posted January 17, 2011 Posted January 17, 2011 Or have it in the database. I was just giving a simple example which will depend on how many results you wish. Illusions did a similiar thing with calling from a text file. Many ways to do it. Take your pick Quote
Equinox Posted January 17, 2011 Posted January 17, 2011 I'm just saying......as it covers the point I made in my first post as well Quote
BreakingLight Posted January 17, 2011 Author Posted January 17, 2011 Thats the exact function of `crimeREASON` varchar(255) default '', Whatever you want it to say just slap it in there. And Wala Quote
danger boy Posted January 17, 2011 Posted January 17, 2011 How about instead of crime formula make it crime percentage? 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.