Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. global $session;
  2. $user = $session['user']['acctid'];
  3. $baduser = $args['badguy']['acctid'];
  4.  
  5. case "charstats":
  6. // check the database if user has a bounty, if so display in character stats at the top (high priority)
  7. if(get_module_pref("user_bountyon")==1){ // pref is on = display,
  8. $SQL = "SELECT GB,BA FROM ".db_prefix("den")." WHERE TID = '$user';";
  9. $queDenS = db_query($SQL);
  10. $arrDenS = db_fetch_assoc($queDenS);
  11. $GBounty = $arrDenS["GB"];
  12. $BAmount = $arrDenS["BA"];
  13. if($GBounty==1){
  14. addcharstat("`\$You are Wanted!");
  15. addcharstat("`4Bounty Amount`^", $BAmount);
  16. }
  17. } // pref is of, do nothing.
  18. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement