Guest User

Untitled

a guest
Apr 25th, 2010
637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. #define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Color Changer by luigifan9");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19. return 1;
  20. }
  21.  
  22. public OnPlayerCommandText(playerid, cmdtext[])
  23. {
  24.  
  25. if (strcmp("/colors", cmdtext, true, 10) == 0)
  26. {
  27. SendClientMessage(playerid, 0x33AA33AA, "/red /green /blue /yellow /black /white");
  28. return 1;
  29. }
  30.  
  31.  
  32.  
  33. if (strcmp("/red", cmdtext, true, 10) == 0)
  34. {
  35. SetPlayerColor(playerid, 0xFF0000FF);
  36. return 1;
  37. }
  38.  
  39.  
  40.  
  41. if (strcmp("/green", cmdtext, true, 10) == 0)
  42. {
  43. SetPlayerColor(playerid, 0x33AA33AA);
  44. return 1;
  45. }
  46.  
  47.  
  48. if (strcmp("/blue", cmdtext, true, 10) == 0)
  49. {
  50. SetPlayerColor(playerid, 0x0000FFFF);
  51. return 1;
  52. }
  53.  
  54. if (strcmp("/yellow", cmdtext, true, 10) == 0)
  55. {
  56. SetPlayerColor(playerid, 0xFFFF00FF);
  57. return 1;
  58. }
  59.  
  60.  
  61. if (strcmp("/black", cmdtext, true, 10) == 0)
  62. {
  63. SetPlayerColor(playerid, 0x000000FF);
  64. return 1;
  65. }
  66.  
  67.  
  68. if (strcmp("/white", cmdtext, true, 10) == 0)
  69. {
  70. SetPlayerColor(playerid, 0xFFFFFFFF);
  71. return 1;
  72. }
  73.  
  74.  
  75.  
  76.  
  77. return 0;
  78. }
  79.  
  80. #else
  81. #endif
Advertisement
Add Comment
Please, Sign In to add comment