Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Simple Colour Name By Awankz
- //Please Dont Remove Credits
- #include <a_samp>
- #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
- #define COLOR_SEAGREEN 0x20B2AAAA
- #define COLOR_LIMEGREEN 0x32CD32AA
- #define COLOR_MIDNIGHTBLUE 0X191970AA
- #define COLOR_MAROON 0x800000AA
- #define COLOR_OLIVE 0x808000AA
- #define COLOR_ORANGERED 0xFF4500AA
- #define COLOR_PINK 0xFFC0CBAA
- #define COLOR_SPRINGGREEN 0x00FF7FAA
- #define COLOR_TOMATO 0xFF6347AA
- #define COLOR_YELLOWGREEN 0x9ACD32AA
- #define COLOR_MEDIUMAQUA 0x83BFBFAA
- #define COLOR_MEDIUMMAGENTA 0x8B008BAA
- #pragma tabsize 0
- public OnFilterScriptInit()
- {
- print("\n----------------------------------");
- print(" Colour Name By Awankz ");
- print("----------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/green", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 0x33AA33AA);
- SendClientMessage(playerid, 0x33AA33AA, "Your Name Has Changed To Green");
- return 1;
- }
- if(strcmp("/red", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 0xAA3333AA);
- SendClientMessage(playerid, 0xAA3333AA, "Your Name Has Changed To Red");
- return 1;
- }
- if(strcmp("/yellow", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 0xFFFF00AA);
- SendClientMessage(playerid, 0xFFFF00AA, "Your Name Has Change To Yellow");
- return 1;
- }
- if(strcmp("/blue", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 0x0000BBAA);
- SendClientMessage(playerid, 0x0000BBAA, "Your Name Has Change To Blue");
- return 1;
- }
- if(strcmp("/orange", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 0xFF9900AA);
- SendClientMessage(playerid, 0xFF9900AA, "Your Name Has Change To Orange");
- return 1;
- }
- if(strcmp("/pink", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 0xFFC0CBAA);
- SendClientMessage(playerid, 0xFFC0CBAA, "Your Name Has Change To Pink");
- return 1;
- }
- if(strcmp("/gold", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 0xB8860BAA);
- SendClientMessage(playerid, 0xB8860BAA, "Your Name Has Change To Gold");
- return 1;
- }
- if (strcmp("/changecolour", cmdtext, true, 10) == 0){
- SendClientMessage(playerid, 0xD51CC2C8, "Chat Colours");
- SendClientMessage(playerid, 0x33AA33AA, "/green");
- SendClientMessage(playerid, 0xAA3333AA, "/red");
- SendClientMessage(playerid, 0xFFFF00AA, "/yellow");
- SendClientMessage(playerid, 0x0000BBAA, "/blue");
- SendClientMessage(playerid, 0xFF9900AA, "/orange");
- SendClientMessage(playerid, 0xFFC0CBAA, "/pink");
- SendClientMessage(playerid, 0xB8860BAA, "/gold");
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment