02.03.2015, 10:40
Hi, I am unsure how to start a Placebet Command in DCMD.
I want it so a player can type /placebet [a number from 1-6] [amount to bet]
So they are placing a certain amount of money on a number. E.G 5k on number 4....
Could someone give me a guide on how to do this. I have searched everywhere but can't find a solution.
I tried using a /pay script and editing it however that is not going to work because I'm not looking for a playerid..
I don't know.. If someone could help i would appreciate it. Just a little guidance
I want it so a player can type /placebet [a number from 1-6] [amount to bet]
So they are placing a certain amount of money on a number. E.G 5k on number 4....
Could someone give me a guide on how to do this. I have searched everywhere but can't find a solution.
pawn Код:
dcmd(placebet, 8, cmdtext);
pawn Код:
dcmd_placebet(playerid, params[])
{
if(joinedtable[playerid] == 1)
{
if(peopleattable == 2)
{
new targetid, value;
if(sscanf(params, "ui", targetid, value)) return SendClientMessage(playerid, COLOR_RED, "ERROR: /placebet [] [amount]");