Iam Posted August 1, 2014 Share Posted August 1, 2014 Bought this modification on McCodes, but it is not working. The readme is this: 1. Add assassin.php to your server. 2. Add this line of code to your viewuser page under the links section: print"[<a href=assassin.php?ID={$r['userid]}'>Assassinate</a>]<br /><br />"; That's It. The first part wasn't that difficult :) But part 2...i don't have a viewuser page (profile.php i have). And second, if i add this code to profile.php i get an error while i execute the php file. Ofcourse i edited something to fit it around, but then i get You don't have enough brave to do this. Lol, i don't even have brave in my game....so what does this mean? Part of the code (it's a paid version, so i guess i can't dump the whole code here) { mysql_query("UPDATE users SET hospital=$hospital,hospreason='Assassinated.' WHERE userid={$_GET['ID']}",$c); event_add($r['userid'],"You were assassinated and put into the hospital for $hospital minutes.",$c,'general'); mysql_query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5 WHERE userid=$userid",$c); die("Your target has been successfully hit without complications, congratulations."); } Anyone has an idea? Quote Link to comment Share on other sites More sharing options...
W3Theory || Peter Posted August 1, 2014 Share Posted August 1, 2014 You have energy in the game, so you will just switch brave with energy. mysql_query("UPDATE users SET money=money-{$_GET['PAID']},energy=energy-5 WHERE userid=$userid",$c); Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted August 1, 2014 Share Posted August 1, 2014 Pretty much what Peter said. The script uses a stat called "Brave" by default and it says you don't have enough brave to perform the action because you don't have Brave in your game. Just replace all instances of Brave with whatever you wish to charge the player for the assassination. Quote Link to comment Share on other sites More sharing options...
Iam Posted August 4, 2014 Author Share Posted August 4, 2014 Thanks, i'm gonna try that out :) Quote Link to comment Share on other sites More sharing options...
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.