Author Topic: Auto Message's System By Me  (Read 3402 times)

0 Members and 1 Guest are viewing this topic.

Offline MatheuS

  • Made Man
  • ***
  • Posts: 207
  • Pawn And Squirrel Scripter
    • View Profile
    • Brazillian Community
Auto Message's System By Me
« on: September 21, 2013, 04:28:14 am »
          Auto Messages System


New's

[pawn]new gstring[128];
new Color[] = {
   0x20B2AAAA,
   0xFFFFFFAA,
   0x33AA33AA,
   0xE0FFFFAA,
   0x934FF6F6,
   0xF4005BF6,
   0xF68E00F6,
    0x00E7C6F6,
    0x5EB7E3F6,
    0xCD6CF6F6,
    0x685000F6
};
new Messages[][128] = {
   "Your Message 1",
        "Your Message 2",
   "Welcome To The Server" // exemple
};[/pawn]

Public's

[pawn]forward SendMessages();
public SendMessages()
{
   new random1 = random(sizeof(Messages));
   new random2 = random(sizeof(Color));
   format(gstring, sizeof(gstring), "%s", Messages[random1]);
   SendClientMessageToAll(Color[random2],gstring);
   return 1;
}[/pawn]

GameModeInit

 [pawn]SetTimer("SendMessages", 160000, 1);[/pawn]

========== By Me ==========

sorry for my bad english...

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: Auto Message's System By Me
« Reply #1 on: September 22, 2013, 02:19:02 pm »
Looks pretty decent for me :)
I like your idea about using random colors.

By the way, the Pawn BBCode still sucks as I see...
Quote
Messages[][128] =

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline MatheuS

  • Made Man
  • ***
  • Posts: 207
  • Pawn And Squirrel Scripter
    • View Profile
    • Brazillian Community
Re: Auto Message's System By Me
« Reply #2 on: September 25, 2013, 05:37:27 pm »
Change s[] to []

 ;D