when i bought the jail and hospital mods they came with a text file that had codes to put into these files (attacklost.php and attackwon.php) im not sure where the codes go and in the text file it only says this...
Hospital-Attack files.
attackwon.php
-right above where it prints (you beat "so and so" and stole "this much" money) add this code
(note if you have paid version, your file may be a bit different and i can help you find where to put this.)
$randnumer= rand(20,30);
$hosptime = (int) $randnumer;
$loseruser = $r['userid'];
$winneruser = $ir['userid'];
$winnerusername = $ir['username'];
$reasonhosp = 'Attacked by ';
$reasonhosp .= '$reasonhosp .= $winneruser;
$reasonhosp .= '>';
$reasonhosp .= $winnerusername;
$reasonhosp .= '.';
mysql_query("UPDATE users SET hosptime=$hosptime WHERE userid=$loseruser",$c);
mysql_query("UPDATE users SET hospreason='$reasonhosp' WHERE userid=$loseruser",$c);
attacklost.php
-I added this right above where it sends an event telling the winner that he was attacked and lost to.
$randnumer=(int) rand(25,40);
$hosptime = $randnumer;
$loseruser = $ir['userid'];
$winneruser = $r['userid'];
$winnerusername = $r['username'];
$reasonhosp = 'Attacked and lost to ';
$reasonhosp .= '$reasonhosp .= $winneruser;
$reasonhosp .= '>';
$reasonhosp .= $winnerusername;
$reasonhosp .= '.';
mysql_query("UPDATE users SET hosptime=$hosptime WHERE userid=$loseruser",$c);
mysql_query("UPDATE users SET hospreason='$reasonhosp' WHERE userid=$loseruser",$c);
can somebody please show me where to add these codes? :?
[email protected]