SA-MP Forums Archive
Casino System - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Casino System (/showthread.php?tid=116456)



Casino System - manunited1878 - 28.12.2009

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


Re: Casino System - Blantas - 28.12.2009

Is it too difficult to make your own?


Re: Casino System - [HiC]TheKiller - 29.12.2009

Just use random numbers

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



Re: Casino System - manunited1878 - 01.01.2010

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


Re: Casino System - twinki - 10.01.2010

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?


Re: Casino System - Jbosh123 - 13.01.2010

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!
}
}