SHOW:
|
|
- or go back to the newest paste.
| 1 | #include <a_samp> | |
| 2 | ||
| 3 | #define COLOR_ORANGE 0xFFA500AA | |
| 4 | ||
| 5 | new messages[][128] = {
| |
| 6 | - | new messages[4][256] = {
|
| 6 | + | |
| 7 | "Edit-Me", | |
| 8 | "Edit-Me", | |
| 9 | "Edit-Me", | |
| 10 | "Edit-Me", | |
| 11 | "Edit-Me", | |
| 12 | - | //if you want you can add more lines, where there is change the number [4] for the quantity of yours added line. |
| 12 | + | |
| 13 | "Edit-Me", | |
| 14 | "Edit-Me", | |
| 15 | "Edit-Me", | |
| 16 | "Edit-Me", | |
| 17 | "Edit-Me", | |
| 18 | "Edit-Me", | |
| 19 | "Edit-Me", | |
| 20 | "Edit-Me" // The last one Should be without ',' commas. | |
| 21 | ||
| 22 | //You can also change the colors, can use Hex Codes,Example: {FFFFFF}
| |
| 23 | //has a site here what i usage http://www.developingwebs.net/tools/color.php | |
| 24 | }; | |
| 25 | ||
| 26 | new colors[] = {
| |
| 27 | COLOR_ORANGE | |
| 28 | }; | |
| 29 | ||
| 30 | forward RandomMSG(); | |
| 31 | ||
| 32 | public OnGameModeInit() | |
| 33 | {
| |
| 34 | SetTimer("RandomMSG",300000,1);
| |
| 35 | return 1; | |
| 36 | } | |
| 37 | ||
| 38 | public RandomMSG() | |
| 39 | {
| |
| 40 | new string[256]; | |
| 41 | new random1 = random(sizeof(messages)); | |
| 42 | new random2 = random(sizeof(colors)); | |
| 43 | format(string, sizeof(string), "%s", messages[random1]); | |
| 44 | SendClientMessageToAll(colors[random2],string); | |
| 45 | return 1; | |
| 46 | } |