25.12.2014, 11:08
hmm yea i got that but no, it's not gonna work with this. cuz it's also not a player who is doing a refund, i just said refund as an example. But here what's goin on:
Player 1:
- Disconnected.
- Has a house (For Sale).
- $1m sale price for example.
Player 2:
- Online.
- Bought the house while the owner is disconnected.
- GivePlayerMoney(Player 2, -HouseInfo[h][ForSalePrice]); (-$1m)
- How to give 1m to the old owner of the house!
I can do your method as "Player 2 ID" is the 'playerid',, but i should also take care of what if Player 2 has disconnected from the server and Player 1 didn't join yet, that's the conflict here.
Nevermind ill fix this by making new variable called it "BonusMoney" for example and set 1m in it, so when the player connects it will give him PlayerInfo[playerid][pMoney] + PlayerInfo[playerid][BonusMoney]
If you have another method, please tell me. Thank you!
Player 1:
- Disconnected.
- Has a house (For Sale).
- $1m sale price for example.
Player 2:
- Online.
- Bought the house while the owner is disconnected.
- GivePlayerMoney(Player 2, -HouseInfo[h][ForSalePrice]); (-$1m)
- How to give 1m to the old owner of the house!
I can do your method as "Player 2 ID" is the 'playerid',, but i should also take care of what if Player 2 has disconnected from the server and Player 1 didn't join yet, that's the conflict here.
Nevermind ill fix this by making new variable called it "BonusMoney" for example and set 1m in it, so when the player connects it will give him PlayerInfo[playerid][pMoney] + PlayerInfo[playerid][BonusMoney]
If you have another method, please tell me. Thank you!