11.03.2015, 22:43
Well guys, i dont think so, you did understand, what do i want. You are sending me super basic scripts that i already know, ofc. they are not soultion of my problem.
My first "try" which is working well, and its first part of the system:
So this little script does, that if player kills someone, he will earn all his money.
The second part, which is unknown for me, that is why i am posting this help topic, is how to do, that player who got killed, will lose his all money.
If he die from falling down, or type /kill, he cant lose his money, so that is little confusing.
You guys told me to use:
GivePlayerMoney(playerid, -amount);
If you would use that, the player will loose all his money everytime, he will die. I need, to get his money reseted just IF HE GETS KILLED BY ANOTHER PLAYER, WHO CAN GET HIS MONEY FROM HIM.
Hope you understanded guys.
My first "try" which is working well, and its first part of the system:
Код:
GivePlayerMoney(killerid, GetPlayerMoney(playerid)); new string[55]; format(string, sizeof(string), "You killed player %s, and earned his money $%d.", GetName(playerid), GetPlayerMoney(playerid)); SendClientMessage(killerid, COLOR_DIED, string);
The second part, which is unknown for me, that is why i am posting this help topic, is how to do, that player who got killed, will lose his all money.
If he die from falling down, or type /kill, he cant lose his money, so that is little confusing.
You guys told me to use:
GivePlayerMoney(playerid, -amount);
If you would use that, the player will loose all his money everytime, he will die. I need, to get his money reseted just IF HE GETS KILLED BY ANOTHER PLAYER, WHO CAN GET HIS MONEY FROM HIM.
Hope you understanded guys.