25.04.2012, 17:56
Replace the OnPlayerDeath part with:
Edit: Forgot to add SendClientMessage()
pawn Код:
new localString[128], randomFee = (GetPlayerMoney(playerid) - random(MED_MAX_FEE)+MED_MIN_FEE);
SetPlayerMoney(playerid, randomFee);
format(localString, sizeof(localString), "You have paid $%d for your medical fees", randomFee);
SendClientMessage(playerid, 0xFF0000, localString);