betting 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)
+--- Thread: betting system (
/showthread.php?tid=467640)
betting system -
Boss201 - 04.10.2013
i want to make a command for all players
/bet amount red/black
example: i do /bet 50 red
if red i win
RED
------
+$50
/bet 50 red
if i get black
Black
-------
-$50
i cant give rep + for now since i have less than 50 posts
but i will do it in the future
Thanks
Re: betting system -
Boss201 - 04.10.2013
i forgot to mention i use ZCMD
Re: betting system -
Boss201 - 29.10.2013
anyone
AW: betting system -
BigETI - 29.10.2013
Can you atleast show us, what you've tried to create such command? Otherwise if you are looking someone to script for you, use
https://sampforum.blast.hk/showthread.php?tid=447813
Re: betting system -
Tagathron - 29.10.2013
Try using random number generator.
So it randomly puts red or black.
So if it's what player typed,for example red then give him his award,otherwise he loses.
Just an example
Код:
new redOrBlack = random(2);
new value;
// Code with the command where player inserts a value;for example 0=red,1=black
if (value==redOrBlack)
{
//Award the player
}
else
//He lost,do something