betting system
#1

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
Reply
#2

i forgot to mention i use ZCMD
Reply
#3

anyone
Reply
#4

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
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)