Guest User

Untitled

a guest
Mar 16th, 2013
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.11 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new Text:Intro[53];
  4.  
  5. public OnFilterScriptInit()
  6. {
  7.  
  8. Intro[1] = TextDrawCreate(211.000000, 181.000000, "~r~U");
  9. TextDrawFont(Intro[1], 2);
  10. TextDrawLetterSize(Intro[1], 0.500000, 1.000000);
  11.  
  12. Intro[0] = TextDrawCreate(0.0, 0.0, "_");
  13. TextDrawFont(Intro[0], 1);
  14. TextDrawLetterSize(Intro[0], 0.0, 50.0);
  15. TextDrawUseBox(Intro[0], true);
  16. TextDrawBoxColor(Intro[0], 0x000000FF);
  17.  
  18. Intro[52] = TextDrawCreate(0.0, 0.0, "_");
  19. TextDrawFont(Intro[52], 1);
  20. TextDrawLetterSize(Intro[52], 0.0, 50.0);
  21. TextDrawUseBox(Intro[52], true);
  22. TextDrawBoxColor(Intro[52], 0xFFFFFFFF);
  23.  
  24. Intro[2] = TextDrawCreate(211.000000, 181.000000, "~r~SU");
  25. TextDrawFont(Intro[2], 2);
  26. TextDrawLetterSize(Intro[2], 0.500000, 1.000000);
  27.  
  28. Intro[3] = TextDrawCreate(211.000000, 181.000000, "~r~SUP");
  29. TextDrawFont(Intro[3], 2);
  30. TextDrawLetterSize(Intro[3], 0.500000, 1.000000);
  31.  
  32. Intro[4] = TextDrawCreate(211.000000, 181.000000, "~r~SUPE");
  33. TextDrawFont(Intro[4], 2);
  34. TextDrawLetterSize(Intro[4], 0.500000, 1.000000);
  35.  
  36. Intro[5] = TextDrawCreate(211.000000, 181.000000, "~r~SUPER");
  37. TextDrawFont(Intro[5], 2);
  38. TextDrawLetterSize(Intro[5], 0.500000, 1.000000);
  39.  
  40. Intro[6] = TextDrawCreate(211.000000, 181.000000, "~r~SUPERG");
  41. TextDrawFont(Intro[6], 2);
  42. TextDrawLetterSize(Intro[6], 0.500000, 1.000000);
  43.  
  44. Intro[7] = TextDrawCreate(211.000000, 181.000000, "~r~SUPERGAM");
  45. TextDrawFont(Intro[7], 2);
  46. TextDrawLetterSize(Intro[7], 0.500000, 1.000000);
  47.  
  48. Intro[8] = TextDrawCreate(211.000000, 181.000000, "~r~SUPERGAMES");
  49. TextDrawFont(Intro[8], 2);
  50. TextDrawLetterSize(Intro[8], 0.500000, 1.000000);
  51.  
  52. Intro[9] = TextDrawCreate(183.000000, 191.000000, "~p~.");
  53. TextDrawFont(Intro[9], 1);
  54. TextDrawLetterSize(Intro[9], 5.050058, 1.700000);
  55.  
  56. Intro[10] = TextDrawCreate(183.000000, 191.000000, "~p~.");
  57. TextDrawFont(Intro[10], 1);
  58. TextDrawLetterSize(Intro[10], 10.050058, 1.700000);
  59.  
  60. Intro[11] = TextDrawCreate(183.000000, 191.000000, "~p~.");
  61. TextDrawFont(Intro[11], 1);
  62. TextDrawLetterSize(Intro[11], 15.050058, 1.700000);
  63.  
  64. Intro[12] = TextDrawCreate(183.000000, 191.000000, "~p~.");
  65. TextDrawFont(Intro[12], 1);
  66. TextDrawLetterSize(Intro[12], 20.050058, 1.700000);
  67.  
  68. Intro[13] = TextDrawCreate(183.000000, 191.000000, "~p~.");
  69. TextDrawFont(Intro[13], 1);
  70. TextDrawLetterSize(Intro[13], 25.050058, 1.700000);
  71.  
  72. Intro[14] = TextDrawCreate(632.000000, 181.000000, "pristato");
  73. TextDrawFont(Intro[14], 2);
  74. TextDrawLetterSize(Intro[14], 0.500000, 1.000000);
  75.  
  76. Intro[15] = TextDrawCreate(622.000000, 181.000000, "pristato");
  77. TextDrawFont(Intro[15], 2);
  78. TextDrawLetterSize(Intro[15], 0.500000, 1.000000);
  79.  
  80. Intro[16] = TextDrawCreate(612.000000, 181.000000, "pristato");
  81. TextDrawFont(Intro[16], 2);
  82. TextDrawLetterSize(Intro[16], 0.500000, 1.000000);
  83.  
  84. Intro[17] = TextDrawCreate(602.000000, 181.000000, "pristato");
  85. TextDrawFont(Intro[17], 2);
  86. TextDrawLetterSize(Intro[17], 0.500000, 1.000000);
  87.  
  88. Intro[18] = TextDrawCreate(592.000000, 181.000000, "pristato");
  89. TextDrawFont(Intro[18], 2);
  90. TextDrawLetterSize(Intro[18], 0.500000, 1.000000);
  91.  
  92. Intro[19] = TextDrawCreate(582.000000, 181.000000, "pristato");
  93. TextDrawFont(Intro[19], 2);
  94. TextDrawLetterSize(Intro[19], 0.500000, 1.000000);
  95.  
  96. Intro[20] = TextDrawCreate(572.000000, 181.000000, "pristato");
  97. TextDrawFont(Intro[20], 2);
  98. TextDrawLetterSize(Intro[20], 0.500000, 1.000000);
  99.  
  100. Intro[21] = TextDrawCreate(562.000000, 181.000000, "pristato");
  101. TextDrawFont(Intro[21], 2);
  102. TextDrawLetterSize(Intro[21], 0.500000, 1.000000);
  103.  
  104. Intro[22] = TextDrawCreate(552.000000, 181.000000, "pristato");
  105. TextDrawFont(Intro[22], 2);
  106. TextDrawLetterSize(Intro[22], 0.500000, 1.000000);
  107.  
  108. Intro[23] = TextDrawCreate(542.000000, 181.000000, "pristato");
  109. TextDrawFont(Intro[23], 2);
  110. TextDrawLetterSize(Intro[23], 0.500000, 1.000000);
  111.  
  112. Intro[24] = TextDrawCreate(532.000000, 181.000000, "pristato");
  113. TextDrawFont(Intro[24], 2);
  114. TextDrawLetterSize(Intro[24], 0.500000, 1.000000);
  115.  
  116. Intro[25] = TextDrawCreate(522.000000, 181.000000, "pristato");
  117. TextDrawFont(Intro[25], 2);
  118. TextDrawLetterSize(Intro[25], 0.500000, 1.000000);
  119.  
  120. Intro[26] = TextDrawCreate(512.000000, 181.000000, "pristato");
  121. TextDrawFont(Intro[26], 2);
  122. TextDrawLetterSize(Intro[26], 0.500000, 1.000000);
  123.  
  124. Intro[27] = TextDrawCreate(502.000000, 181.000000, "pristato");
  125. TextDrawFont(Intro[27], 2);
  126. TextDrawLetterSize(Intro[27], 0.500000, 1.000000);
  127.  
  128. Intro[28] = TextDrawCreate(492.000000, 181.000000, "pristato");
  129. TextDrawFont(Intro[28], 2);
  130. TextDrawLetterSize(Intro[28], 0.500000, 1.000000);
  131.  
  132. Intro[29] = TextDrawCreate(482.000000, 181.000000, "pristato");
  133. TextDrawFont(Intro[29], 2);
  134. TextDrawLetterSize(Intro[29], 0.500000, 1.000000);
  135.  
  136. Intro[30] = TextDrawCreate(472.000000, 181.000000, "pristato");
  137. TextDrawFont(Intro[30], 2);
  138. TextDrawLetterSize(Intro[30], 0.500000, 1.000000);
  139.  
  140. Intro[31] = TextDrawCreate(462.000000, 181.000000, "pristato");
  141. TextDrawFont(Intro[31], 2);
  142. TextDrawLetterSize(Intro[31], 0.500000, 1.000000);
  143.  
  144. Intro[32] = TextDrawCreate(452.000000, 181.000000, "pristato");
  145. TextDrawFont(Intro[32], 2);
  146. TextDrawLetterSize(Intro[32], 0.500000, 1.000000);
  147.  
  148. Intro[33] = TextDrawCreate(442.000000, 181.000000, "pristato");
  149. TextDrawFont(Intro[33], 2);
  150. TextDrawLetterSize(Intro[33], 0.500000, 1.000000);
  151.  
  152. Intro[34] = TextDrawCreate(432.000000, 181.000000, "pristato");
  153. TextDrawFont(Intro[34], 2);
  154. TextDrawLetterSize(Intro[34], 0.500000, 1.000000);
  155.  
  156. Intro[35] = TextDrawCreate(422.000000, 181.000000, "pristato");
  157. TextDrawFont(Intro[35], 2);
  158. TextDrawLetterSize(Intro[35], 0.500000, 1.000000);
  159.  
  160. Intro[36] = TextDrawCreate(412.000000, 181.000000, "pristato");
  161. TextDrawFont(Intro[36], 2);
  162. TextDrawLetterSize(Intro[36], 0.500000, 1.000000);
  163.  
  164. Intro[37] = TextDrawCreate(402.000000, 181.000000, "pristato");
  165. TextDrawFont(Intro[37], 2);
  166. TextDrawLetterSize(Intro[37], 0.500000, 1.000000);
  167.  
  168. Intro[38] = TextDrawCreate(392.000000, 181.000000, "pristato");
  169. TextDrawFont(Intro[38], 2);
  170. TextDrawLetterSize(Intro[38], 0.500000, 1.000000);
  171.  
  172. Intro[39] = TextDrawCreate(382.000000, 181.000000, "pristato");
  173. TextDrawFont(Intro[39], 2);
  174. TextDrawLetterSize(Intro[39], 0.500000, 1.000000);
  175.  
  176. Intro[40] = TextDrawCreate(372.000000, 181.000000, "pristato");
  177. TextDrawFont(Intro[40], 2);
  178. TextDrawLetterSize(Intro[40], 0.500000, 1.000000);
  179.  
  180. Intro[41] = TextDrawCreate(362.000000, 181.000000, "pristato");
  181. TextDrawFont(Intro[41], 2);
  182. TextDrawLetterSize(Intro[41], 0.500000, 1.000000);
  183.  
  184. Intro[42] = TextDrawCreate(352.000000, 181.000000, "pristato");
  185. TextDrawFont(Intro[42], 2);
  186. TextDrawLetterSize(Intro[42], 0.500000, 1.000000);
  187.  
  188. Intro[43] = TextDrawCreate(342.000000, 181.000000, "pristato");
  189. TextDrawFont(Intro[43], 2);
  190. TextDrawLetterSize(Intro[43], 0.500000, 1.000000);
  191.  
  192. Intro[44] = TextDrawCreate(332.000000, 181.000000, "pristato");
  193. TextDrawFont(Intro[44], 2);
  194. TextDrawLetterSize(Intro[44], 0.500000, 1.000000);
  195.  
  196. Intro[45] = TextDrawCreate(322.000000, 181.000000, "pristato");
  197. TextDrawFont(Intro[45], 2);
  198. TextDrawLetterSize(Intro[45], 0.500000, 1.000000);
  199.  
  200. Intro[47] = TextDrawCreate(230.000000, 212.000000, "~g~www.Go-Play.LT");
  201. TextDrawFont(Intro[47], 2);
  202. TextDrawLetterSize(Intro[47], 0.340000, 1.099999);
  203.  
  204. Intro[48] = TextDrawCreate(319.000000, 226.000000, "~y~SuperServas");
  205. TextDrawFont(Intro[48], 2);
  206. TextDrawLetterSize(Intro[48], 0.340000, 1.099999);
  207.  
  208. Intro[49] = TextDrawCreate(413.000000, 182.000000, ".");
  209. TextDrawFont(Intro[49], 2);
  210. TextDrawLetterSize(Intro[49], 0.500000, 1.000000);
  211.  
  212. Intro[50] = TextDrawCreate(417.000000, 182.000000, ".");
  213. TextDrawFont(Intro[50], 2);
  214. TextDrawLetterSize(Intro[50], 0.500000, 1.000000);
  215.  
  216. Intro[51] = TextDrawCreate(421.000000, 182.000000, ".");
  217. TextDrawFont(Intro[51], 2);
  218. TextDrawLetterSize(Intro[51], 0.500000, 1.000000);
  219.  
  220. return 1;
  221. }
  222. public OnPlayerConnect(playerid)
  223. {
  224. TogglePlayerSpectating(playerid, true);
  225. ForceClassSelection(playerid);
  226. SetPVarInt(playerid, "Intro", 0);
  227. TextDrawShowForPlayer(playerid, Intro[0]);
  228. SetTimerEx("ShowIntro", 1000, 0, "d", playerid);
  229. return 1;
  230. }
  231. forward ShowIntro(playerid);
  232. public ShowIntro(playerid)
  233. {
  234. SetPVarInt(playerid, "Intro", GetPVarInt(playerid, "Intro") + 1);
  235. new iteration = GetPVarInt(playerid, "Intro");
  236. switch(iteration)
  237. {
  238. case 1:
  239. {
  240. for(new i; i < 11; i++){SendClientMessage(playerid, -1, "");}
  241. TextDrawShowForPlayer(playerid, Intro[0]);
  242. PlayerPlaySound(playerid, 1185, 1474.5114,-904.4835,59.6022);
  243. }
  244. case 2:
  245. {
  246. TextDrawShowForPlayer(playerid, Intro[1]);
  247. }
  248. case 3:
  249. {
  250. TextDrawHideForPlayer(playerid, Intro[1]);
  251. TextDrawShowForPlayer(playerid, Intro[2]);
  252. }
  253. case 4:
  254. {
  255. TextDrawHideForPlayer(playerid, Intro[2]);
  256. TextDrawShowForPlayer(playerid, Intro[3]);
  257. }
  258. case 5:
  259. {
  260. TextDrawHideForPlayer(playerid, Intro[3]);
  261. TextDrawShowForPlayer(playerid, Intro[4]);
  262. }
  263. case 6:
  264. {
  265. TextDrawHideForPlayer(playerid, Intro[4]);
  266. TextDrawShowForPlayer(playerid, Intro[5]);
  267. }
  268. case 7:
  269. {
  270. TextDrawHideForPlayer(playerid, Intro[5]);
  271. TextDrawShowForPlayer(playerid, Intro[6]);
  272. }
  273. case 8:
  274. {
  275. TextDrawHideForPlayer(playerid, Intro[6]);
  276. TextDrawShowForPlayer(playerid, Intro[7]);
  277. }
  278. case 9:
  279. {
  280. TextDrawHideForPlayer(playerid, Intro[7]);
  281. TextDrawShowForPlayer(playerid, Intro[8]);
  282. }
  283. case 10:
  284. {
  285. TextDrawShowForPlayer(playerid, Intro[9]);
  286. }
  287. case 11:
  288. {
  289. TextDrawHideForPlayer(playerid, Intro[9]);
  290. TextDrawShowForPlayer(playerid, Intro[10]);
  291. }
  292. case 12:
  293. {
  294. TextDrawHideForPlayer(playerid, Intro[10]);
  295. TextDrawShowForPlayer(playerid, Intro[11]);
  296. }
  297. case 13:
  298. {
  299. TextDrawHideForPlayer(playerid, Intro[11]);
  300. TextDrawShowForPlayer(playerid, Intro[12]);
  301. }
  302. case 14:
  303. {
  304. TextDrawHideForPlayer(playerid, Intro[12]);
  305. TextDrawShowForPlayer(playerid, Intro[13]);
  306. }
  307. case 15:
  308. {
  309. TextDrawShowForPlayer(playerid, Intro[14]);
  310. }
  311. case 16:
  312. {
  313. TextDrawHideForPlayer(playerid, Intro[14]);
  314. TextDrawShowForPlayer(playerid, Intro[15]);
  315. }
  316. case 17:
  317. {
  318. TextDrawHideForPlayer(playerid, Intro[15]);
  319. TextDrawShowForPlayer(playerid, Intro[16]);
  320. }
  321. case 18:
  322. {
  323. TextDrawHideForPlayer(playerid, Intro[16]);
  324. TextDrawShowForPlayer(playerid, Intro[17]);
  325. }
  326. case 19:
  327. {
  328. TextDrawHideForPlayer(playerid, Intro[17]);
  329. TextDrawShowForPlayer(playerid, Intro[18]);
  330. }
  331. case 20:
  332. {
  333. TextDrawHideForPlayer(playerid, Intro[18]);
  334. TextDrawShowForPlayer(playerid, Intro[19]);
  335. }
  336. case 21:
  337. {
  338. TextDrawHideForPlayer(playerid, Intro[19]);
  339. TextDrawShowForPlayer(playerid, Intro[20]);
  340. }
  341. case 22:
  342. {
  343. TextDrawHideForPlayer(playerid, Intro[20]);
  344. TextDrawShowForPlayer(playerid, Intro[21]);
  345. }
  346. case 23:
  347. {
  348. TextDrawHideForPlayer(playerid, Intro[21]);
  349. TextDrawShowForPlayer(playerid, Intro[22]);
  350. }
  351. case 24:
  352. {
  353. TextDrawHideForPlayer(playerid, Intro[22]);
  354. TextDrawShowForPlayer(playerid, Intro[23]);
  355. }
  356. case 25:
  357. {
  358. TextDrawHideForPlayer(playerid, Intro[23]);
  359. TextDrawShowForPlayer(playerid, Intro[24]);
  360. }
  361. case 26:
  362. {
  363. TextDrawHideForPlayer(playerid, Intro[24]);
  364. TextDrawShowForPlayer(playerid, Intro[25]);
  365. }
  366. case 27:
  367. {
  368. TextDrawHideForPlayer(playerid, Intro[25]);
  369. TextDrawShowForPlayer(playerid, Intro[26]);
  370. }
  371. case 28:
  372. {
  373. TextDrawHideForPlayer(playerid, Intro[26]);
  374. TextDrawShowForPlayer(playerid, Intro[27]);
  375. }
  376. case 29:
  377. {
  378. TextDrawHideForPlayer(playerid, Intro[27]);
  379. TextDrawShowForPlayer(playerid, Intro[28]);
  380. }
  381. case 30:
  382. {
  383. TextDrawHideForPlayer(playerid, Intro[28]);
  384. TextDrawShowForPlayer(playerid, Intro[29]);
  385. }
  386. case 31:
  387. {
  388. TextDrawHideForPlayer(playerid, Intro[29]);
  389. TextDrawShowForPlayer(playerid, Intro[30]);
  390. }
  391. case 32:
  392. {
  393. TextDrawHideForPlayer(playerid, Intro[30]);
  394. TextDrawShowForPlayer(playerid, Intro[31]);
  395. }
  396. case 33:
  397. {
  398. TextDrawHideForPlayer(playerid, Intro[31]);
  399. TextDrawShowForPlayer(playerid, Intro[32]);
  400. }
  401. case 34:
  402. {
  403. TextDrawHideForPlayer(playerid, Intro[32]);
  404. TextDrawShowForPlayer(playerid, Intro[33]);
  405. }
  406. case 35:
  407. {
  408. TextDrawHideForPlayer(playerid, Intro[33]);
  409. TextDrawShowForPlayer(playerid, Intro[34]);
  410. }
  411. case 36:
  412. {
  413. TextDrawHideForPlayer(playerid, Intro[34]);
  414. TextDrawShowForPlayer(playerid, Intro[35]);
  415. }
  416. case 37:
  417. {
  418. TextDrawHideForPlayer(playerid, Intro[35]);
  419. TextDrawShowForPlayer(playerid, Intro[36]);
  420. }
  421. case 38:
  422. {
  423. TextDrawHideForPlayer(playerid, Intro[36]);
  424. TextDrawShowForPlayer(playerid, Intro[37]);
  425. }
  426. case 39:
  427. {
  428. TextDrawHideForPlayer(playerid, Intro[37]);
  429. TextDrawShowForPlayer(playerid, Intro[38]);
  430. }
  431. case 40:
  432. {
  433. TextDrawHideForPlayer(playerid, Intro[38]);
  434. TextDrawShowForPlayer(playerid, Intro[39]);
  435. }
  436. case 41:
  437. {
  438. TextDrawHideForPlayer(playerid, Intro[39]);
  439. TextDrawShowForPlayer(playerid, Intro[40]);
  440. }
  441. case 42:
  442. {
  443. TextDrawHideForPlayer(playerid, Intro[40]);
  444. TextDrawShowForPlayer(playerid, Intro[41]);
  445. }
  446. case 43:
  447. {
  448. TextDrawHideForPlayer(playerid, Intro[41]);
  449. TextDrawShowForPlayer(playerid, Intro[42]);
  450. }
  451. case 44:
  452. {
  453. TextDrawHideForPlayer(playerid, Intro[42]);
  454. TextDrawShowForPlayer(playerid, Intro[43]);
  455. }
  456. case 45:
  457. {
  458. TextDrawHideForPlayer(playerid, Intro[43]);
  459. TextDrawShowForPlayer(playerid, Intro[44]);
  460. }
  461. case 46:
  462. {
  463. TextDrawHideForPlayer(playerid, Intro[44]);
  464. TextDrawShowForPlayer(playerid, Intro[45]);
  465. }
  466. case 47:
  467. {
  468. TextDrawShowForPlayer(playerid, Intro[49]);
  469. }
  470. case 48:
  471. {
  472. TextDrawShowForPlayer(playerid, Intro[50]);
  473. }
  474. case 49:
  475. {
  476. TextDrawShowForPlayer(playerid, Intro[51]);
  477. }
  478. case 50:
  479. {
  480. TextDrawShowForPlayer(playerid, Intro[47]);
  481. }
  482. case 51:
  483. {
  484. TextDrawShowForPlayer(playerid, Intro[48]);
  485. }
  486. case 52:
  487. {
  488. TextDrawHideForPlayer(playerid, Intro[0]);
  489. TextDrawShowForPlayer(playerid, Intro[52]);
  490. }
  491. case 53:
  492. {
  493. TextDrawHideForPlayer(playerid, Intro[52]);
  494. TextDrawShowForPlayer(playerid, Intro[0]);
  495. }
  496. case 54:
  497. {
  498. TextDrawHideForPlayer(playerid, Intro[0]);
  499. TextDrawShowForPlayer(playerid, Intro[52]);
  500. }
  501. case 55:
  502. {
  503. TextDrawHideForPlayer(playerid, Intro[52]);
  504. TextDrawShowForPlayer(playerid, Intro[0]);
  505. }
  506. }
  507. if(GetPVarInt(playerid, "Intro") < 56)
  508. {
  509. SetTimerEx("ShowIntro", 200, 0, "d", playerid);
  510. }
  511. else if(47 < GetPVarInt(playerid, "Intro") < 52)
  512. {
  513. SetTimerEx("ShowIntro", 1000, 0, "d", playerid);
  514. }
  515. else
  516. {
  517. for(new i; i < sizeof(Intro); i++)
  518. {
  519. TextDrawHideForPlayer(playerid, Intro[i]);
  520. }
  521. TogglePlayerSpectating(playerid, false);
  522. ForceClassSelection(playerid);
  523. PlayerPlaySound(playerid,1186,2241.7932,2437.3384,10.8203);
  524. }
  525. return 1;
  526. }
  527. public OnFilterScriptExit()
  528. {
  529. for(new i; i < sizeof(Intro); i++)
  530. {
  531. TextDrawDestroy(Intro[i]);
  532. }
  533. return 1;
  534. }
Advertisement
Add Comment
Please, Sign In to add comment