25.04.2012, 16:44
i want medical fees system and if player die random money paid for meds fees can u help me i need this give me code medical fees system
#define COLOR_YELLOW 0xFFFF00AA
SetPlayerMoney(playerid,); //Type the amount you want to take money for medical fees SendClentMessage(playerid,COLOR_YELLOW," Your message"); //type your message
#define MED_MIN_FEE 100
#define MED_MAX_FEE 200
SetPlayerMoney(playerid, (GetPlayerMoney(playerid) - random(MED_MAX_FEE)+MED_MIN_FEE));
SendClientMessage(playerid, 0xFF0000, "You have paid for your medical fees");
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);