SA-MP Forums Archive
Timer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Timer (/showthread.php?tid=111830)



Timer - GforceNL - 04.12.2009

Hello,
I Would like to make a Tutorial Command, But...
Can i use a Timer That Changes The Text?
Exemple:

Welcome To My Server,

(then a timer after 5 seconds)

You Can do much Stuff

Can i make That timer and how Can i do it?
Thank you for your help


Re: Timer - *ToM* - 04.12.2009

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



Re: Timer - dice7 - 04.12.2009

https://sampwiki.blast.hk/wiki/Random_Messages


Re: Timer - GforceNL - 05.12.2009

Quote:
Originally Posted by dice7
No i mean That Somebody Can Type /tutorial and he sees a Tutorial Just like In The godfather but then with a command, How can i make this?