SA-MP Forums Archive
Dice command help request , i give reputation ++ ! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dice command help request , i give reputation ++ ! (/showthread.php?tid=544115)



Dice command help request , i give reputation ++ ! - buburuzu19 - 31.10.2014

Please help me create a command like /dice (player ID) (amount of money)
For example /dice 2 30000
ID 2 will have this message: "Deadly_Evil challenged you to dice for $30000. /accept dice to dice and /cancel dice to decline."
If you do /roll you will dice for $30000 Then a ClientMessage comes: "Serious_Evil diced 4 and guy with id 2 diced 3 so Serious_Evil won $30000 ! ".
Thanks i give rep ++ !


Re: Dice command help request , i give reputation ++ ! - MasonSFW - 31.10.2014

Example:

pawn Код:
CMD:dice(playerid, params)
{
    new target, amount;
    if(sscanf(params, "ii", target, amount)) return SendClientMessage(playerid, COLOR_BLUE5, "Usage: /dice [playerid] [amount]");
    if(GetPlayerMoney < amount) return SendClientMessage(playerid, COLOR_LIGHTRED, "You don't have cash");
    GivePlayerMoney(target, amount);
    SendClientMessage(playerid, -1, "You have been gave money.");
    return 1;
}



Re: Dice command help request , i give reputation ++ ! - buburuzu19 - 31.10.2014

And how to make the probabilty of win and the numbers and the cancel and accept system , help pls!


Re: Dice command help request , i give reputation ++ ! - AdHaM612 - 31.10.2014

This is scripting help, you must try to script something and if it's wrong, we can help you.
But if you want someone to script you something, you can request it here: https://sampforum.blast.hk/showthread.php?tid=447813


Re: Dice command help request , i give reputation ++ ! - buburuzu19 - 31.10.2014

up!!!