Guest User

name Color changer by maaz

a guest
Mar 18th, 2014
707
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 6.46 KB | None | 0 0
  1. #include <a_samp>
  2. #pragma tabsize 0
  3.  
  4. new dialog = 1;
  5. //You can edit it guyzz but please +rep if u like :D :)
  6. public OnFilterScriptInit()
  7. {
  8.         print("\n---------------------------------------------------");
  9.         print("Name Colour setter Made by maaz [aka: Commander_Limo]");
  10.         print("---------------------------------------------------\n");
  11.         return 1;
  12. }
  13.  
  14. public OnFilterScriptExit()
  15. {
  16.         print("\n---------------------------------------------------");
  17.         print("Name Colour setter Made by maaz [aka: Commander_Limo]");
  18.         print("---------------------------------------------------\n");
  19.         return 1;
  20. }
  21.  
  22. public OnPlayerCommandText(playerid, cmdtext[])
  23. {
  24. if(!strcmp(cmdtext,"/colorn",true))
  25.         {
  26.         ShowPlayerDialog( playerid, dialog, DIALOG_STYLE_LIST, "Choose a color[NAME]:", "Green\nWhite\nRed\nOrange\nBlue\nViolet\nYellow\nCrimson\nOlivegreen\nFuchsania[My own name lol]\nLimegreen\nBrown\nBlack\nGrey\nPurple\nCyan", "Select", "Cancel" );
  27.         return 1;
  28.         }
  29. return 0;
  30. }
  31.  
  32. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  33. {
  34.     if(dialogid == dialog)
  35.     {
  36.                 if(response)
  37.                 {
  38.                 if(listitem == 0)
  39.                         {
  40.                         SetPlayerColor(playerid,0x008000FF);
  41.                         SendClientMessage(playerid,0x008000FF, "The color of your name has been set to green.");
  42.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  43.                     }
  44.                 if(listitem == 1)
  45.                         {
  46.                         SetPlayerColor(playerid,0xF8F8FFFF);
  47.                         SendClientMessage(playerid,0xF8F8FFFF, "The color of your name has been set to white.");
  48.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  49.                     }
  50.                 if(listitem == 2)
  51.                         {
  52.                         SetPlayerColor(playerid,0xFF0000FF);
  53.                         SendClientMessage(playerid,0xFF0000FF, "The color of your name has been set to red.");
  54.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  55.                     }
  56.                 if(listitem == 3)
  57.                         {
  58.                         SetPlayerColor(playerid,0xFFA500FF);
  59.                         SendClientMessage(playerid,0xFFA500FF, "The color of your name has been set to orange.");
  60.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  61.                     }
  62.                 if(listitem == 4)
  63.                         {
  64.                         SetPlayerColor(playerid,0x0000FFFF);
  65.                         SendClientMessage(playerid,0x0000FFFF, "The color of your name has been set to blue.");
  66.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  67.                     }
  68.                 if(listitem == 5)
  69.                         {
  70.                         SetPlayerColor(playerid,0x9400D3FF);
  71.                         SendClientMessage(playerid,0x9400D3FF, "The color of your name has been set to violet.");
  72.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  73.                     }
  74.                 if(listitem == 6)
  75.                         {
  76.                         SetPlayerColor(playerid,0xFFFF00FF);
  77.                         SendClientMessage(playerid,0xFFFF00FF, "The color of your name has been set to yellow.");
  78.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  79.                     }
  80.                 if(listitem == 7)
  81.                         {
  82.                         SetPlayerColor(playerid,0xDC143CFF);
  83.                         SendClientMessage(playerid,0xDC143CFF, "The color of your name has been set to crimson.");
  84.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  85.                     }
  86.                 if(listitem == 8)
  87.                         {
  88.                         SetPlayerColor(playerid,0x556B2FFF);
  89.                         SendClientMessage(playerid,0x556B2FFF, "The color of your name has been set to olivegreen.");
  90.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  91.                     }
  92.                 if(listitem == 9)
  93.                         {
  94.                         SetPlayerColor(playerid,0xFF00FFFF);
  95.                         SendClientMessage(playerid,0xFF00FFFF, "The color of your name has been set to fuchsania.");
  96.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  97.                     }
  98.                 if(listitem == 10)
  99.                         {
  100.                         SetPlayerColor(playerid,0x32CD32FFF);
  101.                         SendClientMessage(playerid,0x32CD32FF, "The color of your name has been set to limegreen.");
  102.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  103.                     }
  104.                 if(listitem == 11)
  105.                         {
  106.                         SetPlayerColor(playerid,0x8B4513FF);
  107.                         SendClientMessage(playerid,0x8B4513FF, "The color of your name has been set to brown.");
  108.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  109.                     }
  110.                 if(listitem == 12)
  111.                         {
  112.                         SetPlayerColor(playerid,0x000000);
  113.                         SendClientMessage(playerid,0x000000, "The color of your name has been set to Black.");
  114.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  115.                     }
  116.                 if(listitem == 13)
  117.                         {
  118.                         SetPlayerColor(playerid,0x696969FF);
  119.                         SendClientMessage(playerid,0x696969FF, "The color of your name has been set to grey.");
  120.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  121.                     }
  122.                 if(listitem == 14)
  123.                         {
  124.                         SetPlayerColor(playerid,0x800080);
  125.                         SendClientMessage(playerid,0x800080, "The color of your name has been set to purple.");
  126.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  127.                         }
  128.                 if(listitem == 15)
  129.                         {
  130.                         SetPlayerColor(playerid,0x00ffff);
  131.                         SendClientMessage(playerid,0x00ffff, "The color of your name has been set to Cyan.");
  132.                         PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
  133.                 }
  134.             }
  135.             return 1;
  136.     }
  137.     return 0;
  138. }
Advertisement
Add Comment
Please, Sign In to add comment