Advertisement
Guest User

Untitled

a guest
Sep 11th, 2019
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.13 KB | None | 0 0
  1. switch(dialogid)
  2. {
  3. case D_TELEFONO: // /telefono
  4. {
  5. if(response == 1)
  6. {
  7. new params[1];
  8. switch(listitem)
  9. {
  10. case 0: cmd_togphone(playerid, params[0]);
  11. case 1: ShowPlayerDialog(playerid, D_TELEFONOLLAMAR, DIALOG_STYLE_INPUT, "Teléfono - Llamar", "Ingresa el numero de teléfono que quieras llamar", "Llamar", "Cancelar");
  12. case 2: ShowPlayerDialog(playerid, D_TELEFONOMENSAJE,DIALOG_STYLE_INPUT, "Teléfono - Enviar mensaje", "Ingresa el numero de teléfono al que quieras enviarle un mensaje", "Escribir", "Cancelar");
  13. case 3: ShowPlayerDialog(playerid, D_TELEFONOSERVICIOS,DIALOG_STYLE_LIST, "Teléfono - Servicios municipales", "Policía\nBomberos\nEmergencias medicas", "Llamar", "Cancelar");
  14. case 4: ShowPlayerDialog(playerid, D_TELEFONOAPLICACIONES,DIALOG_STYLE_LIST, "Teléfono - Aplicaciones", ""NOMBRE_MECANICOS" - Taller mecánico\nCabify\nEl Trece TV", "Elegir", "Cancelar");
  15. }
  16. }
  17. else Me(playerid, "guarda su teléfono.");
  18. }
  19. case D_TELEFONOAPAGADO:
  20. {
  21. if(response == 1)
  22. {
  23. PhoneOnline[playerid] = 0;
  24. CreateBox(playerid, " Encendiste tu teléfono~n~ Utiliza /telefono para interactuar con el");
  25. Me(playerid, "enciende su teléfono.");
  26. }
  27. else Me(playerid, "guarda su teléfono.");
  28. }
  29. case D_TELEFONOAPLICACIONES:
  30. {
  31. if(response)
  32. {
  33. switch(listitem)
  34. {
  35. case 0: ShowPlayerDialog(playerid, D_TELEFONOMECANICOS,DIALOG_STYLE_LIST, "Teléfono - Aplicaciones - "NOMBRE_MECANICOS"", "Pedido de auxilio\nContacto\nPresupuesto", "Elegir", "Salir");
  36. case 1:
  37. {
  38. switch(EsCabify[playerid])
  39. {
  40. case 0: ShowPlayerDialog(playerid, D_TELEFONOCABIFY,DIALOG_STYLE_LIST, "Teléfono - Aplicaciones - Cabify", "Solicitar al chófer mas cercano\nElegir chófer\nUnirse al programa de chóferes", "Elegir", "Salir");
  41. case 1: ShowPlayerDialog(playerid, D_TELEFONOCABIFY,DIALOG_STYLE_LIST, "Teléfono - Aplicaciones - Cabify", "Solicitar al chófer mas cercano\nElegir chófer\nSalir del programa de chóferes", "Elegir", "Salir");
  42. }
  43. }
  44. case 2:
  45. {
  46. ShowPlayerDialog(playerid, D_TELEFONOLSTV, DIALOG_STYLE_LIST, "Teléfono - Aplicaciones - El trece TV", "Llamar a la linea en vivo\nDejar noticia a la operadora", "Elegir", "Salir");
  47. }
  48. }
  49. }
  50. else Me(playerid, "guarda su teléfono.");
  51. }
  52. case D_TELEFONOMECANICOS:
  53. {
  54. if(response)
  55. {
  56. switch(listitem)
  57. {
  58. case 0:
  59. {
  60. switch(Mechanics)
  61. {
  62. case 0:
  63. {
  64. CreateBox(playerid, ""NOMBRE_MECANICOS" no tiene personal disponible en este momento~n~Por favor intenta mas tarde");
  65. }
  66. default:
  67. {// Tel - Apps -Mecas - auxilio
  68. va_CreateBox(playerid, "Solicitaste un servicio de auxilio a los mecánicos~n~Mecánicos disponibles: %d~n~~n~Espera a ser atendido", Mechanics);
  69. va_SendFamilyMessage(6, TEAM_AZTECAS_COLOR, "** %s necesita un mecánico - usa /aceptar auxilio para aceptar la llamada.", GetPlayerNameEx(playerid));
  70. va_SendFamilyBox(6, "%s ha solicitado servicio de auxilio~n~Utiliza /aceptar auxilio", GetPlayerNameEx(playerid));
  71. MechanicCall = playerid;
  72. Info[playerid][pServiceTime] = 30;
  73. return 1;
  74. }
  75. }
  76. }
  77. case 1:
  78. {// Mecanicos en linea
  79. new stringo[MAX_PLAYER_NAME+25*20];
  80. foreach(new MecanicoX : Mecanicos)
  81. {
  82. format(stringo, sizeof(stringo), "%s\n%s\t(%d)", stringo, GetPlayerNameEx(MecanicoX), Info[MecanicoX][pNumeroTelefono]);
  83. }
  84. ShowPlayerDialog(playerid, D_TELEFONOMECANICOSDISPONIBLES, DIALOG_STYLE_LIST, "Teléfono - Aplicaciones - "NOMBRE_MECANICOS"", stringo, "Llamar", "Salir");
  85. }
  86. case 2: // PRESUPUESTOs
  87. {
  88. new stringo[144] = "Que tal, quisiera solicitar un presupuesto... Espero respuesta para ser atendido.";
  89. foreach(new MecanicoX : Mecanicos)
  90. {
  91. cmd_sms(MecanicoX, stringo);
  92. }
  93.  
  94. }
  95. }
  96. }
  97. else Me(playerid, "guarda su teléfono.");
  98. }
  99. case D_TELEFONOMECANICOSDISPONIBLES:
  100. {
  101. if(response)
  102. {
  103. new numero[15];
  104. foreach(new MecanicoX : Mecanicos)
  105. {
  106. if(listitem == MecanicoX)
  107. {
  108. format(numero, 15, "%d", Info[MecanicoX][pNumeroTelefono]);
  109. va_CreateBox(MecanicoX, "El jugador %s te solicita mediante la aplicación "NOMBRE_MECANICOS"", GetPlayerNameEx(playerid));
  110. cmd_llamar(playerid, numero);
  111. }
  112. }
  113. }
  114. else Me(playerid, "guarda su teléfono");
  115. }
  116. case D_TELEFONOCABIFY:
  117. {
  118. if(response)
  119. {
  120. new params[1];
  121. switch(listitem)
  122. {
  123. case 0: //
  124. {
  125. new CabifyCercano = GetClosestCabifyToPlayer(playerid);
  126. if(Iter_Count(Tacheros) == 0) return ShowPlayerDialog(playerid, INVALID_DIALOG, DIALOG_STYLE_MSGBOX, "Teléfono - Aplicaciones - Cabify - Buscar conductor", "\n¡No hay conductores disponibles!\n\nFavor de intentar nuevamente mas tarde", "Aceptar", "Salir");
  127. va_CreateBox(playerid, "Contactando con el chófer %s~n~Espera por si te responde", GetPlayerNameEx(playerid));
  128. va_CreateBox(playerid, "¡Tienes un nuevo cliente a la espera!~n~Utiliza /aceptar viaje", GetPlayerNameEx(playerid));
  129. va_SendClientMessage(CabifyCercano, -1, "El cliente %s(TLF:%d) esta solicitando tu servicio como conductor privado, ¿deseas asistirlo?.", GetPlayerNameEx(playerid), Info[playerid][pNumeroTelefono]);
  130. LlamoCabifyUSER[CabifyCercano] = playerid;
  131. GetPlayerPos(playerid, LlamoCabify[CabifyCercano][0], LlamoCabify[CabifyCercano][1], LlamoCabify[CabifyCercano][2]);
  132.  
  133. }
  134. case 1:
  135. {
  136. if(Iter_Count(Tacheros) == 0) return ShowPlayerDialog(playerid, INVALID_DIALOG, DIALOG_STYLE_MSGBOX, "Teléfono - Aplicaciones - Cabify - Buscar conductor", "\n¡No hay conductores disponibles!\n\nFavor de intentar nuevamente mas tarde", "Aceptar", "Salir");
  137. new vstring[24*25];
  138. foreach(new t : Tacheros)
  139. {
  140. format(vstring, sizeof(vstring), "%s\n%s (ID: %d)", vstring, GetPlayerNameEx(t), t);
  141. }
  142. ShowPlayerDialog(playerid, D_TELEFONOCABIFYONS, DIALOG_STYLE_LIST, "Teléfono - Aplicaciones - Cabify - Buscar conductor", vstring, "Llamar", "Salir");
  143. }
  144. case 2: cmd_togcabify(playerid, params[0]);
  145. }
  146. }
  147. else Me(playerid, "guarda su teléfono.");
  148. }
  149. case D_TELEFONOCABIFYONS:
  150. {
  151.  
  152. if(response == 1)
  153. {
  154.  
  155. foreach(new CabifyCercano : Tacheros)
  156. {
  157. if(listitem == CabifyCercano)
  158. {
  159. if(CabifyCercano == INVALID_PLAYER_ID) return ShowPlayerDialog(playerid, INVALID_DIALOG, DIALOG_STYLE_MSGBOX, "Teléfono - Aplicaciones - Cabify - Buscar conductor", "\n¡No hay conductores disponibles!\n\nFavor de intentar nuevamente mas tarde", "Aceptar", "Salir");
  160. va_CreateBox(playerid, "Contactando con el chófer %s~n~Espera por si te responde", GetPlayerNameEx(playerid));
  161. va_CreateBox(playerid, "¡Tienes un nuevo cliente a la espera!~n~Utiliza /aceptar viaje", GetPlayerNameEx(playerid));
  162. va_SendClientMessage(CabifyCercano, -1, "El cliente %s(TLF:%d) esta solicitando tu servicio como conductor privado, ¿deseas asistirlo?.", GetPlayerNameEx(playerid), Info[playerid][pNumeroTelefono]);
  163. LlamoCabifyUSER[CabifyCercano] = playerid;
  164. GetPlayerPos(playerid, LlamoCabify[CabifyCercano][0], LlamoCabify[CabifyCercano][1], LlamoCabify[CabifyCercano][2]);
  165. }
  166. }
  167. }
  168. else Me(playerid, "guarda su teléfono.");
  169. }
  170. case D_TELEFONOLSTV:
  171. {
  172. if(response)
  173. {
  174. switch(listitem)
  175. {
  176. case 0:
  177. {
  178. if(InLive == 0) return SendClientMessageEx(playerid, COLOR_WHITE, "En este momento la línea está fuera de servicio u ocupada.");
  179. InLive = 0;
  180. Mobile[playerid] = 758;
  181. CreateBox(playerid, "Usa T para dialogar con la linea de TV");
  182. format(string,128,"Llamada entrante: Nombre: %s - Número: %d. (Para rechazar llamada usa /sacarlinea).", GetPlayerNameEx(playerid), Info[playerid][pNumeroTelefono]);
  183. SendFamilyMessage(5, COLOR_YELLOW, string);
  184. SetPlayerAttachedObject(playerid, 9, 330, 6); // 4 = attachment slot, 330 = cellphone model, 6 = right hand
  185. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
  186. SendClientMessageEx(playerid, COLOR_WHITE, "LSTV: Hola, estás en línea, desde este momento puedes hablar.");
  187. }
  188. case 1:
  189. {
  190. CreateBox(playerid, "Contactando con operadora...~n~Usa T para escribir la noticia");
  191. SendClientMessageEx(playerid, COLOR_WHITE, "Operador: Bienvenido. ¿Tiene alguna noticia, quiere participar?");
  192. SendClientMessageEx(playerid, COLOR_WHITE, "Operador: Déjenos un mensaje después de la señal, ¡hasta la vista!");
  193. SendClientMessageEx(playerid, COLOR_WHITE, "¡Biiip!");
  194. Mobile[playerid] = 3901;
  195. }
  196. }
  197. }
  198. else Me(playerid, "guarda su teléfono.");
  199. }
  200. case D_TELEFONOLLAMAR:
  201. {
  202. if(response == 1)
  203. {
  204. if(isnull(inputtext)) return ShowPlayerDialog(playerid, D_TELEFONOLLAMAR,DIALOG_STYLE_INPUT, "Teléfono - Llamar", "Ingresa el numero de teléfono que quieras llamar", "Llamar", "Cancelar");
  205. if(strlen(inputtext) > 127) return ShowPlayerDialog(playerid, D_TELEFONOLLAMAR,DIALOG_STYLE_INPUT, "Teléfono - Llamar", "¡Numero muy largo!", "Llamar", "Cancelar");
  206.  
  207. if(Mobile[playerid] != INVALID_PLAYER_ID) return ShowPlayerDialog(playerid, D_TELEFONOLLAMAR,DIALOG_STYLE_INPUT, "Teléfono - Llamar", " ¡El numero ya se encuentra en una llamada!", "Llamar", "Cancelar");
  208. if(PlayerToPoint(800, playerid, -2316.0547, -1642.5262, 482.6907))
  209. {
  210. format(string, sizeof(string), "* %s marca un numero en su teléfono.", GetPlayerNameEx(playerid));
  211. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  212. PlayerPlaySound(playerid, 3600, 0, 0, 0);
  213. SendClientMessageEx(playerid, COLOR_ALLDEPT, "Teléfono: No dispone de cobertura en este lugar, disculpe las molestias.");
  214. return 1;
  215. }
  216. format(string, sizeof(string), "* %s marca un numero en su teléfono.", GetPlayerNameEx(playerid));
  217. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  218. PlayerPlaySound(playerid, 3600, 0, 0, 0);
  219. new numero = strval(inputtext);
  220. if(numero == 911)
  221. {
  222. SetPlayerAttachedObject(playerid, 9, 330, 6);
  223. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
  224. SendClientMessageEx(playerid, COLOR_WHITE, "{FF8000}[INDICACION]:{FFFFFF} Ahora usa T, y habla por el chat por teléfono, usa /colgar para finalizar la llamada.");
  225. SendClientMessageEx(playerid, COLOR_ALLDEPT, "Central: Que servicio desea? Policía o Paramédico?");
  226. Mobile[playerid] = 911;
  227. return 1;
  228. }
  229. if(strval(inputtext) == 757){
  230. if(InLive == 0) return SendClientMessageEx(playerid, COLOR_WHITE, "En este momento la línea está fuera de servicio u ocupada.");
  231. InLive = 0;
  232. Mobile[playerid] = 758;
  233. format(string,128,"Llamada entrante: Nombre: %s - Número: %d. (Para rechazar llamada usa /sacarlinea).", GetPlayerNameEx(playerid), Info[playerid][pNumeroTelefono]);
  234. SendFamilyMessage(5, COLOR_YELLOW, string);
  235. SetPlayerAttachedObject(playerid, 9, 330, 6); // 4 = attachment slot, 330 = cellphone model, 6 = right hand
  236. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
  237. SendClientMessageEx(playerid, COLOR_WHITE, "LSTV: Hola, estás en línea, desde este momento puedes hablar.");
  238. return 1;
  239. }
  240. else if(strval(inputtext) == 3900){
  241. SendClientMessageEx(playerid, COLOR_WHITE, "Operador: Bienvenido. ¿Tiene algúna noticia, quiere participar?");
  242. SendClientMessageEx(playerid, COLOR_WHITE, "Operador: Déjenos un mensaje después de la señal, ¡hasta la vista!");
  243. SendClientMessageEx(playerid, COLOR_WHITE, "Biiip!");
  244. return Mobile[playerid] = 3901;
  245. }
  246. if(strval(inputtext) == Info[playerid][pNumeroTelefono]) return SendClientMessageEx(playerid, COLOR_WHITE, " Está ocupado.");
  247. foreach(new i : Player){
  248. if(Info[i][pNumeroTelefono] == strval(inputtext) && strval(inputtext) != 0){
  249. new giveplayerid = i;
  250. Mobile[playerid] = giveplayerid;
  251. if(IsPlayerConnected(giveplayerid)){
  252. if(giveplayerid != INVALID_PLAYER_ID){
  253. if(GetPVarInt(giveplayerid, "IsInArena") == 1) return SendClientMessageEx(playerid, COLOR_WHITE, "El jugador está en el paintball arena no puede recibir llamadas.");
  254. if(PhoneOnline[giveplayerid] > 0){
  255. SendClientMessageEx(playerid, COLOR_WHITE, "Tono a apagado.");
  256. Mobile[playerid] = INVALID_PLAYER_ID;
  257. return 1;
  258. }
  259. if(Mobile[giveplayerid] != INVALID_PLAYER_ID){
  260. SendClientMessageEx(playerid, COLOR_WHITE, "Tono a ocupado.");
  261. Mobile[playerid] = INVALID_PLAYER_ID;
  262. return 1;
  263. }
  264. if (Mobile[giveplayerid] == INVALID_PLAYER_ID){
  265. SetPlayerAttachedObject(playerid, 9, 330, 6); // 4 = attachment slot, 330 = cellphone model, 6 = right hand
  266. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
  267.  
  268. if(UnidentifedCall[playerid] == 1) // Número Oculto.
  269. {
  270. SendClientMessageEx(giveplayerid, COLOR_YELLOW, "Tu teléfono está sonando - Usa /contestar para atender la llamada. [Número Oculto]");}
  271. else // Nombre.
  272. {
  273.  
  274. format(string, sizeof(string), "Tu telefono está sonando - Usa /contestar para atender la llamada. [Tel: %d]", Info[playerid][pNumeroTelefono]);
  275. SendClientMessageEx(giveplayerid, COLOR_YELLOW, string);
  276. }
  277. format(string, sizeof(string), "* Teléfono de %s suena.", GetPlayerNameEx(i));
  278. SendClientMessageEx(playerid, COLOR_WHITE, "{FF8000}[INDICACION]:{FFFFFF} Ahora usa T, y habla por el chat por teléfono.");
  279. ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  280. CellTime[playerid] = 1;
  281. return 1;
  282. }
  283. }
  284. }
  285. }
  286. }
  287. SendClientMessageEx(playerid, COLOR_WHITE, "Su llamada no puede darse por el numero marcado, por favor, compruebe el número e inténtelo nuevamente.");
  288.  
  289. }
  290. else Me(playerid, "guarda su teléfono.");
  291. }
  292. case D_TELEFONOSERVICIOS:
  293. {
  294. if(response == 1)
  295. {
  296. switch(listitem)
  297. {
  298. case 0:
  299. {
  300. if(Mobile[playerid] != INVALID_PLAYER_ID) return SendClientMessageEx(playerid, COLOR_WHITE, " Ya se encuentra en una llamada.");
  301. if(PlayerToPoint(800, playerid, -2316.0547, -1642.5262, 482.6907))
  302. {
  303.  
  304. format(string, sizeof(string), "* %s marca en su teléfono.", GetPlayerNameEx(playerid));
  305. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  306. PlayerPlaySound(playerid, 3600, 0, 0, 0);
  307. SendClientMessageEx(playerid, COLOR_ALLDEPT, "Teléfono: No dispone de cobertura en este lugar, disculpe las molestias.");
  308. return 1;
  309. }
  310. format(string, sizeof(string), "* %s marca en su teléfono.", GetPlayerNameEx(playerid));
  311. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  312. PlayerPlaySound(playerid, 3600, 0, 0, 0);
  313. SetPlayerAttachedObject(playerid, 9, 330, 6);
  314. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
  315. CreateBox(playerid, "[INDICACION]: Ahora usa T, y habla por el chat por teléfono, usa /colgar para finalizar la llamada.");
  316. SendClientMessageEx(playerid, COLOR_WHITE, "--> Conexión establecida con LSPD.");
  317. SendClientMessageEx(playerid, COLOR_GRAD2, "Central: Explique brevemente lo ocurrido.");
  318. Mobile[playerid] = 912;
  319. }
  320. case 1:
  321. {
  322. CreateBox(playerid, "[INDICACION]: Ahora usa T, y habla por el chat por teléfono, usa /colgar para finalizar la llamada.");
  323. SendClientMessageEx(playerid, COLOR_WHITE, "--> Conexión establecida con S.E.C");
  324. SendClientMessageEx(playerid, COLOR_GRAD2, "Central: Explique brevemente los detalles del accidente.");
  325. Mobile[playerid] = 914;
  326. }
  327. case 2:
  328. {
  329. CreateBox(playerid, "[INDICACION]: Ahora usa T, y habla por el chat por teléfono, usa /colgar para finalizar la llamada.");
  330. SendClientMessageEx(playerid, COLOR_WHITE, "--> Conexión establecida con S.E.C");
  331. SendClientMessageEx(playerid, COLOR_GRAD2, "Central: Explique brevemente los detalles del accidente.");
  332. Mobile[playerid] = 914;
  333. }
  334. }
  335. }
  336. else Me(playerid, "guarda su teléfono.");
  337. }
  338. case D_TELEFONOMENSAJE:
  339. {
  340. if(response)
  341. {
  342. if(Info[playerid][pEstado] != 0) return SendClientMessageEx(playerid, COLOR_WHITE, "No puedes hacer esto ahora.");
  343. if(isnull(inputtext)) return ShowPlayerDialog(playerid, D_TELEFONOMENSAJE,DIALOG_STYLE_INPUT, "Teléfono - Mensaje", "Ingresa el numero de teléfono que quieras mensajear", "Elegir", "Cancelar");
  344. if(strlen(inputtext) > 127) return ShowPlayerDialog(playerid, D_TELEFONOMENSAJE,DIALOG_STYLE_INPUT, "Teléfono - Enviar mensaje", "¡Numero muy largo!", "Escribir", "Cancelar");
  345. D_TELEFONOMENSAJE2VAR[playerid] = strval(inputtext);
  346. ShowPlayerDialog(playerid, D_TELEFONOMENSAJEF,DIALOG_STYLE_INPUT, "Teléfono - Mensaje", "Escribe un mensaje a enviar.", "Elegir", "Salir");
  347. }
  348. else Me(playerid, "guarda su teléfono.");
  349. }
  350. case D_TELEFONOMENSAJEF:
  351. {
  352. if(response)
  353. {
  354. new phonenumb = D_TELEFONOMENSAJE2VAR[playerid], text[128];
  355. if(isnull(inputtext)) return ShowPlayerDialog(playerid, D_TELEFONOMENSAJE,DIALOG_STYLE_INPUT, "Teléfono - Mensaje", "Ingresa el numero de teléfono que quieras mensajear", "Elegir", "Cancelar");
  356. if(strlen(inputtext) > 110) return ShowPlayerDialog(playerid, D_TELEFONOMENSAJEF,DIALOG_STYLE_INPUT, "Teléfono - Enviar mensaje", "¡Mensaje muy largo!", "Escribir", "Cancelar");
  357. foreach(new i : Player)
  358. {
  359. if(Info[i][pNumeroTelefono] == phonenumb && phonenumb != 0)
  360. {
  361. new giveplayerid = i;
  362. if(Mobile[giveplayerid] != INVALID_PLAYER_ID) return SendClientMessageEx(playerid, COLOR_WHITE, "Ese jugador está en una llamada.");
  363. Mobile[playerid] = giveplayerid;
  364. if(IsPlayerConnected(giveplayerid)){
  365. if(giveplayerid != INVALID_PLAYER_ID){
  366. if(PhoneOnline[giveplayerid] > 0) return SendClientMessageEx(playerid, COLOR_WHITE, "Ese jugador tiene el teléfono apagado.");
  367. if(UnidentifedCall[playerid] == 1)
  368. {
  369.  
  370. format(string, sizeof(string), "SMS: %s, de: Numero Privado.", text,GetPlayerNameEx(playerid),Info[playerid][pNumeroTelefono]);
  371. }
  372. else
  373. {
  374.  
  375. format(string, sizeof(string), "SMS: %s, de: %s (%d)", text,GetPlayerNameEx(playerid),Info[playerid][pNumeroTelefono]);
  376. }
  377. SendClientMessageEx(giveplayerid, COLOR_YELLOW, string);
  378. SendClientMessageEx(playerid, COLOR_YELLOW, string);
  379. CreateBox(playerid, "Mensaje de Texto Enviado.");
  380. GameTextForPlayer(playerid, "~r~$-25", 5000, 1);
  381. GivePlayerCash(playerid,-25);
  382. PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  383. Mobile[playerid] = INVALID_PLAYER_ID;
  384. for(new n = 0; n < MAX_PLAYERS; n++) // A cada user conectado.
  385. {
  386.  
  387. if(Info[n][pAdminZC] >= 3) // Admins 6000 0 mayor.
  388. {
  389.  
  390. if(See_SMS[n] == 1) // Estos admins pueden ver los MP.
  391. {
  392.  
  393. format(string, sizeof(string), "(SMS Admin): %s(%d) envia a %s(%d) el mensaje: %s", GetPlayerNameEx(playerid), playerid, GetPlayerNameEx(giveplayerid), giveplayerid, text);
  394. SendClientMessage(n, 0xFFF700A8, string);
  395. }
  396. }
  397. }
  398. if(strcmp(Info[giveplayerid][pAutoTextReply], "Nada", true) != 0)
  399. {
  400.  
  401. format(string, sizeof(string), "SMS: %s, Destinatario: %s [Auto Respuesta] (%d)", Info[giveplayerid][pAutoTextReply], GetPlayerNameEx(giveplayerid), Info[giveplayerid][pNumeroTelefono]);
  402. SendClientMessageEx(playerid, COLOR_YELLOW, string);
  403. }
  404. D_TELEFONOMENSAJE2VAR[playerid] = -1;
  405. return 1;
  406. }
  407. }
  408. }
  409. }
  410. SendClientMessageEx(playerid, COLOR_WHITE, "Envio de mensaje falló.");
  411. }
  412. else Me(playerid, "guarda su teléfono.");
  413. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement