08.07.2010, 14:59
Quote:
Amazing,I was wondering how to do that,good job!
I'll try adding letters in my server,thanks! |
Also, I just came up with this idea without actually knowing if this worked. I've done it with random checkpoints as well, a random checkpoint spawns on the map (Pre-defined co-ords ofc.) and whoever enters it first wins.
@Cameltoe: It's possible, here's an example how you might do it, if I'm understanding you correctly.
pawn Код:
new CO[4]; // Contest Option
public NewContest()
{
new string[128];
CO[0] = MINIMUM_VALUE + random(MAXIMUM_VALUE-MINIMUM_VALUE);
CO[1] = MINIMUM_VALUE + random(MAXIMUM_VALUE-MINIMUM_VALUE);
CO[2] = MINIMUM_VALUE + random(MAXIMUM_VALUE-MINIMUM_VALUE);
CO[3] = MINIMUM_VALUE + random(MAXIMUM_VALUE-MINIMUM_VALUE);
format(string,sizeof string,"~w~ Contest starting ~n~~r~ %d - %d - %d - %d",CO[0],CO[1],CO[2],CO[3]);
GameTextForAll(string,12000,6);
SetTimer("ChooseFromRandom",12000,0);
return 1;
}
forward ChooseFromRandom();
public ChooseFromRandom()
{
ContestAnswer = CO[random(4)];
format(string,sizeof(string),"~w~Type the below number to win the contest! ~n~~g~%d",ContestAnswer);
GameTextForAll(string,10000,6);
return 1;
}