Advertisement
BolivaRevolutioN

[FilterScript] bNeon

Sep 20th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 KB | None | 0 0
  1. //////////////////////////////////////////////////////////////////////////////////////////////////////////////
  2.  
  3. // bNeon - By: Boliva
  4.  
  5. //////////////////////////////////////////////////////////////////////////////////////////////////////////////
  6. #define FILTERSCRIPT
  7.  
  8.  
  9. #include <a_samp>
  10. #include streamer
  11.  
  12. #if defined FILTERSCRIPT
  13.  
  14. #define DIALOG_NEON 532
  15. #define COR_BRANCA 0xFFFFFFAA
  16.  
  17.  
  18. public OnFilterScriptInit()
  19. {
  20. print("\n-------------------------------------------------------");
  21. print(" SISTEMA DE NEON BY: Boliva RevolutioN && Rodrigo GomeS");
  22. print("---------------------------------------------------------\n");
  23. return 1;
  24. }
  25.  
  26. public OnPlayerConnect(playerid)
  27. {
  28. SendClientMessage(playerid, 0xFFFFFFAA, "Este Servidor contem um FS (Sistema de Neon) Feito por Boliva RevolutioN");
  29. return 1;
  30. }
  31. #else
  32. public OnPlayerCommandText(playerid, cmdtext[])
  33. {
  34. if (strcmp("/colocarneon", cmdtext, true, 10) == 0)
  35. {
  36.  
  37.  
  38. if(IsPlayerInAnyVehicle(playerid))
  39. {
  40.  
  41. ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon by Boliva & Rodrigo", "Vermelho\nAzul\nVerde\nAmarelo\nRosa\nBranco", "Selecionar", "Sair");
  42. }
  43. else
  44. {
  45.  
  46.  
  47. SendClientMessage(playerid, COR_BRANCA, " Voce presisa estar em um veiculo para colocar um Neon !!");
  48. }
  49. return 1;
  50. }
  51. if(strcmp("/creditosneon", cmdtext, true, 10) == 0)
  52. {
  53. SendClientMessage(playerid, 0x00FFFFAA, "Creditos a Boliva RevolutioN pelo Sistema de Neon \nRodrigo Gomes pelo Destruir Neon (Ultima opcao do dialog)");
  54. return 1;
  55. }
  56.  
  57. return 0;
  58. }
  59. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  60. {
  61. if(dialogid == DIALOG_NEON)
  62. {
  63. if(response)
  64. {
  65. if(listitem == 0)
  66. {
  67. // Vermelho //
  68. SetPVarInt(playerid, "Neon", 1);
  69. SetPVarInt(playerid, "Vermelho", CreateObject(18647,0,0,0,0,0,0));
  70. SetPVarInt(playerid, "Vermelhoo", CreateObject(18647,0,0,0,0,0,0));
  71. AttachObjectToVehicle(GetPVarInt(playerid, "Vermelho"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  72. AttachObjectToVehicle(GetPVarInt(playerid, "Vermelhoo"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  73. SendClientMessage(playerid, 0xFFFFFFAA, "Voce adicionou Neon Vermelho no veiculo !!");
  74. }
  75. if(listitem == 1)
  76. {
  77. // Azul //
  78. SetPVarInt(playerid, "Neon", 1);
  79. SetPVarInt(playerid, "Azul", CreateObject(18648,0,0,0,0,0,0));
  80. SetPVarInt(playerid, "Azull", CreateObject(18648,0,0,0,0,0,0));
  81. AttachObjectToVehicle(GetPVarInt(playerid, "Azul"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  82. AttachObjectToVehicle(GetPVarInt(playerid, "Azull"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  83. SendClientMessage(playerid, 0xFFFFFFAA, "Voce adicionou Neon Azul no veiculo !!");
  84. }
  85. if(listitem == 2)
  86. {
  87. // Verde //
  88. SetPVarInt(playerid, "Neon", 1);
  89. SetPVarInt(playerid, "Verde", CreateObject(18649,0,0,0,0,0,0));
  90. SetPVarInt(playerid, "Verdee", CreateObject(18649,0,0,0,0,0,0));
  91. AttachObjectToVehicle(GetPVarInt(playerid, "Verde"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  92. AttachObjectToVehicle(GetPVarInt(playerid, "Verdee"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  93. SendClientMessage(playerid, 0xFFFFFFAA, "Voce adicionou Neon Verde no veiculo !!");
  94. }
  95. if(listitem == 3)
  96. {
  97. // Amarelo //
  98. SetPVarInt(playerid, "Neon", 1);
  99. SetPVarInt(playerid, "Amarelo", CreateObject(18650,0,0,0,0,0,0));
  100. SetPVarInt(playerid, "Amareloo", CreateObject(18650,0,0,0,0,0,0));
  101. AttachObjectToVehicle(GetPVarInt(playerid, "Amarelo"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  102. AttachObjectToVehicle(GetPVarInt(playerid, "Amareloo"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  103. SendClientMessage(playerid, 0xFFFFFFAA, "Voce adicionou Neon Amarelo no veiculo !!");
  104. }
  105. if(listitem == 4)
  106. {
  107. // Rosa //
  108. SetPVarInt(playerid, "Neon", 1);
  109. SetPVarInt(playerid, "Rosa", CreateObject(18651,0,0,0,0,0,0));
  110. SetPVarInt(playerid, "Rosaa", CreateObject(18651,0,0,0,0,0,0));
  111. AttachObjectToVehicle(GetPVarInt(playerid, "Rosa"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  112. AttachObjectToVehicle(GetPVarInt(playerid, "Rosaa"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  113. SendClientMessage(playerid, 0xFFFFFFAA, "Voce adicionou Neon Rosa no veiculo !!");
  114. }
  115. if(listitem == 5)
  116. {
  117. // Branco //
  118. SetPVarInt(playerid, "Neon", 1);
  119. SetPVarInt(playerid, "Branco", CreateObject(18652,0,0,0,0,0,0));
  120. SetPVarInt(playerid, "Brancoo", CreateObject(18652,0,0,0,0,0,0));
  121. AttachObjectToVehicle(GetPVarInt(playerid, "Branco"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  122. AttachObjectToVehicle(GetPVarInt(playerid, "Brancoo"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  123. SendClientMessage(playerid, 0xFFFFFFAA, "Voce adicionou Neon Branco no veiculo !!");
  124. }
  125. }
  126. }
  127. return 1;
  128. }
  129. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement