Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define COLOR_ORANGE 0xFFA500AA
- new messages[][128] = {
- "Edit-Me",
- "Edit-Me",
- "Edit-Me",
- "Edit-Me",
- "Edit-Me",
- "Edit-Me",
- "Edit-Me",
- "Edit-Me",
- "Edit-Me",
- "Edit-Me",
- "Edit-Me",
- "Edit-Me",
- "Edit-Me",
- "Edit-Me",
- "Edit-Me" // The last one Should be without ',' commas.
- //You can also change the colors, can use Hex Codes,Example: {FFFFFF}
- //has a site here what i usage http://www.developingwebs.net/tools/color.php
- };
- new colors[] = {
- COLOR_ORANGE
- };
- forward RandomMSG();
- public OnGameModeInit()
- {
- SetTimer("RandomMSG",300000,1);
- return 1;
- }
- public RandomMSG()
- {
- new string[256];
- new random1 = random(sizeof(messages));
- new random2 = random(sizeof(colors));
- format(string, sizeof(string), "%s", messages[random1]);
- SendClientMessageToAll(colors[random2],string);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment