12.09.2018, 05:53
Quote:
I'm pretty sure he means he doesn't want players to lose 100$ when they die.
Try doing the opposite, and OnPlayerDeath give the player 100$ As so: Код:
public OnPlayerDeath(playerid, killerid, reason) { GivePlayerMoney(playerid, 100); return 1; } |
The problem of losing money when dyingh happens sometimes.
Solution:
Код:
#include <a_samp> new Money[MAX_PLAYERS]; public OnPlayerUpdate(playerid) { if(GetPlayerMoney(playerid) != Money[playerid]) { ResetPlayerMoney(playerid); GivePlayerMoney(playerid,Money[playerid]); } return 1; }