Advertisement
Brian9985

votarmap

Dec 22nd, 2012
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.19 KB | None | 0 0
  1. !vsm
  2. !vr
  3. !lista
  4. !vm
  5. !cmds
  6.  
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Threading;
  10. using Addon;
  11.  
  12. namespace mw3_votemap
  13. {
  14. public class Votemap : CPlugin
  15. {
  16. string map_name;
  17. string mapname;
  18. Vote vote;
  19. int Interval;
  20. int VoteTime;
  21. int votemsginterval;
  22. List<int> validPN;
  23. int Vtime;
  24. int successpercent;
  25.  
  26. public override void OnServerFrame()
  27. {
  28. if (Interval > 0)
  29. Interval--;
  30.  
  31. if (VoteTime > 0 && vote.InProgress)
  32. {
  33. if (VoteTime % votemsginterval == 0)
  34. {
  35. validPN = new List<int>();
  36.  
  37. foreach (ServerClient player in GetClients())
  38. {
  39. if (player.Ping < 999 && player.Ping > 0)
  40. {
  41. validPN.Add(player.ClientNum);
  42. }
  43. }
  44.  
  45. if (validPN.Count == 0)
  46. {
  47. vote.votenext = false;
  48. vote.votemaprestart = false;
  49. vote.votemap = false;
  50. vote.InProgress = false;
  51. }
  52.  
  53. foreach (ServerClient player in GetClients())
  54. {
  55. if (vote.votemaprestart)
  56. {
  57. //TellClient(player.ClientNum, "^1(" + VoteTime / 50 + "s) ^2" + player.Name + " ^5llamado a votar pora ^3Reiniciar Mapa. ^5Escribe en el chat: ^6!s ^5O ^6!n ^5Para Votar [^3Necesarios " + Math.Ceiling(validPN.Count * 1.6) + " ^2Si " + vote.Agree.Count + " ^1No " + (vote.Against.Count) + "]", true);
  58. iPrintLnBold("^1(" + VoteTime / 50 + "s)^5Reiniciar Mapa^5? ^3Escribe en el chat: ^6!s ^5O ^6!n ^5Para Votar [^3Nesesarios " + Math.Ceiling(validPN.Count * successpercent * 1.06) + " ^2S " + vote.Agree.Count + " ^1N " + (vote.Against.Count) + "]", player);
  59. }
  60. if (vote.votenext)
  61. {
  62. //TellClient(player.ClientNum, "^1(" + VoteTime / 50 + "s) ^2" + player.Name + " ^5llamado a votar por Siguiente Mapa. ^5Escribe en el chat: ^6!s ^5O ^6!n ^5Para votar [^3Necesarios " + Math.Ceiling(validPN.Count * 1.6) + " ^2Si " + vote.Agree.Count + " ^1No " + (vote.Against.Count) + "]", true);
  63. iPrintLnBold("^1(" + VoteTime / 50 + "s)^5Ir a ^3Siguiente Mapa^5? ^3Escribe en el chat: ^6!s ^5O ^6!n ^5Para Votar [^3Nesesarios " + Math.Ceiling(validPN.Count * successpercent * 1.06) + " ^2S " + vote.Agree.Count + " ^1N " + (vote.Against.Count) + "]", player);
  64. }
  65. if (vote.votemap)
  66. {
  67. //TellClient(player.ClientNum, "^1(" + VoteTime / 50 + "s) ^2" + player.Name + " ^5Votar Por ^3<" + mapname + ">. ^5Escribe en el chat ^3!y ^5or ^3!n ^5Para Votar [^3Nesesarios " + Math.Ceiling(validPN.Count * 1.6) + " ^2Si " + vote.Agree.Count + " ^1No " + (vote.Against.Count) + "]", true);
  68. iPrintLnBold("^1(" + VoteTime / 50 + "s)^5Ir a ^3" + mapname + "^5? ^3Escribe en el chat: ^6!s ^5O ^6!n ^5Para Votar[^3Nesesarios " + Math.Ceiling(validPN.Count * successpercent * 1.06) + " ^2S " + vote.Agree.Count + " ^1N " + (vote.Against.Count) + "]", player);
  69. }
  70. }
  71. }
  72.  
  73. VoteTime--;
  74.  
  75. if (VoteTime == 0 && vote.InProgress)
  76. {
  77. if (vote.votemaprestart)
  78. {
  79. if ((Convert.ToDouble(vote.Agree.Count) / Convert.ToDouble(validPN.Count) * 100) >= successpercent)
  80. {
  81. ServerSay("^2SERVER:^3VOTO PASADO:^6Reinicio de Mapa", true);
  82. ServerCommand("fast_restart");
  83. }
  84. else
  85. ServerSay("^2SERVER:^3VOTO FALLIDO: ^1No hay suficientes jugadores de acuerdo para ^6REINICIAR MAPA.", true);
  86. }
  87. if (vote.votenext)
  88. {
  89. if ((Convert.ToDouble(vote.Agree.Count) / Convert.ToDouble(validPN.Count) * 100) >= successpercent)
  90. {
  91. ServerSay("^2SERVER:^3VOTO PASADO:^6Mapa Cambiado", true);
  92. ServerCommand("map_rotate");
  93. }
  94. else
  95. ServerSay("^2SERVER:^3VOTO FALLIDO: ^1No hay suficientes jugadores de acuerdo para ^6CAMBIAR MAPA.", true);
  96. }
  97.  
  98. if (vote.votemap)
  99. {
  100. if ((Convert.ToDouble(vote.Agree.Count) / Convert.ToDouble(validPN.Count) * 100) >= successpercent)
  101. {
  102. ServerSay("^2SERVER:^3VOTO PASADO:^6Mapa Cambiado", true);
  103. ServerCommand("map " + map_name);
  104. }
  105. else
  106. ServerSay("^2SERVER:^3VOTO FALLIDO: ^1No hay suficientes jugadores de acuerdo para ^6CAMBIAR MAPA.", true);
  107. }
  108.  
  109. ResetVars();
  110. }
  111. }
  112. }
  113.  
  114. public override void OnServerLoad()
  115. {
  116. ServerPrint("VotarMapa plugin Cargado...By:Brian9985");
  117. votemsginterval = Convert.ToInt32(GetServerCFG("VOTEMAP", "votemsginterval", "")) * 50;
  118. Vtime = Convert.ToInt32(GetServerCFG("VOTEMAP", "votetime", "")) * 50;
  119. successpercent = Convert.ToInt32(GetServerCFG("VOTEMAP", "successpercent", ""));
  120. }
  121.  
  122. public override ChatType OnSay(string Message, ServerClient Client)
  123. {
  124. string lowMsg = Message.ToLower();
  125.  
  126. if (lowMsg.Equals("!vsm"))
  127. {
  128. if (Interval > 0)
  129. {
  130. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! Espera... " + Interval / 50 + " seconds.", true);
  131. return ChatType.ChatNone;
  132. }
  133.  
  134. if (vote.InProgress)
  135. {
  136. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso...!", true);
  137. }
  138. else
  139. {
  140. vote.Agree = new List<string>();
  141. vote.Against = new List<string>();
  142. vote.InProgress = true;
  143. vote.votenext = true;
  144. VoteTime = Vtime;
  145. }
  146. return ChatType.ChatNone;
  147. }
  148.  
  149. else if (lowMsg.Equals("!s"))
  150. {
  151. if (!vote.InProgress)
  152. {
  153. TellClient(Client.ClientNum, "2SERVER:^3Actualmente no hay ningún voto en curso! Para iniciar un voto,Escribe en el chat ^6!vn ^3O ^6!vm(nombre corto).", true);
  154. }
  155. if (vote.InProgress)
  156. {
  157. if (!vote.Agree.Contains(Client.XUID) && !vote.Against.Contains(Client.XUID))
  158. {
  159. vote.Agree.Add(Client.XUID);
  160. ServerSay("^3" + Client.Name + " ^2Voto=^1<SI>", true);
  161. }
  162. else if (vote.Agree.Contains(Client.XUID) || vote.Against.Contains(Client.XUID))
  163. {
  164. TellClient(Client.ClientNum, "2SERVER:^3Usted ya votó!", true);
  165. }
  166. }
  167. return ChatType.ChatNone;
  168. }
  169.  
  170. else if (lowMsg.Equals("!n"))
  171. {
  172. if (!vote.InProgress)
  173. {
  174. TellClient(Client.ClientNum, "2SERVER:^3Actualmente no hay ningún voto en curso! Para iniciar un voto,Escribe en el chat ^6!vn ^3or ^6!vm(shortname).", true);
  175. }
  176. if (vote.InProgress)
  177. {
  178. if (!vote.Agree.Contains(Client.XUID) && !vote.Against.Contains(Client.XUID))
  179. {
  180. vote.Against.Add(Client.XUID);
  181. ServerSay("^3" + Client.Name + " ^2Voto=^1<NO>", true);
  182. }
  183. else if (vote.Agree.Contains(Client.XUID) || vote.Against.Contains(Client.XUID))
  184. {
  185. TellClient(Client.ClientNum, "2SERVER:^3Usted ya votó!", true);
  186. }
  187. }
  188. return ChatType.ChatNone;
  189. }
  190. else if (lowMsg.Equals("!lista"))
  191. {
  192. Thread shru = new Thread(showmaplist);
  193. shru.Start(Client);
  194. return ChatType.ChatNone;
  195. }
  196. else if (lowMsg.Equals("!vmun"))
  197. {
  198. if (Interval > 0)
  199. {
  200. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  201. return ChatType.ChatNone;
  202. }
  203. if (vote.InProgress)
  204. {
  205. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  206. }
  207. else
  208. {
  209. vote.Agree = new List<string>();
  210. vote.Against = new List<string>();
  211. vote.InProgress = true;
  212. vote.votemap = true;
  213. VoteTime = Vtime;
  214. mapname = "Underground";
  215. map_name = "mp_underground";
  216. }
  217. return ChatType.ChatNone;
  218. }
  219. else if (lowMsg.Equals("!vmou"))
  220. {
  221. if (Interval > 0)
  222. {
  223. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  224. return ChatType.ChatNone;
  225. }
  226. if (vote.InProgress)
  227. {
  228. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  229. }
  230. else
  231. {
  232. vote.Agree = new List<string>();
  233. vote.Against = new List<string>();
  234. vote.InProgress = true;
  235. vote.votemap = true;
  236. VoteTime = Vtime;
  237. mapname = "Outpost";
  238. map_name = "mp_radar";
  239. }
  240. return ChatType.ChatNone;
  241. }
  242. else if (lowMsg.Equals("!vmdo"))
  243. {
  244. if (Interval > 0)
  245. {
  246. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  247. return ChatType.ChatNone;
  248. }
  249. if (vote.InProgress)
  250. {
  251. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  252. }
  253. else
  254. {
  255. vote.Agree = new List<string>();
  256. vote.Against = new List<string>();
  257. vote.InProgress = true;
  258. vote.votemap = true;
  259. VoteTime = Vtime;
  260. mapname = "Dome";
  261. map_name = "mp_dome";
  262. }
  263. return ChatType.ChatNone;
  264. }
  265. else if (lowMsg.Equals("!vmre"))
  266. {
  267. if (Interval > 0)
  268. {
  269. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  270. return ChatType.ChatNone;
  271. }
  272. if (vote.InProgress)
  273. {
  274. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  275. }
  276. else
  277. {
  278. vote.Agree = new List<string>();
  279. vote.Against = new List<string>();
  280. vote.InProgress = true;
  281. vote.votemap = true;
  282. VoteTime = Vtime;
  283. mapname = "Resistance";
  284. map_name = "mp_paris";
  285. }
  286. return ChatType.ChatNone;
  287. }
  288. else if (lowMsg.Equals("!vmca"))
  289. {
  290. if (Interval > 0)
  291. {
  292. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  293. return ChatType.ChatNone;
  294. }
  295. if (vote.InProgress)
  296. {
  297. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  298. }
  299. else
  300. {
  301. vote.Agree = new List<string>();
  302. vote.Against = new List<string>();
  303. vote.InProgress = true;
  304. vote.votemap = true;
  305. VoteTime = Vtime;
  306. mapname = "Carbon";
  307. map_name = "mp_carbon";
  308. }
  309. return ChatType.ChatNone;
  310. }
  311. else if (lowMsg.Equals("!vmin"))
  312. {
  313. if (Interval > 0)
  314. {
  315. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  316. return ChatType.ChatNone;
  317. }
  318. if (vote.InProgress)
  319. {
  320. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  321. }
  322. else
  323. {
  324. vote.Agree = new List<string>();
  325. vote.Against = new List<string>();
  326. vote.InProgress = true;
  327. vote.votemap = true;
  328. VoteTime = Vtime;
  329. mapname = "Interchange";
  330. map_name = "mp_interchange";
  331. }
  332. return ChatType.ChatNone;
  333. }
  334. else if (lowMsg.Equals("!vmdt"))
  335. {
  336. if (Interval > 0)
  337. {
  338. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  339. return ChatType.ChatNone;
  340. }
  341. if (vote.InProgress)
  342. {
  343. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  344. }
  345. else
  346. {
  347. vote.Agree = new List<string>();
  348. vote.Against = new List<string>();
  349. vote.InProgress = true;
  350. vote.votemap = true;
  351. VoteTime = Vtime;
  352. mapname = "Downturn";
  353. map_name = "mp_exchange";
  354. }
  355. return ChatType.ChatNone;
  356. }
  357. else if (lowMsg.Equals("!vmar"))
  358. {
  359. if (Interval > 0)
  360. {
  361. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  362. return ChatType.ChatNone;
  363. }
  364. if (vote.InProgress)
  365. {
  366. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  367. }
  368. else
  369. {
  370. vote.Agree = new List<string>();
  371. vote.Against = new List<string>();
  372. vote.InProgress = true;
  373. vote.votemap = true;
  374. VoteTime = Vtime;
  375. mapname = "Arkaden";
  376. map_name = "mp_plaza2";
  377. }
  378. return ChatType.ChatNone;
  379. }
  380. else if (lowMsg.Equals("!vmlo"))
  381. {
  382. if (Interval > 0)
  383. {
  384. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  385. return ChatType.ChatNone;
  386. }
  387. if (vote.InProgress)
  388. {
  389. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  390. }
  391. else
  392. {
  393. vote.Agree = new List<string>();
  394. vote.Against = new List<string>();
  395. vote.InProgress = true;
  396. vote.votemap = true;
  397. VoteTime = Vtime;
  398. mapname = "Lockdown";
  399. map_name = "mp_alpha";
  400. }
  401. return ChatType.ChatNone;
  402. }
  403. else if (lowMsg.Equals("!vmmi"))
  404. {
  405. if (Interval > 0)
  406. {
  407. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  408. return ChatType.ChatNone;
  409. }
  410. if (vote.InProgress)
  411. {
  412. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  413. }
  414. else
  415. {
  416. vote.Agree = new List<string>();
  417. vote.Against = new List<string>();
  418. vote.InProgress = true;
  419. vote.votemap = true;
  420. VoteTime = Vtime;
  421. mapname = "Mission";
  422. map_name = "mp_bravo";
  423. }
  424. return ChatType.ChatNone;
  425. }
  426. else if (lowMsg.Equals("!vmse"))
  427. {
  428. if (Interval > 0)
  429. {
  430. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  431. return ChatType.ChatNone;
  432. }
  433. if (vote.InProgress)
  434. {
  435. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  436. }
  437. else
  438. {
  439. vote.Agree = new List<string>();
  440. vote.Against = new List<string>();
  441. vote.InProgress = true;
  442. vote.votemap = true;
  443. VoteTime = Vtime;
  444. mapname = "Seatown";
  445. map_name = "mp_seatown";
  446. }
  447. return ChatType.ChatNone;
  448. }
  449. else if (lowMsg.Equals("!vmbo"))
  450. {
  451. if (Interval > 0)
  452. {
  453. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  454. return ChatType.ChatNone;
  455. }
  456. if (vote.InProgress)
  457. {
  458. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  459. }
  460. else
  461. {
  462. vote.Agree = new List<string>();
  463. vote.Against = new List<string>();
  464. vote.InProgress = true;
  465. vote.votemap = true;
  466. VoteTime = Vtime;
  467. mapname = "Bootleg";
  468. map_name = "mp_bootleg";
  469. }
  470. return ChatType.ChatNone;
  471. }
  472. else if (lowMsg.Equals("!vmha"))
  473. {
  474. if (Interval > 0)
  475. {
  476. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  477. return ChatType.ChatNone;
  478. }
  479. if (vote.InProgress)
  480. {
  481. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  482. }
  483. else
  484. {
  485. vote.Agree = new List<string>();
  486. vote.Against = new List<string>();
  487. vote.InProgress = true;
  488. vote.votemap = true;
  489. VoteTime = Vtime;
  490. mapname = "Hardhat";
  491. map_name = "mp_hardhat";
  492. }
  493. return ChatType.ChatNone;
  494. }
  495. else if (lowMsg.Equals("!vmba"))
  496. {
  497. if (Interval > 0)
  498. {
  499. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  500. return ChatType.ChatNone;
  501. }
  502. if (vote.InProgress)
  503. {
  504. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  505. }
  506. else
  507. {
  508. vote.Agree = new List<string>();
  509. vote.Against = new List<string>();
  510. vote.InProgress = true;
  511. vote.votemap = true;
  512. VoteTime = Vtime;
  513. mapname = "Bakaara";
  514. map_name = "mp_mogadishu";
  515. }
  516. return ChatType.ChatNone;
  517. }
  518. else if (lowMsg.Equals("!vmvi"))
  519. {
  520. if (Interval > 0)
  521. {
  522. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  523. return ChatType.ChatNone;
  524. }
  525. if (vote.InProgress)
  526. {
  527. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  528. }
  529. else
  530. {
  531. vote.Agree = new List<string>();
  532. vote.Against = new List<string>();
  533. vote.InProgress = true;
  534. vote.votemap = true;
  535. VoteTime = Vtime;
  536. mapname = "Village";
  537. map_name = "mp_village";
  538. }
  539. return ChatType.ChatNone;
  540. }
  541. else if (lowMsg.Equals("!vmfa"))
  542. {
  543. if (Interval > 0)
  544. {
  545. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  546. return ChatType.ChatNone;
  547. }
  548. if (vote.InProgress)
  549. {
  550. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  551. }
  552. else
  553. {
  554. vote.Agree = new List<string>();
  555. vote.Against = new List<string>();
  556. vote.InProgress = true;
  557. vote.votemap = true;
  558. VoteTime = Vtime;
  559. mapname = "Fallen";
  560. map_name = "mp_lambeth";
  561. }
  562. return ChatType.ChatNone;
  563. }
  564. else if (lowMsg.Equals("!vfr"))
  565. {
  566. if (Interval > 0)
  567. {
  568. TellClient(Client.ClientNum, "2SERVER:^3No puedes empezar un voto ahora! espera... " + Interval / 50 + " seconds.", true);
  569. return ChatType.ChatNone;
  570. }
  571. if (vote.InProgress)
  572. {
  573. TellClient(Client.ClientNum, "2SERVER:^3Ya hay una votación en curso!", true);
  574. }
  575. else
  576. {
  577. vote.Agree = new List<string>();
  578. vote.Against = new List<string>();
  579. vote.InProgress = true;
  580. vote.votemaprestart = true;
  581. VoteTime = Vtime;
  582. }
  583. return ChatType.ChatNone;
  584. }
  585.  
  586. else if (lowMsg.Equals("!cvm"))
  587. {
  588. Thread shru = new Thread(showcmds);
  589. shru.Start(Client);
  590. return ChatType.ChatNone;
  591. }
  592. return ChatType.ChatContinue;
  593. }
  594.  
  595. public struct Vote
  596. {
  597. public bool InProgress;
  598. public ServerClient Client;
  599. public List<string> Agree;
  600. public List<string> Against;
  601. public bool votenext;
  602. public bool votemap;
  603. public bool votemaprestart;
  604. }
  605.  
  606. private void ResetVars()
  607. {
  608. //reset vars
  609. validPN.Clear();
  610. VoteTime = 0;
  611. vote.Agree.Clear();
  612. vote.Against.Clear();
  613. vote.InProgress = false;
  614. vote.votenext = false;
  615. vote.votemap = false;
  616. vote.votemaprestart = false;
  617.  
  618. //set cooldown timer
  619. Interval = Convert.ToInt32(GetServerCFG("VOTEMAP", "cooldown", "")) * 50;
  620. }
  621.  
  622. private void showcmds(object cli)
  623. {
  624. ServerClient Client = (ServerClient)cli;
  625. TellClient(Client.ClientNum, "^2SERVER:^3!vfr ^5=^2Votar para ^6Reinciar Mapa ", true);
  626. Thread.Sleep(5000);
  627. TellClient(Client.ClientNum, "^2SERVER:3!vsm ^5=^2Votar para ^6Siguiente Mapa ", true);
  628. Thread.Sleep(5000);
  629. TellClient(Client.ClientNum, "2SERVER:^3!mlist ^5=^2Para ver lista de ^6Nombres Cortos ^3de mapas ", true);
  630. Thread.Sleep(5000);
  631. TellClient(Client.ClientNum, "2SERVER:^3!vm(shortname) ^5=^2votar por mapa especificado. ^1Ejem:^3!vmdo", true);
  632. Thread.Sleep(5000);
  633. TellClient(Client.ClientNum, "2SERVER:^6!s ^5= ^2Voto SI, ^6!n ^5= ^2Voto NO", true);
  634. }
  635.  
  636. private void showmaplist(object cli)
  637. {
  638. ServerClient Client = (ServerClient)cli;
  639. TellClient(Client.ClientNum, "^2[Nombre de Mapa] ^6[Nombre Corto]", true);
  640. Thread.Sleep(2500);
  641. TellClient(Client.ClientNum, "^2Underground = ^6un", true);
  642. Thread.Sleep(2500);
  643. TellClient(Client.ClientNum, "^2Mission = ^6mi", true);
  644. Thread.Sleep(2500);
  645. TellClient(Client.ClientNum, "^2Interchange = ^6in", true);
  646. Thread.Sleep(2500);
  647. TellClient(Client.ClientNum, "^2Fallen = ^6fa", true);
  648. Thread.Sleep(2500);
  649. TellClient(Client.ClientNum, "^2Seatown = ^6se", true);
  650. Thread.Sleep(2500);
  651. TellClient(Client.ClientNum, "^2Village = ^6vi", true);
  652. Thread.Sleep(2500);
  653. TellClient(Client.ClientNum, "^2Bakaara = ^6ba", true);
  654. Thread.Sleep(2500);
  655. TellClient(Client.ClientNum, "^2Dome = ^6do", true);
  656. Thread.Sleep(2500);
  657. TellClient(Client.ClientNum, "^2Downturn = ^6dt", true);
  658. Thread.Sleep(2500);
  659. TellClient(Client.ClientNum, "^2Lockdown = ^6lo", true);
  660. Thread.Sleep(2500);
  661. TellClient(Client.ClientNum, "^2Outpost = ^6ou", true);
  662. Thread.Sleep(2500);
  663. TellClient(Client.ClientNum, "^2Arkaden = ^6ar", true);
  664. Thread.Sleep(2500);
  665. TellClient(Client.ClientNum, "^2Carbon = ^6ca", true);
  666. Thread.Sleep(2500);
  667. TellClient(Client.ClientNum, "^2Bootleg ^6bo", true);
  668. Thread.Sleep(2500);
  669. TellClient(Client.ClientNum, "^2Hardhat = ^6ha", true);
  670. Thread.Sleep(2500);
  671. TellClient(Client.ClientNum, "^2Resistance = ^6re", true);
  672. }
  673. }
  674. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement