Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- _ _ _ _ _____ ____ ____
- | \ | | ___ _ _ _ __ __| (_)_ _|_ _| _ \| _ \
- | \| |/ _ \| | | | '__/ _` | | '_ \| | | |_) | |_) |
- | |\ | (_) | |_| | | | (_| | | | | | | | _ <| __/
- |_| \_|\___/ \__,_|_| \__,_|_|_| |_|_| |_| \_\_|
- -- Simple message filterscript --
- */
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- #define DIALOG_COLORS 1
- #define DIALOG_COLORS2 2
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_BLUE 0x0000BBAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_LIME 0x10F441AA
- #define COLOR_MAGENTA 0xFF00FFFF
- #define COLOR_NAVY 0x000080AA
- #define COLOR_AQUA 0xF0F8FFAA
- #define COLOR_CRIMSON 0xDC143CAA
- #define COLOR_FLBLUE 0x6495EDAA
- #define COLOR_BISQUE 0xFFE4C4AA
- #define COLOR_BLACK 0x000000AA
- #define COLOR_CHARTREUSE 0x7FFF00AA
- #define COLOR_BROWN 0XA52A2AAA
- #define COLOR_CORAL 0xFF7F50AA
- #define COLOR_GOLD 0xB8860BAA
- #define COLOR_GREENYELLOW 0xADFF2FAA
- #define COLOR_INDIGO 0x4B00B0AA
- #define COLOR_IVORY 0xFFFF82AA
- #define COLOR_LAWNGREEN 0x7CFC00AA
- new colorformsg[MAX_PLAYERS];
- CMD:information(playerid, params[])
- {
- new HugeString[1024];
- format(HugeString, sizeof(HugeString), "{FFFFFF}Simple Message System has been created by {6EF83C}NourdinTRP.");
- ShowPlayerDialog(playerid, 100, DIALOG_STYLE_MSGBOX, "Simple Message", HugeString, "OK", "");
- return 1;
- }
- CMD:message(playerid, params[])
- {
- ShowPlayerDialog(playerid, DIALOG_COLORS, DIALOG_STYLE_LIST, "What colour do you want?", "Red\nBlue\nYellow\nGreen\nIndigo\nGold\nWhite\nCrimson", "Continue", "Cancel");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid)
- {
- case DIALOG_COLORS:
- {
- if(response)
- {
- colorformsg[playerid] = listitem;
- ShowPlayerDialog(playerid, DIALOG_COLORS2, DIALOG_STYLE_INPUT,"Message","Type your message in","Send","Cancel");
- }
- }
- case DIALOG_COLORS2:
- {
- if(response)
- {
- switch(colorformsg[playerid])
- {
- case 0: SendClientMessageToAll(COLOR_RED, inputtext);
- case 1: SendClientMessageToAll(COLOR_BLUE, inputtext);
- case 2: SendClientMessageToAll(COLOR_YELLOW, inputtext);
- case 3: SendClientMessageToAll(COLOR_GREEN, inputtext);
- case 4: SendClientMessageToAll(COLOR_INDIGO, inputtext);
- case 5: SendClientMessageToAll(COLOR_GOLD, inputtext);
- case 6: SendClientMessageToAll(COLOR_WHITE, inputtext);
- case 7: SendClientMessageToAll(COLOR_CRIMSON, inputtext);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement