All pastes #810365 Raw Edit

Mine

public text v1 · immutable
#810365 ·published 2007-12-09 21:33 UTC
rendered paste body
//SocialServices
new string[256];
			TotalWealth=0;
			for(new i=0; i<MAX_PROPERTIES; i++) {
				if (propertyOwner[i] == playerid) {
					TotalWealth+=propertyCurrentValue[i];
				}
			}
			TotalWealth+=GetPlayerMoney(playerid);
			TotalWealth+=bank[playerid];
			if(TotalWealth < 10000000){
				if(X250[playerid] >= 1995.5 && X250[playerid] <= 2006.0 && Y250[playerid] >= 1518.0 && Y250[playerid] <= 1569.0) {
					SendClientMessage(playerid, COLOR_SYSTEM_PM, "* You are already receiving $ 100 every 5 seconds, no extra welfare for you at the moment.");
				} else {
					format(moneyreason, sizeof(moneyreason), "* Money increased by $%d (old: $%d), because player-id %d received welfare", 500, GetPlayerMoney(playerid), playerid);
					StatGivePlayerMoney(playerid, 500, moneyreason);
					if(FirstWellfare[playerid] == 1){
						SendClientMessage(playerid, COLOR_SYSTEM_PM, "* You received a welfare of $ 500 to support you on this server.");
						SendClientMessage(playerid, COLOR_SYSTEM_PM, "* You continue to receive this welfare as long as your total wealth -money and properties- is below 10 mil.");
						format(string,sizeof(string),"~y~Received Wellfare ~g~$");
			Wellfare[playerid] = TextDrawCreate(320.00, 430.00, string);
//			TextDrawSetOutline(Wellfare[playerid], 0);
			TextDrawFont(Wellfare[playerid], 3);
//			TextDrawSetProportional(Wellfare[playerid], 2);
			TextDrawAlignment(Wellfare[playerid], 2);
			TextDrawShowForPlayer (playerid, Wellfare[playerid]);
						FirstWellfare[playerid] = 0;
					} else {
						SendClientMessage(playerid, COLOR_SYSTEM_PM, "* You received  a wellfare of $500.");
						format(string,sizeof(string),"~y~Received Wellfare ~g~$");
			Wellfare[playerid] = TextDrawCreate(320.00, 430.00, string);
//			TextDrawSetOutline(Wellfare[playerid], 0);
			TextDrawFont(Wellfare[playerid], 3);
//			TextDrawSetProportional(Wellfare[playerid], 2);
			TextDrawAlignment(Wellfare[playerid], 2);
			TextDrawShowForPlayer (playerid, Wellfare[playerid]);
						FirstWellfare[playerid] = 0;
						}
					WelFare[playerid]=1;
				}