21.07.2016, 13:03
What about this? if i insert this on gm it will work ?
Quote:
#define MAX_WAR 100 new SpecialZone[MAX_WAR]; stock AvailableZone(id) { switch(id) { case SnakeFarm: return 1; } return 0; } public SpecialTimer() { new i = random(MAX_WAR+1); new string[128]; if(AvailableZone(i) == 1) { if(SpecialZone[i] == 0) { format(string, sizeof(string), "* Zone %s is now a bonus zone, Capture it to get a special/additional rewards.", GetZoneName(i)); SendClientMessageToAll(COLOR_PINK, string); SpecialZone[i] = 1; print(string); } else { format(string, sizeof(string), "* Zone %s is no longer a bonus zone, It will be replaced in the next 3 minutes.", GetZoneName(i)); SendClientMessageToAll(COLOR_PINK, string); SpecialZone[i] = 0; print(string); } } else { SpecialTimer(); } return 1; } |