30.03.2019, 12:03
I am creating a dialog which will display weapons to sell. The user selling the weapons will type a command "/sellweapon [playerid]". The player that is buying the weapon will see the dialog and will get the option to buy the weapons.
So far everything is working except the part where the player selling the weapon gets the money from the player buying the weapons.
Ex:
1. I initiate selling weapons /sellweapon 2
2. Player id 2 gets the dialog and is able to choose and buy the weapons.
3. Player id 2 gets money taken away and weapon is given
4. Player who initiated the selling does not get any money from player id 2.
What will be the correct way to get the results of the dialog to the player that initiated the command (in this case the person selling the weapons?).
So far everything is working except the part where the player selling the weapon gets the money from the player buying the weapons.
Ex:
1. I initiate selling weapons /sellweapon 2
2. Player id 2 gets the dialog and is able to choose and buy the weapons.
3. Player id 2 gets money taken away and weapon is given
4. Player who initiated the selling does not get any money from player id 2.
What will be the correct way to get the results of the dialog to the player that initiated the command (in this case the person selling the weapons?).