[Tutorial] How to make typing contests
#6

Quote:
Originally Posted by O_x
Посмотреть сообщение
Amazing,I was wondering how to do that,good job!

I'll try adding letters in my server,thanks!
Random letters? That'd be LoL if it'd actually made an existing word.
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;
}
Or something like that.
Reply


Messages In This Thread
How to make typing contests - by Hiddos - 08.07.2010, 09:47
Re: How to make typing contests - by Lorenc_ - 08.07.2010, 12:31
Re: How to make typing contests - by O_x - 08.07.2010, 12:35
Re: How to make typing contests - by ViruZZzZ_ChiLLL - 08.07.2010, 12:59
Re: How to make typing contests - by Cameltoe - 08.07.2010, 13:18
Re: How to make typing contests - by Hiddos - 08.07.2010, 14:59
Re: How to make typing contests - by Cameltoe - 08.07.2010, 15:52
Re: How to make typing contests - by aNdReSk - 08.07.2010, 22:23
Re: How to make typing contests - by Hiddos - 09.07.2010, 06:36
Re: How to make typing contests - by [XST]O_x - 09.07.2010, 11:14

Forum Jump:


Users browsing this thread: 1 Guest(s)