Timer
#2

You mean something like an automatic adverts ?

You can do it like that...

Put This at the top of your script, with other defines

pawn Код:
forward Advertisements();
forward Advertisements2();

Put this somewhere below #include's
pawn Код:
public Advertisements2()
{

    new string[255];
  new ftext[255];
  if(ad == 1) { ftext = "~ your text your text ~"; }
  else if(ad == 2) { ftext = "~ your text your text ! ~"; }
  else if(ad == 3) { ftext = "~ your text your text. ~"; }
  else if(ad == 4) { ftext = "~ your text your text ~"; }
  else if(ad == 5) { ftext = "~ your text your text ! ~"; }
  else if(ad == 6) { ftext = "~ your text your text ~"; }
  else if(ad == 7) { ftext = "~ your text your text ~"; }
  else if(ad == 8) { ftext = "~ your text your text ~"; }
  else if(ad == 9) { ftext = "~ your text your text ~"; }
    format(string, sizeof(string), "%s", ftext);
    SendClientMessageToAll(0x8ECDF6AA, string); // Color of the text

    return 1;
}


public Advertisements()
{

    new dice = random(9)+1;
    ad = dice;
  Advertisements2();
 
    return 1;
}
Reply


Messages In This Thread
Timer - by GforceNL - 04.12.2009, 11:22
Re: Timer - by *ToM* - 04.12.2009, 15:23
Re: Timer - by dice7 - 04.12.2009, 15:25
Re: Timer - by GforceNL - 05.12.2009, 13:06

Forum Jump:


Users browsing this thread: 1 Guest(s)