Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* start : mycred extra lev based on user role 041320151959 */
- /* ***************************************************** */
- /* easy money lottery 1 bronze multiply*/
- add_filter( 'mycred_run_this', 'mycred_pro_adjust_lottery_payouts', 10, 2 );
- function mycred_pro_adjust_lottery_payouts( $request, $mycred ) {
- // Only applicable for lottery payouts
- if ( $request['ref'] != 'lottery_win' ) return $request;
- // Get the user ID
- $user_id = absint( $request['user_id'] );
- // Get the lottery ID
- $post_id = absint( $request['ref_id'] );
- // Act based on the lottery ID
- if ( $post_id == 26822 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 1. Бронзово Членство. (You Won In The Easy Money Lottery No. 1. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 1. Не платено Членство. (You won in the Easy Money Lottery No. 1. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26823 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 2. Бронзово Членство. (You Won In The Easy Money Lottery No. 2. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 2. Не платено Членство. (You won in the Easy Money Lottery No. 2. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26824 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 3. Бронзово Членство. (You Won In The Easy Money Lottery No. 3. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 3. Не платено Членство. (You won in the Easy Money Lottery No. 3. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26825 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 4. Бронзово Членство. (You Won In The Easy Money Lottery No. 4. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 4. Не платено Членство. (You won in the Easy Money Lottery No. 4. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26826 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 5. Бронзово Членство. (You Won In The Easy Money Lottery No. 5. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 5. Не платено Членство. (You won in the Easy Money Lottery No. 5. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26827 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 6. Бронзово Членство. (You Won In The Easy Money Lottery No. 6. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 6. Не платено Членство. (You won in the Easy Money Lottery No. 6. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26828 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 7. Бронзово Членство. (You Won In The Easy Money Lottery No. 7. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 7. Не платено Членство. (You won in the Easy Money Lottery No. 7. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26829 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 8. Бронзово Членство. (You Won In The Easy Money Lottery No. 8. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 8. Не платено Членство. (You won in the Easy Money Lottery No. 8. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26830 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 9. Бронзово Членство. (You Won In The Easy Money Lottery No. 9. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 9. Не платено Членство. (You won in the Easy Money Lottery No. 9. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26831 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 10. Бронзово Членство. (You Won In The Easy Money Lottery No. 10. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 10. Не платено Членство. (You won in the Easy Money Lottery No. 10. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26832 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 11. Бронзово Членство. (You Won In The Easy Money Lottery No. 11. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 11. Не платено Членство. (You won in the Easy Money Lottery No. 11. No Paid Membership.';
- }
- }
- elseif ( $post_id == 26833 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 12. Бронзово Членство. (You Won In The Easy Money Lottery No. 12. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 12. Не платено Членство. (You won in the Easy Money Lottery No. 12. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26834 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ){
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 13. Бронзово Членство. (You Won In The Easy Money Lottery No. 13. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 13. Не платено Членство. (You won in the Easy Money Lottery No. 13. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26835 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 14. Бронзово Членство. (You Won In The Easy Money Lottery No. 14. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 14. Не платено Членство. (You won in the Easy Money Lottery No. 14. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26836 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 15. Бронзово Членство. (You Won In The Easy Money Lottery No. 15. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 15. Не платено Членство. (You won in the Easy Money Lottery No. 15. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26837 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 16. Бронзово Членство. (You Won In The Easy Money Lottery No. 16. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 16. Не платено Членство. (You won in the Easy Money Lottery No. 16. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26838 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 17. Бронзово Членство. (You Won In The Easy Money Lottery No. 17. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 17. Не платено Членство. (You won in the Easy Money Lottery No. 17. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26839 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 18. Бронзово Членство. (You Won In The Easy Money Lottery No. 18. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 18. Не платено Членство. (You won in the Easy Money Lottery No. 18. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26840 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 19. Бронзово Членство. (You Won In The Easy Money Lottery No. 19. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 19. Не платено Членство. (You won in the Easy Money Lottery No. 19. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 26841 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['amount'] = $request['amount'] * 2;
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 20. Бронзово Членство. (You Won In The Easy Money Lottery No. 20. Bronze Membership.)';
- }
- elseif ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Лотария Лесни Пари № 20. Не платено Членство. (You won in the Easy Money Lottery No. 20. No Paid Membership.)';
- }
- }
- elseif ( $post_id == 27414 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Неделен Бустер. (You Won The Sunday Booster.)';
- }
- }
- elseif ( $post_id == 27216 ) {
- if ( user_can( $user_id, 'btn_bronze_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте в Супер Числова Лотария. (You Won In The Super Numbers Lottery.)';
- }
- }
- elseif ( $post_id == 27893 ) {
- if ( user_can( $user_id, 'btn_bronze_no_multiply' ) ) {
- $request['entry'] = 'Вие Спечелихте 1 Месец Бонус Членство. (You Won 1 Month Bonus Membership.)';
- }
- }
- return $request;
- }
- /* end : mycred extra lev based on user role 041320151959 */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement