28.12.2009, 22:02
Hey ! i need a casino system, sometimes you win sometimes you lose-
new casinowin = random(2);
if(casinowin == 0)
{
//Player has won!
}
if(casinowin == 1)
{
//Player has lost :(.
}
new casinowin = random(6); if(casinowin == 1 { GivePlayerMoney(playerid, 150); SendClientMessage(playerid, COLOR_WHITE, "You have Won $150"); } if(casinowin == 2) { SendClientMessage(playerid, COLOR_WHITE, "You have Won Nothing! } if(casinowin == 3) { //Player has lost :(. } if(casinowin == 4) { GivePlayerMoney(playerid, 2000 SendClientMessage(playerid, COLOR_WHITE, "You have Won $2000 } if(casinowin == 5) { GivePlayerMoney(playerid, 500 SendClientMessage(playerid, COLOR_WHITE, "You have Won $500"); } if(casinowin == 6) { SendClientMessage(playerid, COLOR_WHITE, "You have Won Nothing! } }