30.10.2016, 21:58
hello there.
im currently making an roulette system for players.
I have created numbers and made the command
now my question is , can a player know for example what the next number will fall ??
Those are my codes and the timer when player calls after pressing the cmd
im currently making an roulette system for players.
I have created numbers and made the command
now my question is , can a player know for example what the next number will fall ??
Code:
enum rouletteHands_Enum { RNumber, RCard[12], } new RouletteHands[][rouletteHands_Enum] = { {0, "Green"}, {32, "Red"}, {15, "Black"}, {19, "Red"}, {4, "Black"}, {21, "Red"}, {2, "Black"}, {25, "Red"}, {17, "Black"}, {34, "Red"}, {6, "Black"}, {27, "Red"}, {13, "Black"}, {36, "Red"}, {11, "Black"}, {30, "Red"}, {8, "Black"}, {23, "Red"}, {10, "Black"}, {5, "Red"}, {24, "Black"}, {16, "Red"}, {33, "Black"}, {1, "Red"}, {20, "Black"}, {14, "Red"}, {31, "Black"}, {9, "Red"}, {22, "Black"}, {18, "Red"}, {29, "Black"}, {7, "Red"}, {28, "Black"}, {12, "Red"}, {35, "Black"}, {3, "Red"}, {26, "Black"} };
Code:
function:RouletteTimer(playerid) { new rouletteID = minrand(0, sizeof(RouletteHands)); new iFormat[128]; if(!strcmp(RouletteHands[rouletteID][RCard], "Black")) { format(iFormat, sizeof(iFormat), "** The wheel lands on %d (%s) ** (( %s ))", RouletteHands[rouletteID][RNumber], RouletteHands[rouletteID][RCard], MaskedName(playerid)); NearMessage(playerid, iFormat, 0x282828FF); } else if(!strcmp(RouletteHands[rouletteID][RCard], "Red")) { format(iFormat, sizeof(iFormat), "** The wheel lands on %d (%s) ** (( %s ))", RouletteHands[rouletteID][RNumber], RouletteHands[rouletteID][RCard], MaskedName(playerid)); NearMessage(playerid, iFormat, 0xFF1A1AFF); } else { format(iFormat, sizeof(iFormat), "** The wheel lands on %d (%s) ** (( %s ))", RouletteHands[rouletteID][RNumber], RouletteHands[rouletteID][RCard], MaskedName(playerid)); NearMessage(playerid, iFormat, COLOR_GREEN); } }