Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global $session;
- $user = $session['user']['acctid'];
- $baduser = $args['badguy']['acctid'];
- case "charstats":
- // check the database if user has a bounty, if so display in character stats at the top (high priority)
- if(get_module_pref("user_bountyon")==1){ // pref is on = display,
- $SQL = "SELECT GB,BA FROM ".db_prefix("den")." WHERE TID = '$user';";
- $queDenS = db_query($SQL);
- $arrDenS = db_fetch_assoc($queDenS);
- $GBounty = $arrDenS["GB"];
- $BAmount = $arrDenS["BA"];
- if($GBounty==1){
- addcharstat("`\$You are Wanted!");
- addcharstat("`4Bounty Amount`^", $BAmount);
- }
- } // pref is of, do nothing.
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement