Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Namecolor Changer ,__NNN_ N) ,N. NN ,N)
- // by JN" N) NN
- // (N` _N""4L _NF""LN) NN (N_F"NL_F"NN. _N""NL _NF"4LNN NN
- // NN (N` NL JN` �N) NN (N) N) NL (N NL JN` �NN NN
- // Do not remove 4N. NN"""""" NN N) NN (N) N) NN NN"""""" NN NN NN
- // credits. 4N_ (N_ (N_ ,N) NN (N) N) NN (N_ (N_ ,NN NN
- // �"4NNN" �"NNN" �"NN"`() NN (N) N) NN �"4NN"` �"NN""(N NN
- //Includes
- #include <a_samp>
- //Dialog ID
- new dialog = 1; // Dialog ID (You can change it)
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("Successfully loaded Cedimedi's Namecolor Changer");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print("Successfully unloaded Cedimedi's Namecolor Changer");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext,"/changecolor",true))
- {
- ShowPlayerDialog( playerid, dialog, DIALOG_STYLE_LIST, "Choose a color for your name:", "Green\nWhite\nRed\nOrange\nBlue\nViolet\nYellow\nCrimson\nOlivegreen\nFuchsania\nLimegreen\nBrown\nGrey", "Select", "Cancel" );
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == dialog)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerColor(playerid,0x008000FF);
- SendClientMessage(playerid,0x008000FF, "The color of your name has been set to green.");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- if(listitem == 1)
- {
- SetPlayerColor(playerid,0xF8F8FFFF);
- SendClientMessage(playerid,0xF8F8FFFF, "The color of your name has been set to white.");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- if(listitem == 2)
- {
- SetPlayerColor(playerid,0xFF0000FF);
- SendClientMessage(playerid,0xFF0000FF, "The color of your name has been set to red.");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- if(listitem == 3)
- {
- SetPlayerColor(playerid,0xFFA500FF);
- SendClientMessage(playerid,0xFFA500FF, "The color of your name has been set to orange.");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- if(listitem == 4)
- {
- SetPlayerColor(playerid,0x0000FFFF);
- SendClientMessage(playerid,0x0000FFFF, "The color of your name has been set to blue.");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- if(listitem == 5)
- {
- SetPlayerColor(playerid,0x9400D3FF);
- SendClientMessage(playerid,0x9400D3FF, "The color of your name has been set to violet.");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- if(listitem == 6)
- {
- SetPlayerColor(playerid,0xFFFF00FF);
- SendClientMessage(playerid,0xFFFF00FF, "The color of your name has been set to yellow.");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- if(listitem == 7)
- {
- SetPlayerColor(playerid,0xDC143CFF);
- SendClientMessage(playerid,0xDC143CFF, "The color of your name has been set to crimson.");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- if(listitem == 8)
- {
- SetPlayerColor(playerid,0x556B2FFF);
- SendClientMessage(playerid,0x556B2FFF, "The color of your name has been set to olivegreen.");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- if(listitem == 9)
- {
- SetPlayerColor(playerid,0xFF00FFFF);
- SendClientMessage(playerid,0xFF00FFFF, "The color of your name has been set to fuchsania.");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- if(listitem == 10)
- {
- SetPlayerColor(playerid,0x32CD32FFF);
- SendClientMessage(playerid,0x32CD32FF, "The color of your name has been set to limegreen.");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- if(listitem == 11)
- {
- SetPlayerColor(playerid,0x8B4513FF);
- SendClientMessage(playerid,0x8B4513FF, "The color of your name has been set to brown.");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- if(listitem == 12)
- {
- SetPlayerColor(playerid,0x696969FF);
- SendClientMessage(playerid,0x696969FF, "The color of your name has been set to grey.");
- PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment