25.04.2012, 17:40
For random fees, you have to use "random()"
Edit MED_MIN_FEE for the minimum value, edit MED_MAX_FEE for the maximum value
On top of your script
Add this under OnPlayerDeath
Note: I am not sure if random(MED_MAX_FEE)+MED_MIN_FEE) works how it is supposed to be. If someone knows how to fix (if it doesn't function how it is supposed to be), please fix it
Edit MED_MIN_FEE for the minimum value, edit MED_MAX_FEE for the maximum value
On top of your script
pawn Код:
#define MED_MIN_FEE 100
#define MED_MAX_FEE 200
pawn Код:
SetPlayerMoney(playerid, (GetPlayerMoney(playerid) - random(MED_MAX_FEE)+MED_MIN_FEE));
SendClientMessage(playerid, 0xFF0000, "You have paid for your medical fees");

