Casino System
#1

Hey ! i need a casino system, sometimes you win sometimes you lose-
Reply
#2

Is it too difficult to make your own?
Reply
#3

Just use random numbers

pawn Код:
new casinowin = random(2);
if(casinowin == 0)
{
  //Player has won!
}
if(casinowin == 1)
{
  //Player has lost :(.
}
Reply
#4

i need a place also where you can use /bet (money)
Reply
#5

ye,i need a system like this too,so tell me guys how to install?and where to put place where you bet and how?
Reply
#6

A Casino System is not a hard thing to do.
Just look at the Godfather Script or something Copy and paste a simple command like /help.
Edit /help to /bet then where it shows the commands, Remove them and put in.

Код:
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!
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)