Guest User

Colour Name System

a guest
Dec 27th, 2012
894
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*  Coulour System is Created in 11.11.2012
  2.      Thisi system is Created by Legena!
  3.       I hope it will like to you!
  4.        And i want that yours servers looking nice.
  5.        
  6. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  7. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!WARRING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  8. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  9.  
  10. Dont remove credits or Filterscript wont work!!!!!!!!!
  11. */
  12.  
  13.  
  14. //////////  INCLUDES  //////////////////////////////////////////////////////////
  15.  
  16. #include <a_samp>
  17. //////////  DEFINES  //////////////////////////////////////////////////////////
  18. #define COLOUR_GREEN  0x33AA33AA
  19. #define COLOUR_RED    0xAA3333AA
  20. #define COLOUR_YELLOW 0xFFFF00AA
  21. #define COLOUR_BLUE   0x0000FFAA
  22. #define COLOUR_ORANGE 0xFF9900AA
  23. #define COLOUR_PINK   0xFF00FFAA
  24. #define COLOUR_GOLD   0xD4A017AA
  25. #define COLOUR_AQUA   0x00FFFFAA
  26. #define COLOUR_LIME   0x00FF00AA
  27.  
  28. #pragma tabsize 0
  29.  
  30. public OnFilterScriptInit()
  31. {
  32.         print("\n----------------------------------");
  33.         print(" Colour System by Legena Loaded ");
  34.         print("----------------------------------\n");
  35. return 1;
  36. }
  37.  
  38. public OnFilterScriptExit()
  39. {
  40. return 1;
  41. }
  42. //////////  COMMANDS  //////////////////////////////////////////////////////////
  43. public OnPlayerCommandText(playerid, cmdtext[])
  44. {
  45.    if(strcmp("/green", cmdtext, true, 10) == 0)
  46.    {
  47.        SetPlayerColor(playerid, 0x33AA33AA);
  48.        SendClientMessage(playerid, 0x33AA33AA, "Your Name Has Changed To Green");
  49.        return 1;
  50.    }
  51.    if(strcmp("/red", cmdtext, true, 10) == 0)
  52.    {
  53.        SetPlayerColor(playerid, 0xAA3333AA);
  54.        SendClientMessage(playerid, 0xAA3333AA, "Your Name Has Changed To Red");
  55.        return 1;
  56.    }
  57.    if(strcmp("/yellow", cmdtext, true, 10) == 0)
  58.    {
  59.        SetPlayerColor(playerid, 0xFFFF00AA);
  60.        SendClientMessage(playerid, 0xFFFF00AA, "Your Name Has Change To Yellow");
  61.        return 1;
  62.    }
  63.    if(strcmp("/blue", cmdtext, true, 10) == 0)
  64.    {
  65.        SetPlayerColor(playerid, 0x0000FFAA);
  66.        SendClientMessage(playerid, 0x0000FFAA, "Your Name Has Change To Blue");
  67.        return 1;
  68.    }
  69.    if(strcmp("/orange", cmdtext, true, 10) == 0)
  70.    {
  71.        SetPlayerColor(playerid, 0xFF9900AA);
  72.        SendClientMessage(playerid, 0xFF9900AA, "Your Name Has Change To Orange");
  73.        return 1;
  74.    }
  75.    if(strcmp("/gold", cmdtext, true, 10) == 0)
  76.    {
  77.        SetPlayerColor(playerid, 0xD4A017AA);
  78.        SendClientMessage(playerid, 0xD4A017AA, "Your Name Has Change To Gold");
  79.        return 1;
  80.    }
  81.    if(strcmp("/pink", cmdtext, true, 10) == 0)
  82.    {
  83.        SetPlayerColor(playerid, 0xFF00FFAA);
  84.        SendClientMessage(playerid, 0xFF00FFAA, "Your Name Has Change To Pink");
  85.        return 1;
  86.    }
  87.    if(strcmp("/aqua", cmdtext, true, 10) == 0)
  88.    {
  89.        SetPlayerColor(playerid, 0x00FFFFAA);
  90.        SendClientMessage(playerid, 0x00FFFFAA, "Your Name Has Change To Aqua");
  91.        return 1;
  92.    }
  93.    if(strcmp("/lime", cmdtext, true, 10) == 0)
  94.    {
  95.        SetPlayerColor(playerid, 0x00FF00AA);
  96.        SendClientMessage(playerid, 0x00FF00AA, "Your Name Has Change To Lime");
  97.        return 1;
  98.    }
  99.    if(strcmp("/black", cmdtext, true, 10) == 0)
  100.    {
  101.        SetPlayerColor(playerid, 0x00000000);
  102.        SendClientMessage(playerid, 0x00000000, "Your Name Has Change To Black");
  103.        return 1;
  104.    }
  105.    if(strcmp("/white", cmdtext, true, 10) == 0)
  106.    {
  107.        SetPlayerColor(playerid, 0xFFFFFFFF);
  108.        SendClientMessage(playerid, 0xFFFFFFFF, "Your Name Has Change To White");
  109.        return 1;
  110.    }
  111.    if(strcmp("/grey", cmdtext, true, 10) == 0)
  112.    {
  113.        SetPlayerColor(playerid, 0x6c6c6cAA);
  114.        SendClientMessage(playerid, 0x6c6c6cAA, "Your Name Has Change To Grey");
  115.        return 1;
  116.    }
  117.    if(strcmp("/purple", cmdtext, true, 10) == 0)
  118.    {
  119.        SetPlayerColor(playerid, 0x800080AA);
  120.        SendClientMessage(playerid, 0x800080AA, "Your Name Has Change To Purple");
  121.        return 1;
  122.    }
  123.    
  124.         if (strcmp("/colours", cmdtext, true, 10) == 0){
  125.         SendClientMessage(playerid, 0xD51CC2C8, "Chat Colours");
  126.         SendClientMessage(playerid, 0x33AA33AA, "//////// <--------- /green");
  127.         SendClientMessage(playerid, 0xAA3333AA, "//////// <--------- /red");
  128.         SendClientMessage(playerid, 0xFFFF00AA, "//////// <--------- /yellow");
  129.         SendClientMessage(playerid, 0x0000FFAA, "//////// <--------- /blue");
  130.         SendClientMessage(playerid, 0xFF9900AA, "//////// <--------- /orange");
  131.         SendClientMessage(playerid, 0xFF00FFAA, "//////// <--------- /pink");
  132.         SendClientMessage(playerid, 0xD4A017AA, "//////// <--------- /gold");
  133.         SendClientMessage(playerid, 0x00FFFFAA, "//////// <--------- /aqua");
  134.         SendClientMessage(playerid, 0x00FF00AA, "//////// <--------- /lime");
  135.         SendClientMessage(playerid, 0x00000000, "//////// <--------- /black");
  136.         SendClientMessage(playerid, 0xFFFFFFFF, "//////// <--------- /white");
  137.         SendClientMessage(playerid, 0x6c6c6cAA, "//////// <--------- /grey");
  138.         SendClientMessage(playerid, 0x800080AA, "//////// <--------- /purple");
  139.  
  140.                 return 1;
  141.     }
  142.     return 0;
  143.   }
  144.   //////////  FINISHED  //////////////////////////////////////////////////////////
RAW Paste Data