Quote:
Originally posted by Keta
lol sorry on more question...what happens when u buy mafia protection? because someone brought the godfather and their money was still stolen
|
In this case
PHP Code:
if ($victim[insurance]=='mafia') {
$robs=intval($robber/2);
$DB_site->query("UPDATE user SET storep=storep-$robs WHERE userid=$usid");
$DB_site->query("UPDATE user SET storep=storep+$robber WHERE userid=GodFatherID");
$DB_site->query("UPDATE user SET storep=storep+$robs, karma=karma-$priz WHERE userid='$bbuserinfo[userid]'");
victim get a half of stolen money back, robber pay another half to mafia and godfather get that all. You can change this rule easily