ok xong rùi ai thích thì add thêm cái slot machine nữa dzo cho casino cái này làm đại cho nó dzui thui nên hơi tệ chút các bác thích thì cứ hack theo nha
mở casino.php tìm
CODE
// ################# END BAU CUA ###########################
thêm ngay sau đó
CODE
function danhbac() { global $ibforums;
$this->page_title = $ibforums->vars['board_name']." -> Play Slot machine";
if (isset($ibforums->input['slot'])) { $this->danhbac_do_bet(); } else { $this->danhbac_bet(); } }
function danhbac_bet() { global $ibforums;
//check money, if ur money < 20$, you can't play our game..lolz $cash_extra=""; if($this->cash<20) { $cash_extra="==>You can't play casino while ur cash < 20$"; }
//do some output $this->output .= $this->html->danhbac_bet($this->cash,$cash_extra); $this->output .= $this->html->point();
$this->page_title = $ibforums->vars['board_name']." -> Slot Machine"; } function danhbac_do_bet() { global $ibforums,$DB,$std;
//yes...parse the image result $item=array( '0'=>"0", '1'=>"1", '2'=>"2", '3'=>"3", '4'=>"4", '5'=>"5", '6'=>"6", '7'=>"7", ); //select images $n1=rand(1,7); $n2=rand(1,7); $n3=rand(0,6); //making string $rslt=$n1.",".$n2.",".$n3; $arr=explode(",",$rslt); //rearrange the array sort($arr,SORT_NUMERIC); //ensure that s1<=s2<=s3 $s1=$arr[2]; $s2=$arr[1]; $s3=$arr[0]; //finished string $kw=$s1.",".$s2.",".$s3;
//do you win? switch($kw) {
//yep...you win...kekeke
case '1,1,1': $mess="Cool! You win 1000$"; $query="update ibf_members set cash=cash+1000 where id={$ibforums->member['id']}"; break; case '2,2,2': $mess="Cool! You win 700$"; $query="update ibf_members set cash=cash+700 where id={$ibforums->member['id']}"; break; case '3,3,3': $mess="Cool! You win 500$"; $query="update ibf_members set cash=cash+500 where id={$ibforums->member['id']}"; break; case '7,7,0': $mess="Cool! You win 10$"; $query="update ibf_members set cash=cash+10 where id={$ibforums->member['id']}"; break; case '4,4,4': $mess="Cool! You win 400$"; $query="update ibf_members set cash=cash+400 where id={$ibforums->member['id']}"; break; case '4,4,2': $mess="Cool! You win 150$"; $query="update ibf_members set cash=cash+150 where id={$ibforums->member['id']}"; break; case '5,5,5': $mess="Cool! You win 50$"; $query="update ibf_members set cash=cash+50 where id={$ibforums->member['id']}"; break; case '5,5,2': $mess="Cool! You win 300$"; $query="update ibf_members set cash=cash+300 where id={$ibforums->member['id']}"; break; case '6,6,6': $mess="Cool! You win 100$"; $query="update ibf_members set cash=cash+100 where id={$ibforums->member['id']}"; break; case '6,6,2': $mess="Cool! You win 20$"; $query="update ibf_members set cash=cash+20 where id={$ibforums->member['id']}"; break; case '7,7,0': $mess="Cool! You win 10$"; $query="update ibf_members set cash=cash+10 where id={$ibforums->member['id']}"; break; case '7,0,0': $mess="Cool! You win 5$"; $query="update ibf_members set cash=cash+5 where id={$ibforums->member['id']}"; break;
//oh no...you lose...hehehe
default: $mess="Sozy...You loose 20$..hehe"; $query="update ibf_members set cash=cash-20 where id={$ibforums->member['id']}"; break; } $DB->query($query);
//do some output $this->output .= $this->html->danhbac_do_bet($s1,$s2,$s3,$mess); $this->output .= $this->html->point(); $this->output .= $this->html->danhbac_bet($this->cash,$cash_extra); //set the page title $this->page_title = $ibforums->vars['board_name']." -> Game result"; }
//end class
rùi tìm tiếp
CODE
case "02" : $this->baucua(); break;
thêm vô sau đó
CODE
case "03" : $this->danhbac(); break; case "04" : $this->danhbac_do_bet(); break;
Thành viên này chưa có người bạn nào trong mạng VnVista, nếu bạn muốn trở thành người bạn đầu tiên của thành viên này, hãy click vào đây
--------------------
:)):)):)), 3 mục tiêu sống của ta: Sống để nhìn thấy người chết, sống để giết kẻ ta ghét, sống để lột da những đứa hiền lành, sống để xẻo thịt lũ ái, sống để trở thành bá chủ thế giớiGIẾT HẾT CHÚNG ĐI, DẪM NÁT BÉT NỘI TẠNG. ĐẤM VỠ SỌ CHÚNG RA, BÓP NÁT NÃO CHÚNG, ĐẬP CHO PHÒI MÁU, HÉT CHO VỠ ĐẦU, T R Ê N Đ Ơ Ì N À Y C H Ỉ C Ó T A T H Ô I!!!!!!!!!MÁU ME CỦA CHÚNG SẼ LÀ NIỀM VUI SƯỚNG CỦA TA :))...
Sống có gì vui đây? Chết có gì khổ đây? MA GIÁO VÔ ĐỊCH
index.php trong cả thư mục forum chỉ có một file thôi. Đó chính là file của các trang diễn đàn đó bạn (chẳng hạn ở vnvista link nó là: http://vnvista.com/forums/index.php )
casino.php thì dzô source skin_casino thì dzô skin_cacheid/cachedid# còn nếu có lang nữa thì cho dzô lang/# rùi mắy cái hình ảnh đó thì upload nguyên cái đống trong muc others lên rootforum. Chấm hít
--------------------
Nhóm bạn bè:
Thành viên này chưa có người bạn nào trong mạng VnVista, nếu bạn muốn trở thành người bạn đầu tiên của thành viên này, hãy click vào đây