Advertisement
Guest User

Color Menu by ElectroX

a guest
Apr 17th, 2013
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.77 KB | None | 0 0
  1. //---------------------------------------------------------------------------------//
  2. //==========================Color menu By [RRS]ElectroX============================//
  3. //---------------------------------------------------------------------------------//
  4. #if defined ColorInfo
  5.         Color Menu
  6.                 -Realizat de [RRS]ElectroX
  7.                 -Linii: 110
  8.                 -RNG-Servers.com
  9.                 -Facut pentru sa-mp.com
  10.                 -Testat de [XSS]Skull
  11.                 -Multumiri speciale:[RNG]DuReX
  12.           •Multumim ca folositi ColorMenu•
  13. #endif
  14. #define FILTERSCRIPT
  15. //•Include-uri...
  16. #include <a_samp>
  17. #include <zcmd>
  18. //---------------------------------------------------------------------------------//
  19. //================================CULORI===========================================//
  20. //---------------------------------------------------------------------------------//
  21. #define Rosu 0xFF0000FF;
  22. #define Verde 0x00FF00FF;
  23. #define Albastru 0x0000FFFF;
  24. #define Alb 0xFFFFFFFF;
  25. #define Negru 0x000000C1;
  26. #define Aqua 0x00FFFFFF
  27. #define Galben 0xFFFF00FF;
  28. #define Roz 0xFF00FFFF;
  29. #define MesajIntampinare 0x0BBF6AA;
  30. //---------------------------------------------------------------------------------//
  31. #if defined FILTERSCRIPT
  32. //==========News===========//
  33. new Culorile;
  34. new Credite;
  35. //---------------------------------------------------------------------------------//
  36. //=============================CONSOLA=============================================//
  37. //---------------------------------------------------------------------------------//
  38. public OnFilterScriptInit()
  39. {
  40.     print("\n======================================");
  41.     print("Dialog de Culori By [RRS]ElectroX");
  42.     print("----------Incarcat!--------------");
  43.     print("========================================\n");
  44.     return 1;
  45. }
  46.  
  47. public OnFilterScriptExit()
  48. {
  49.     print("\n======================================");
  50.     print("Dialog de Culori By [RRS]ElectroX");
  51.     print("-----------Scos!------------------");
  52.     print("========================================\n");
  53.     return 1;
  54. }
  55.  
  56. #else
  57.  
  58.  
  59. #endif
  60. public OnPlayerConnect(playerid)
  61. {
  62. SendClientMessage(playerid, 0x0BBF6AA, "•This server is using Color Menu by {FF0000} [RRS]ElectroX");
  63. }
  64. //•Exemplu comanda....
  65. public OnPlayerCommandText(playerid, cmdtext[])
  66. {
  67.  if(strcmp("/comanda", cmdtext, true, 10) == 0) //sau CMD: daca folositi ZCMD.
  68.     {
  69. //Functia comenzii(SendClientMessage, CreateVehicle, SetPlayerHealth)
  70.     }
  71. }
  72. //•Dialog-ul, comanda initiala
  73. CMD:culori(playerid, params[])
  74. {
  75. ShowPlayerDialog(playerid, Culorile, DIALOG_STYLE_LIST, "{FFFFFF}Colours", "{FF0000}•Rosu\n{008000}•Verde\n{0000FF}•Albastru\n{FFFFFF}•Alb\n{000000}•Negru\n{00FFFF}•Acvatic\n{FFFF00}•Galben\n{FF00FF}•Roz\n{FFFFFF}•Credite", "•Alege", "•Iesire");
  76. return 1;
  77. }
  78. //---------------------------------------------------------------------------------//
  79. //======================Credite====================================================//
  80. CMD:cmcredits(playerid, params[])
  81. {
  82. ShowPlayerDialog(playerid, Credite, DIALOG_STYLE_MSGBOX, "{FFFFFF}Color Menu {0000FF}Credits", "{FFFFFF}•Realizat de {008000}[RRS]ElectroX\n{FFFFFF}•Testat de {008000}[XSS]Skull\n{FFFFFF}•Multumiri Speciale:{008000}[RNG]DuReX {FFFFFF}si {008000}SA-MP.COM!\n{FFFFFF}•Multumim ca ati citit creditele {008000}ColorMenu", "•OK", "•Iesire");
  83. return 1;
  84. }
  85. //==============================================================================//
  86. //-----------------------Raspunsuri Dialog--------------------------------------//
  87. //==============================================================================//
  88. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  89. {
  90.     if(dialogid == Culorile)
  91.             {
  92.             if(response)
  93.             {
  94.                 switch(listitem)
  95.                 {
  96.                     case 0: SetPlayerColor(playerid, 0xFF0000FF);
  97.                     case 1: SetPlayerColor(playerid, 0x00FF00FF);
  98.                     case 2: SetPlayerColor(playerid, 0x0000FFFF);
  99.                     case 3: SetPlayerColor(playerid, 0xFFFFFFFF);
  100.                     case 4: SetPlayerColor(playerid, 0x000000C1);
  101.                     case 5: SetPlayerColor(playerid, 0x00FFFFFF);
  102.                     case 6: SetPlayerColor(playerid, 0xFFFF00FF);
  103.                     case 7: SetPlayerColor(playerid, 0xFF00FFFF);
  104.                     case 8: ShowPlayerDialog(playerid, Credite, DIALOG_STYLE_MSGBOX, "{FFFFFF}Color Menu {0000FF}Credits", "{FFFFFF}•Realizat de {008000}[RRS]ElectroX\n{FFFFFF}•Testat de {008000}[XSS]Skull\n{FFFFFF}•Multumiri Speciale:{008000}[RNG]DuReX {FFFFFF}si {008000}SA-MP.COM!\n{FFFFFF}•Multumim ca ati citit creditele {008000}ColorMenu", "•OK", "•Iesire");
  105.                 }
  106.                 }
  107.             }
  108.     return 1;
  109. }
  110. //=============================FINAL===================================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement