14.07.2016, 10:53
PHP код:
if((GangTurf[x][turfLevel] >= 0 && GangTurf[x][turfLevel] <= 11) && GangTurf[x][turfXP] >= (GangTurf[x][turfLevel] + 1) * 50)
{
GangTurf[x][turfLevel] += 1;
GetTurfLocation(x, zone, 28);
format(string, sizeof(string), "* Your turf at %s is now level %d. (Total XP: %s)", GangTurf[x][turfLevel], AddComma(GangTurf[x][turfXP]));
SendTeamMessage(GangTurf[x][turfOwner], GetTeamColor(GangTurf[x][turfOwner]), string);
switch(GangTurf[x][turfSpecial])
{
case 1: // Cash Generation
{
format(string, sizeof(string), "HINT: Cash Generation has increased, Your turf will now receive $%d per minute.", (GangTurf[x][turfLevel] + 1) * 50);
SendTeamMessage(GangTurf[x][turfOwner], -1, string);
}
}
}