Dice command help request , i give reputation ++ !
#1

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 ++ !
Reply
#2

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;
}
Reply
#3

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

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
Reply
#5

up!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)