08.09.2017, 18:59
Hey im trying to make /dice cmd
its will look like /dice [playerid] [amount of money]
and other player /accept dice [playerid] or /reject dice[playerid]
example:
player1 ( id : 558 ) typed : /dice 25 1000000
player2 (id : 25 ) typed : /accept dice 25
then server choose random player , for example server choose player 2
Player2 get message : You won 1000000$
and player1 get message: You lose 1000000$
and remove from player 1 1000000 and give player 2 1000000
also please dont forget to check if players have same amount of money
ex2 player1( id : 55 typed: /dice 25 100000000
player1 get message you dont have that ammount of money
ex3 player1 ( id 55 typed: /dice 25 100000000
player1 get message another player dont have that amount of money
ex4 player1 (id 55 typed: /dice 25 100
player1 get message dice request sent
player2 get message [ Name of player1 with id] want to dice you with( amount of money) /accept dice or /reject dice ( playerid server will get id of player1)
please help me i was trying to script this from long time but i cant
its will look like /dice [playerid] [amount of money]
and other player /accept dice [playerid] or /reject dice[playerid]
example:
player1 ( id : 558 ) typed : /dice 25 1000000
player2 (id : 25 ) typed : /accept dice 25
then server choose random player , for example server choose player 2
Player2 get message : You won 1000000$
and player1 get message: You lose 1000000$
and remove from player 1 1000000 and give player 2 1000000
also please dont forget to check if players have same amount of money
ex2 player1( id : 55 typed: /dice 25 100000000
player1 get message you dont have that ammount of money
ex3 player1 ( id 55 typed: /dice 25 100000000
player1 get message another player dont have that amount of money
ex4 player1 (id 55 typed: /dice 25 100
player1 get message dice request sent
player2 get message [ Name of player1 with id] want to dice you with( amount of money) /accept dice or /reject dice ( playerid server will get id of player1)
please help me i was trying to script this from long time but i cant