Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=========================================================
- // CHANGE COLOUR SYSTEM V1.0 BY AWANKZ[SDZ]
- // PLEASE DON'T REMOVE CREDITS
- //=========================================================
- #include <a_samp>
- #include <zcmd>
- #define LIGHTGREEN 0x00FF00C8 //{00FF00}
- #define ORANGE 0xFE7749C8 //{FE7749}
- #define GRAY 0xC0C0C0C8 //{C0C0C0}
- #define BLACK 0x000000C8 //{000000}
- #define WHITE 0xFFFFFFFF //{FFFFFF}
- #define BLUE 0x0000FFC8 //{0000FF}
- #define RED 0xFF0000C8 //{FF0000}
- #define YELLOW 0xFFFF80C8 //{FFFF80}
- #define PEACH 0xFF8040C8 //{FF8040}
- #define CRYBLUE 0x8080FFC8 //{8080FF}
- #define CRYORANGE 0xFF8F59C8 //{FF8F59}
- #define LIGHTBLUE 0x00FFFFC8 //{00FFFF}
- #define PURPLE 0x400080FF //{400080}
- #define LIGHTRED 0xFF99AADD
- #define PINK 0xFF66FFAA
- #define ColourList 1
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" ChangeColour System V1.0 By Awankz[SDZ]");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- main()
- {
- print("\n----------------------------------");
- print(" ChangeColour System V1.0 By Awankz[SDZ]");
- print("----------------------------------\n");
- }
- public OnPlayerSpawn(playerid)
- {
- SendClientMessage(playerid, CRYBLUE, ".: This Server Use {400080}Colour {FF99AA}System V1.0 By Awankz[SDZ] :.");
- return 1;
- }
- CMD:changecolour(playerid, params[])
- {
- ShowPlayerDialog(playerid,ColourList,DIALOG_STYLE_LIST,"{400080}Colour {8080FF}List","1.{FF0000}Red\n2.{0000FF}Blue\n3.{00FF00}Green\n4.{FF66FF}Pink\n5.White\n6.{FFFF80}Yellow\n7.{400080}Purple\n8.{FE7749}Orange","Apply","Close");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == ColourList)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerColor(playerid, RED);
- SendClientMessage(playerid, RED, ".: Your Have Been Set Your Colour To RED :.");
- return 1;
- }
- if(listitem == 1)
- {
- SetPlayerColor(playerid, BLUE);
- SendClientMessage(playerid, BLUE, ".: Your Have Been Set Your Colour To BLUE :.");
- return 1;
- }
- if(listitem == 2)
- {
- SetPlayerColor(playerid, LIGHTGREEN);
- SendClientMessage(playerid, LIGHTGREEN, ".: Your Have Been Set Your Colour To GREEN :.");
- return 1;
- }
- if(listitem == 3)
- {
- SetPlayerColor(playerid, PINK);
- SendClientMessage(playerid, PINK, ".: Your Have Been Set Your Colour To PINK :.");
- return 1;
- }
- if(listitem == 4)
- {
- SetPlayerColor(playerid, WHITE);
- SendClientMessage(playerid, WHITE, ".: Your Have Been Set Your Colour To WHITE :.");
- return 1;
- }
- if(listitem == 5)
- {
- SetPlayerColor(playerid, YELLOW);
- SendClientMessage(playerid, YELLOW, ".: Your Have Been Set Your Colour To YELLOW :.");
- return 1;
- }
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement