A Betting system/Casino type system?
#1

Basically, I cant code, or very little, but, I plan to open Las vegas rp, (Using VX Script), And I was wondering if it would be possible to have like a betting/casino system, I.e When you enter a casino (business type) You have the option to bet on a number lets say between 1-10, and you bet a certain amount of money, and the server chooses a random number between that, and if it matches the number that the player chose then it doubles the amount of money the player betted. Im sure this is possible as RCRP have something similar.

Could someone create a code, and tell me where to enter it or what to do with it, im not an entire noob, It would be muchly apreciated, if possible you could perhaps edit it in the script for me? or A FS.

Thank you.

Im also open to suggestions/amendments to the system.
Reply
#2

If you cant script, simply start from little things.
No one probably isnt going to help you unless you even try to make something by yourself.

some help
pawn Code:
new guess; // use strtok and strval() to get the value, unless you arent using zcmd,dcmd or something like that
new number = random(10); // you can replace 10
if(guess == number)
{
    SendClientMessage(playerid,COLOR_GREEN,"Congrats! You won 1000$");
    GivePlayerMoney(playerid,1000);
}
else SendClientMessage(playerid,COLOR_GREEN,"No luck this time, please try again!
belive me no one isnt going to make it for you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)