Magictallguy Posted May 17, 2013 Posted May 17, 2013 This mod was requested by Bennyh789 on this topic Gang Kidnap Edit gangs.php Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add above You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edit yourgang.php Find (at the bottom of the file) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find the closing brace of the gang_staff_idx() function Add below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edit global_func.php Add at the bottom You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find in the menuarea() function You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Change to You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. SQLs You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Razor42 Posted May 20, 2013 Posted May 20, 2013 Nice mod will be using this just one question, is it 100% guaranteed you can kidnap the person or is their a chance of failing and going hospital, jail or even your gang member getting kidnapped from it? Quote
Magictallguy Posted May 20, 2013 Author Posted May 20, 2013 Nice mod will be using this just one question, is it 100% guaranteed you can kidnap the person or is their a chance of failing and going hospital, jail or even your gang member getting kidnapped from it? 100% currently, I can easily modify it to have the chance effect if you'd like? Quote
Smokey Posted May 20, 2013 Posted May 20, 2013 I am currently using an old gang kidnapping mod, very simple but not made very well. I am also in the middle of converting a Faction mod into a Cartel Mod with lots of new stuff added, I do believe I'm going to work this mod into the Cartels as it looks much more comprehensive :thumbsup: Quote
Magictallguy Posted May 20, 2013 Author Posted May 20, 2013 (edited) Nice mod will be using this just one question, is it 100% guaranteed you can kidnap the person or is their a chance of failing and going hospital, jail or even your gang member getting kidnapped from it? Untested Replace the gang_kidnap() function in yourgang.php with this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Any bugs, post here I am currently using an old gang kidnapping mod, very simple but not made very well. I am also in the middle of converting a Faction mod into a Cartel Mod with lots of new stuff added, I do believe I'm going to work this mod into the Cartels as it looks much more comprehensive :thumbsup: Thank you :) Edited September 14, 2013 by Magictallguy Updated the code, removed a few bugs Quote
Bennyh789 Posted September 12, 2013 Posted September 12, 2013 does anybody have a working copy of this? As i have tried to install but getting a fair few errors will post errors if no-one has a copy Quote
SRB Posted September 12, 2013 Posted September 12, 2013 does anybody have a working copy of this? As i have tried to install but getting a fair few errors will post errors if no-one has a copy Post your errors. Quote
Magictallguy Posted September 14, 2013 Author Posted September 14, 2013 Code updated, I believe there should be no bugs now Quote
Bennyh789 Posted September 14, 2013 Posted September 14, 2013 Code updated, I believe there should be no bugs now Thanks MTG I do believe I promised you some cookies! Have got some awesome Oreo birthday cake cookies that i got imported form the states if you want to try :-) Quote
Magictallguy Posted September 14, 2013 Author Posted September 14, 2013 Thanks MTG I do believe I promised you some cookies! Have got some awesome Oreo birthday cake cookies that i got imported form the states if you want to try :-) You know, that sounds pretty cool.. Let's do that! xD Quote
Bennyh789 Posted September 14, 2013 Posted September 14, 2013 (edited) Just the two minor errors. When I am putting: <td>",(($gangdata['gangID'] != $ir['gang']) ? "<a href='gangs.php?action=kidnap&ID=".$gangdata['gangID']."&u=".$r['userid']."'>Kidnap</a>" : ''),"</td> where it should go I get the error: Parse error: syntax error, unexpected '<' in /home/endoftim/public_html/gangs.php on line 106 And when I type the kidnap link in manually I get: QUERY ERROR: Query was empty Query was My manual link: ww.endoftimez.com/gangs.php?action=kidnap&ID=2&u=2 The Id IS in that gang Thanks Ben Edited September 14, 2013 by Bennyh789 Quote
Magictallguy Posted September 15, 2013 Author Posted September 15, 2013 Send me that section of your yourgang.php (via PM), I'll have a look and see what's going wrong there. That code should work fine Quote
Smokey Posted September 19, 2013 Posted September 19, 2013 I was just going over the kidnapping sections while converting this to fit with my Cartels and I happened to notice that the 2 queries needed to deduct from one and pay the other gang are not there :P You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Magictallguy Posted September 19, 2013 Author Posted September 19, 2013 I was just going over the kidnapping sections while converting this to fit with my Cartels and I happened to notice that the 2 queries needed to deduct from one and pay the other gang are not there :P You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Thank you, original code updated and optimised slightly Quote
Magictallguy Posted September 21, 2013 Author Posted September 21, 2013 Code updated, stupid syntax highlighter -.- Quote
Magictallguy Posted October 29, 2013 Author Posted October 29, 2013 Original code updated and tested :) 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.