Placebet DCMD help..
#1

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.

pawn Код:
dcmd(placebet, 8, cmdtext);
I tried using a /pay script and editing it however that is not going to work because I'm not looking for a playerid..

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]");
I don't know.. If someone could help i would appreciate it. Just a little guidance
Reply


Messages In This Thread
Placebet DCMD help.. - by KingyKings - 02.03.2015, 10:40
Re: Placebet DCMD help.. - by Evocator - 02.03.2015, 10:56
Re: Placebet DCMD help.. - by KingyKings - 02.03.2015, 11:03

Forum Jump:


Users browsing this thread: 1 Guest(s)