Random Zone bonus
#5

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;
}

Reply


Messages In This Thread
Random Zone bonus - by Hunud - 21.07.2016, 12:43
Re: Random Zone bonus - by UltraScripter - 21.07.2016, 12:57
Re: Random Zone bonus - by moura98 - 21.07.2016, 13:00
Re: Random Zone bonus - by UltraScripter - 21.07.2016, 13:02
Re: Random Zone bonus - by Hunud - 21.07.2016, 13:03
Re: Random Zone bonus - by moura98 - 21.07.2016, 13:07
Re: Random Zone bonus - by F1N4L - 21.07.2016, 13:15
Re: Random Zone bonus - by Hunud - 21.07.2016, 13:16
Re: Random Zone bonus - by Hunud - 21.07.2016, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)