04.12.2009, 15:23
You mean something like an automatic adverts ?
You can do it like that...
Put This at the top of your script, with other defines
Put this somewhere below #include's
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;
}