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 DIALOG_NAMECOLOR 1
- #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("/changecolour", cmdtext, true, 10) == 0){
- ShowPlayerDialog(playerid, DIALOG_NAMECOLOR, DIALOG_STYLE_LIST, "{FF0000}Namecolor Menu:", "{33AA33}Green\n{AA3333}Red\n{FFFF00}Yellow\n{0000BB}Blue\n{FF9900}Orange\n{FFC0CB}Pink\n{B8860B}Gold", "Accept", "Cancel");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_NAMECOLOR)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerColor(playerid, 0x33AA33AA);
- }
- if(listitem == 1)
- {
- SetPlayerColor(playerid, 0xAA3333AA);
- }
- if(listitem == 2)
- {
- SetPlayerColor(playerid, 0xFFFF00AA);
- }
- if(listitem == 3)
- {
- SetPlayerColor(playerid, 0x0000BBAA);
- }
- if(listitem == 4)
- {
- SetPlayerColor(playerid, 0xFF9900AA);
- }
- if(listitem == 5)
- {
- SetPlayerColor(playerid, 0xFFC0CBAA);
- }
- if(listitem == 6)
- {
- SetPlayerColor(playerid, 0xB8860BAA);
- }
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment