Advertisement
xXNiKkI_DownXx

Base Limpa e Renomeada

Aug 5th, 2017 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Function 0 2 0
  2.  
  3. CallNative "NETWORK_SET_SCRIPT_IS_SAFE_FOR_NETWORK_GAME" 0 0
  4. Call @Inicio_CSA
  5. Return 0 0
  6.  
  7. :Inicio_CSA
  8. Function 0 2 0
  9.  
  10. push_0
  11. StaticSet1 1
  12. fPush_1.0
  13. StaticSet1 2
  14. fPush_1.0
  15. StaticSet1 3
  16. fPush 0.179000005126
  17. StaticSet1 4
  18. fPush_1.0
  19. StaticSet1 5
  20. fPush_1.0
  21. StaticSet1 6
  22. fPush_1.0
  23. StaticSet1 7
  24. push_1
  25. StaticSet1 8
  26. push_7
  27. StaticSet2 434
  28. Push 100
  29. StaticSet2 435
  30. Push 199
  31. StaticSet2 436
  32. push_1
  33. StaticSet2 437
  34. fPush 0.14499999582767
  35. StaticSet2 438
  36.  
  37. :Label_11
  38. push_0
  39. CallNative "WAIT" 1 0
  40. Call @OtherLoop
  41. StaticGet1 1
  42. Switch [0=@Label_1][1=@Menu_Principal_Enum][2=@Menu_Config_Enum][3=@Menu_Cores_Enum][4=@Primeiro_Sub_menu_Enum][5=@Segundo_Sub_menu_Enum][6=@Terceiro_Sub_menu_Enum][7=@Quarto_Sub_menu_Enum][8=@Menu_Creditos_Enum]
  43.  
  44. :Label_1
  45. Call @Label_10
  46. Jump @Label_11
  47.  
  48. :Menu_Principal_Enum
  49. Call @Menu_Principal
  50. Jump @Label_13
  51.  
  52. :Menu_Config_Enum
  53. Call @Menu_Config
  54. Jump @Label_13
  55.  
  56. :Menu_Cores_Enum
  57. Call @Menu_Cores
  58. Jump @Label_13
  59.  
  60. :Primeiro_Sub_menu_Enum
  61. Call @Primeiro_Sub_menu
  62. Jump @Label_13
  63.  
  64. :Segundo_Sub_menu_Enum
  65. Call @Segundo_Sub_menu
  66. Jump @Label_13
  67.  
  68. :Terceiro_Sub_menu_Enum
  69. Call @Terceiro_Sub_menu
  70. Jump @Label_13
  71.  
  72. :Quarto_Sub_menu_Enum
  73. Call @Quarto_Sub_menu
  74. Jump @Label_13
  75.  
  76. :Menu_Creditos_Enum
  77. Call @Menu_Creditos
  78. Jump @Label_21
  79.  
  80. :Label_13
  81. Call @Label_22
  82. Jump @Label_11
  83.  
  84. :Label_21
  85. Call @Label_23
  86. Jump @Label_11
  87. Return 0 0
  88.  
  89. //-------------------------LOOP
  90.  
  91. :OtherLoop
  92. Function 0 2 0
  93.  
  94. StaticGet2 100
  95. JumpFalse @Loop_2
  96. CallNative PLAYER_ID 0 1
  97. CallNative "SET_EXPLOSIVE_AMMO_THIS_FRAME" 1 0
  98.  
  99. :Loop_2
  100. StaticGet2 101
  101. JumpFalse @Fim_Loop
  102. CallNative PLAYER_ID 0 1
  103. CallNative "SET_SUPER_JUMP_THIS_FRAME" 1 0
  104.  
  105. :Fim_Loop
  106. Return 0 0
  107.  
  108. //========================================
  109.  
  110. :Label_22
  111. Function 0 2 0
  112.  
  113. Call @Draw_rect_3
  114. Call @Desativar_Controles
  115. push_2
  116. Push 202
  117. CallNative "IS_DISABLED_CONTROL_JUST_PRESSED" 2 1
  118. push_1
  119. JumpEQ @Label_26
  120. push_2
  121. Push 203
  122. CallNative "IS_DISABLED_CONTROL_JUST_PRESSED" 2 1
  123. push_1
  124. JumpEQ @Label_27
  125. push_2
  126. Push 195
  127. CallNative "IS_DISABLED_CONTROL_JUST_PRESSED" 2 1
  128. push_1
  129. JumpEQ @Label_28
  130. Jump @Label_29
  131.  
  132. :Label_28
  133. PushString "BACK"
  134. Call @Tocar_som
  135. StaticGet1 1
  136. push_1
  137. JumpEQ @Habilitar_Todos_Controles
  138. StaticGet1 8
  139. StaticSet1 1
  140. StaticGet2 443
  141. StaticSet1 2
  142. StaticGet2 444
  143. StaticSet1 4
  144. Jump @Label_29
  145.  
  146. :Label_26
  147. StaticGet1 2
  148. fPush_1.0
  149. JumpEQ @Label_32
  150. StaticGet1 2
  151. fPush_1.0
  152. fSub
  153. StaticSet1 2
  154. StaticGet1 4
  155. fPush 0.03999999910593
  156. fSub
  157. StaticSet1 4
  158. PushString "NAV_UP_DOWN"
  159. Call @Tocar_som
  160. Jump @Label_29
  161.  
  162. :Label_32
  163. StaticGet1 3
  164. fPush 0.03999999910593
  165. fMul
  166. fPush 0.13899999856949
  167. fAdd
  168. StaticSet1 4
  169. StaticGet1 3
  170. StaticSet1 2
  171. PushString "NAV_UP_DOWN"
  172. Call @Tocar_som
  173. Jump @Label_29
  174.  
  175. :Label_27
  176. StaticGet1 2
  177. StaticGet1 3
  178. JumpEQ @Label_33
  179. StaticGet1 2
  180. fPush_1.0
  181. fAdd
  182. StaticSet1 2
  183. StaticGet1 4
  184. fPush 0.03999999910593
  185. fAdd
  186. StaticSet1 4
  187. PushString "NAV_UP_DOWN"
  188. Call @Tocar_som
  189. Jump @Label_29
  190.  
  191. :Label_33
  192. fPush 0.179000005126
  193. StaticSet1 4
  194. fPush_1.0
  195. StaticSet1 2
  196. PushString "NAV_UP_DOWN"
  197. Call @Tocar_som
  198. Jump @Label_29
  199.  
  200. :Habilitar_Todos_Controles
  201. push_2
  202. CallNative "ENABLE_ALL_CONTROL_ACTIONS" 1 0
  203. PushString "BACK"
  204. Call @Tocar_som
  205. push_0
  206. StaticSet1 1
  207.  
  208. :Label_29
  209. Return 0 0
  210.  
  211. //----------------------------
  212.  
  213. :Label_10
  214. Function 0 2 0
  215.  
  216. push_2
  217. Push 182
  218. CallNative "IS_CONTROL_PRESSED" 2 1
  219. push_1
  220. JumpEQ @Label_34
  221. Jump @Label_35
  222.  
  223. :Label_34
  224. push_2
  225. Push 179
  226. CallNative "IS_CONTROL_PRESSED" 2 1
  227. push_1
  228. JumpEQ @Label_36
  229. Jump @Label_35
  230.  
  231. :Label_36
  232. PushString "SELECT"
  233. Call @Tocar_som
  234. push_1
  235. StaticSet1 1
  236. push_1
  237. StaticSet1 8
  238. fPush_1.0
  239. StaticSet1 2
  240. fPush 0.179000005126
  241. StaticSet1 4
  242.  
  243. :Label_35
  244. Return 0 0
  245.  
  246. //==============================
  247.  
  248. :Void_Setar_Sub_Menus
  249. Function 0 2 0
  250.  
  251. StaticGet1 2
  252. StaticSet2 443
  253. StaticGet1 4
  254. StaticSet2 444
  255. fPush_1.0
  256. StaticSet1 2
  257. fPush 0.179000005126
  258. StaticSet1 4
  259. Return 0 0
  260.  
  261. :Label_23
  262. Function 0 2 0
  263.  
  264. fPush 15
  265. StaticSet1 3
  266. Call @Draw_rect_2
  267. Call @Desativar_Controles
  268. push_2
  269. Push 195
  270. CallNative "IS_DISABLED_CONTROL_JUST_PRESSED" 2 1
  271. push_1
  272. JumpEQ @Label_38
  273. Jump @Label_39
  274.  
  275. :Label_38
  276. PushString "BACK"
  277. Call @Tocar_som
  278. StaticGet1 8
  279. StaticSet1 1
  280. StaticGet2 443
  281. StaticSet1 2
  282. StaticGet2 444
  283. StaticSet1 4
  284.  
  285. :Label_39
  286. Return 0 0
  287.  
  288. :Draw_Text
  289. Function 2 2 0
  290.  
  291. getF1 0
  292. fPush 0.029999999329448
  293. fMul
  294. fPush 0.12999999523163
  295. fAdd
  296. StaticSet1 7
  297. Call @Configuracao_de_Texto
  298. PushString "STRING"
  299. CallNative "UNK_3E35563E" 1 0
  300. getF1 1
  301. CallNative "UNK_27A244D8" 1 0
  302. fPush 0.059999998658895
  303. StaticGet1 7
  304. CallNative "UNK_6F8350CE" 2 0
  305. Return 2 0
  306.  
  307. :Botao_X_apertado
  308. Function 0 2 0
  309.  
  310. push_2
  311. Push 193
  312. CallNative "IS_DISABLED_CONTROL_JUST_PRESSED" 2 1
  313. Return 0 1
  314.  
  315. :Tocar_som
  316. Function 1 2 0
  317.  
  318. push_-1
  319. getF1 0
  320. PushString "HUD_FRONTEND_DEFAULT_SOUNDSET"
  321. CallNative "PLAY_SOUND_FRONTEND" 3 0
  322. Return 1 0
  323.  
  324. :Desativar_Controles
  325. Function 0 2 0
  326.  
  327. CallNative "HIDE_HELP_TEXT_THIS_FRAME" 0 0
  328. push_0
  329. CallNative "SET_CINEMATIC_BUTTON_ACTIVE" 1 0
  330. push_0
  331. push_3
  332. CallNative "DISABLE_CONTROL_ACTION" 2 0
  333. push_0
  334. Push 92
  335. CallNative "DISABLE_CONTROL_ACTION" 2 0
  336. push_0
  337. Push 71
  338. CallNative "DISABLE_CONTROL_ACTION" 2 0
  339. push_0
  340. Push 75
  341. CallNative "DISABLE_CONTROL_ACTION" 2 0
  342. push_2
  343. Push 179
  344. CallNative "SET_INPUT_EXCLUSIVE" 2 0
  345. push_2
  346. Push 177
  347. CallNative "SET_INPUT_EXCLUSIVE" 2 0
  348. push_2
  349. Push 178
  350. CallNative "SET_INPUT_EXCLUSIVE" 2 0
  351. push_0
  352. Push 48
  353. CallNative "DISABLE_CONTROL_ACTION" 2 0
  354. push_2
  355. Push 164
  356. CallNative "SET_INPUT_EXCLUSIVE" 2 0
  357. push_2
  358. Push 165
  359. CallNative "SET_INPUT_EXCLUSIVE" 2 0
  360. push_2
  361. Push 177
  362. CallNative "DISABLE_CONTROL_ACTION" 2 0
  363. push_2
  364. Push 178
  365. CallNative "DISABLE_CONTROL_ACTION" 2 0
  366. push_2
  367. Push 166
  368. CallNative "DISABLE_CONTROL_ACTION" 2 0
  369. push_2
  370. Push 167
  371. CallNative "DISABLE_CONTROL_ACTION" 2 0
  372. push_2
  373. Push 164
  374. CallNative "DISABLE_CONTROL_ACTION" 2 0
  375. push_2
  376. Push 165
  377. CallNative "DISABLE_CONTROL_ACTION" 2 0
  378. Push 10
  379. CallNative "HIDE_HUD_COMPONENT_THIS_FRAME" 1 0
  380. push_6
  381. CallNative "HIDE_HUD_COMPONENT_THIS_FRAME" 1 0
  382. push_7
  383. CallNative "HIDE_HUD_COMPONENT_THIS_FRAME" 1 0
  384. Push 9
  385. CallNative "HIDE_HUD_COMPONENT_THIS_FRAME" 1 0
  386. Push 8
  387. CallNative "HIDE_HUD_COMPONENT_THIS_FRAME" 1 0
  388. push_2
  389. Push 166
  390. CallNative "SET_INPUT_EXCLUSIVE" 2 0
  391. push_2
  392. Push 167
  393. CallNative "SET_INPUT_EXCLUSIVE" 2 0
  394. push_0
  395. Push 37
  396. CallNative "DISABLE_CONTROL_ACTION" 2 0
  397. push_0
  398. Push 139
  399. CallNative "DISABLE_CONTROL_ACTION" 2 0
  400. push_0
  401. Push 140
  402. CallNative "DISABLE_CONTROL_ACTION" 2 0
  403. push_0
  404. Push 141
  405. CallNative "DISABLE_CONTROL_ACTION" 2 0
  406. push_0
  407. Push 142
  408. CallNative "DISABLE_CONTROL_ACTION" 2 0
  409. push_0
  410. Push 143
  411. CallNative "DISABLE_CONTROL_ACTION" 2 0
  412. push_0
  413. Push 144
  414. CallNative "DISABLE_CONTROL_ACTION" 2 0
  415. push_0
  416. Push 145
  417. CallNative "DISABLE_CONTROL_ACTION" 2 0
  418. push_0
  419. Push 146
  420. CallNative "DISABLE_CONTROL_ACTION" 2 0
  421. push_0
  422. Push 147
  423. CallNative "DISABLE_CONTROL_ACTION" 2 0
  424. push_0
  425. Push 14
  426. CallNative "DISABLE_CONTROL_ACTION" 2 0
  427. push_0
  428. Push 15
  429. CallNative "DISABLE_CONTROL_ACTION" 2 0
  430. push_0
  431. Push 52
  432. CallNative "DISABLE_CONTROL_ACTION" 2 0
  433. push_0
  434. Push 53
  435. CallNative "DISABLE_CONTROL_ACTION" 2 0
  436. push_0
  437. Push 123
  438. CallNative "DISABLE_CONTROL_ACTION" 2 0
  439. push_0
  440. Push 124
  441. CallNative "DISABLE_CONTROL_ACTION" 2 0
  442. push_0
  443. Push 126
  444. CallNative "DISABLE_CONTROL_ACTION" 2 0
  445. push_0
  446. Push 47
  447. CallNative "DISABLE_CONTROL_ACTION" 2 0
  448. push_0
  449. Push 69
  450. CallNative "DISABLE_CONTROL_ACTION" 2 0
  451. push_0
  452. Push 78
  453. CallNative "DISABLE_CONTROL_ACTION" 2 0
  454. push_0
  455. Push 51
  456. CallNative "DISABLE_CONTROL_ACTION" 2 0
  457. push_0
  458. Push 45
  459. CallNative "DISABLE_CONTROL_ACTION" 2 0
  460. push_0
  461. Push 54
  462. CallNative "DISABLE_CONTROL_ACTION" 2 0
  463. push_0
  464. Push 75
  465. CallNative "DISABLE_CONTROL_ACTION" 2 0
  466. push_0
  467. Push 22
  468. CallNative "DISABLE_CONTROL_ACTION" 2 0
  469. push_0
  470. Push 92
  471. CallNative "DISABLE_CONTROL_ACTION" 2 0
  472. push_0
  473. Push 106
  474. CallNative "DISABLE_CONTROL_ACTION" 2 0
  475. push_0
  476. Push 149
  477. CallNative "DISABLE_CONTROL_ACTION" 2 0
  478. push_0
  479. Push 148
  480. CallNative "DISABLE_CONTROL_ACTION" 2 0
  481. push_0
  482. Push 150
  483. CallNative "DISABLE_CONTROL_ACTION" 2 0
  484. push_0
  485. Push 151
  486. CallNative "DISABLE_CONTROL_ACTION" 2 0
  487. push_0
  488. Push 19
  489. CallNative "DISABLE_CONTROL_ACTION" 2 0
  490. Return 0 0
  491.  
  492. :Configuracao_de_Texto
  493. Function 0 2 0
  494.  
  495. //fonte opcoes
  496. push_4
  497. CallNative "SET_TEXT_FONT" 1 0
  498. fPush 0.51300000596046
  499. fPush 0.51300000596046
  500. //0.40000000596046
  501. CallNative "SET_TEXT_SCALE" 2 0
  502. Push 255
  503. Push 255
  504. Push 255
  505. Push 255
  506. CallNative "SET_TEXT_COLOUR" 4 0
  507. fPush_0.0
  508. fPush_1.0
  509. CallNative "SET_TEXT_WRAP" 2 0
  510. //opcoes centralizadas
  511. push_0
  512. CallNative "SET_TEXT_CENTRE" 1 0
  513. push_0
  514. push_0
  515. push_0
  516. push_0
  517. push_0
  518. CallNative "SET_TEXT_DROPSHADOW" 5 0
  519. push_0
  520. push_0
  521. push_0
  522. push_0
  523. push_0
  524. CallNative "SET_TEXT_EDGE" 5 0
  525. CallNative "SET_TEXT_OUTLINE" 0 0
  526. Return 0 0
  527.  
  528. :AddOption
  529. Function 2 2 0
  530.  
  531. getF1 0
  532. fPush 0.03999999910593
  533. fMul
  534. fPush 0.125
  535. fAdd
  536. StaticSet1 7
  537. Call @Configuracao_de_Texto
  538. PushString "STRING"
  539. CallNative "UNK_3E35563E" 1 0
  540. getF1 1
  541. CallNative "UNK_27A244D8" 1 0
  542. fPush 0.070000000298023
  543. StaticGet1 7
  544. CallNative "UNK_6F8350CE" 2 0
  545. Return 2 0
  546.  
  547. :AddTitle
  548. Function 1 2 0
  549.  
  550. Call @Configuracao_de_Texto
  551. //fonte do titulo
  552. push_1
  553. CallNative "SET_TEXT_FONT" 1 0
  554. fPush 0.80000001192093
  555. fPush 0.80000001192093
  556. CallNative "SET_TEXT_SCALE" 2 0
  557. StaticGet2 437
  558. CallNative "SET_TEXT_CENTRE" 1 0
  559. PushString "STRING"
  560. CallNative "UNK_3E35563E" 1 0
  561. getF1 0
  562. CallNative "UNK_27A244D8" 1 0
  563. StaticGet2 438
  564. fPush 0.10000000149012
  565. CallNative "UNK_6F8350CE" 2 0
  566. Return 1 0
  567.  
  568. :Draw_rect_2
  569. Function 0 2 0
  570.  
  571. StaticGet1 3
  572. fPush 0.03999999910593
  573. fMul
  574. fPush_2.0
  575. fDiv
  576. fPush 0.15899999439716
  577. fAdd
  578. StaticSet1 5
  579. StaticGet1 3
  580. fPush 0.03999999910593
  581. fMul
  582. StaticSet1 6
  583. fPush 0.14499999582767
  584. StaticGet1 5
  585. fPush 0.18999999761581
  586. StaticGet1 6
  587. Push3 16 16 16
  588. Push 130
  589. CallNative "DRAW_RECT" 8 0
  590. fPush 0.14499999582767
  591. fPush 0.11749999970198
  592. fPush 0.18999999761581
  593. fPush 0.082999996840954
  594. StaticGet2 434
  595. StaticGet2 435
  596. StaticGet2 436
  597. Push 130
  598. CallNative "DRAW_RECT" 8 0
  599. //globo
  600. PushString "MP_MENU_GLARE"
  601. CallNative "REQUEST_SCALEFORM_MOVIE" 1 1
  602. fPush 0.425000011921
  603. fPush 0.469000011683
  604. fPush 0.819999992847
  605. fPush 0.870000004768
  606. Push3 255 255 255
  607. Push1 255
  608. CallNative "DRAW_SCALEFORM_MOVIE" 9 0
  609. Return 0 0
  610.  
  611. :AddRodape
  612. Function 1 2 0
  613.  
  614. StaticGet1 3
  615. fPush 0.03999999910593
  616. fMul
  617. fPush 0.179000005126
  618. fAdd
  619. StaticSet2 432
  620. fPush 0.14499999582767
  621. StaticGet2 432
  622. fPush 0.18999999761581
  623. fPush 0.03999999910593
  624. StaticGet2 434
  625. StaticGet2 435
  626. StaticGet2 436
  627. Push 130
  628. CallNative "DRAW_RECT" 8 0
  629. StaticGet1 3
  630. fPush_1.0
  631. fAdd
  632. fPush 0.03999999910593
  633. fMul
  634. fPush 0.125
  635. fAdd
  636. StaticSet2 433
  637. Call @Configuracao_de_Texto
  638. fPush 0.34999999403954
  639. fPush 0.34999999403954
  640. CallNative "SET_TEXT_SCALE" 2 0
  641. StaticGet2 437
  642. CallNative "SET_TEXT_CENTRE" 1 0
  643. PushString "STRING"
  644. CallNative "UNK_3E35563E" 1 0
  645. getF1 0
  646. CallNative "UNK_27A244D8" 1 0
  647. StaticGet2 438
  648. StaticGet2 433
  649. CallNative "UNK_6F8350CE" 2 0
  650. Return 1 0
  651.  
  652. :Draw_rect_1
  653. Function 0 2 0
  654.  
  655. fPush 0.14499999582767
  656. StaticGet1 4
  657. fPush 0.18999999761581
  658. fPush 0.03999999910593
  659. Push3 255 255 255
  660. Push 130
  661. CallNative "DRAW_RECT" 8 0
  662. Return 0 0
  663.  
  664. //=============================
  665.  
  666. :Add_Toogle_Cores
  667. Function 1 2 0
  668.  
  669. getF1 0
  670. Switch [0=@Toogle_desativado][1=@Toogle_Ativado][2=@Toogle_Desconhecido]
  671.  
  672. :Toogle_desativado
  673. fPush 0.14499999582767
  674. StaticGet1 4
  675. fPush 0.18999999761581
  676. fPush 0.03999999910593
  677. Push3 255 0 0
  678. Push 130
  679. CallNative "DRAW_RECT" 8 0
  680. Jump @Fim_Toogle_Cores
  681.  
  682. :Toogle_Ativado
  683. fPush 0.14499999582767
  684. StaticGet1 4
  685. fPush 0.18999999761581
  686. fPush 0.03999999910593
  687. Push3 0 255 0
  688. Push 130
  689. CallNative "DRAW_RECT" 8 0
  690. Jump @Fim_Toogle_Cores
  691.  
  692. :Toogle_Desconhecido
  693. fPush 0.14499999582767
  694. StaticGet1 4
  695. fPush 0.18999999761581
  696. fPush 0.03999999910593
  697. StaticGet2 434
  698. StaticGet2 435
  699. StaticGet2 436
  700. Push 130
  701. CallNative "DRAW_RECT" 8 0
  702. Jump @Fim_Toogle_Cores
  703.  
  704. :Fim_Toogle_Cores
  705. Return 1 0
  706.  
  707. //==================
  708.  
  709. :Draw_rect_3
  710. Function 0 2 0
  711.  
  712. fPush 0.059999998658895
  713. StaticGet1 4
  714. fPush -0.0049999998882413
  715. fPush 0.03999999910593
  716. StaticGet2 434
  717. StaticGet2 435
  718. StaticGet2 436
  719. Push 130
  720. CallNative "DRAW_RECT" 8 0
  721. Return 0 0
  722.  
  723. :Menu_Principal
  724. Function 0 2 0
  725.  
  726. fPush_6.0
  727. StaticSet1 3
  728. Call @Draw_rect_2
  729. Call @Draw_rect_1
  730. PushString "Menu By EdUaRdO"
  731. Call @AddRodape
  732. PushString "Breso CSC"
  733. Call @AddTitle
  734. fPush_1.0
  735. PushString "Sub-Menu 1"
  736. Call @AddOption
  737. fPush_2.0
  738. PushString "Sub-Menu 2"
  739. Call @AddOption
  740. fPush_3.0
  741. PushString "Sub-Menu 3"
  742. Call @AddOption
  743. fPush_4.0
  744. PushString "Sub-Menu 4"
  745. Call @AddOption
  746. fPush_5.0
  747. PushString "Configuracoes"
  748. Call @AddOption
  749. fPush_6.0
  750. PushString "Creditos"
  751. Call @AddOption
  752. Call @Botao_X_apertado
  753. push_1
  754. JumpEQ @Switch_Menu_Principal
  755. Jump @Fim_Menu_Principal
  756.  
  757. :Switch_Menu_Principal
  758. PushString "SELECT"
  759. Call @Tocar_som
  760. StaticGet1 2
  761. FtoI
  762. Switch [1=@Menu_Principal_Opcao_1][2=@Menu_Principal_Opcao_2][3=@Menu_Principal_Opcao_3][4=@Menu_Principal_Opcao_4][5=@Menu_Principal_Opcao_5][6=@Menu_Principal_Opcao_6]
  763.  
  764. :Menu_Principal_Opcao_1
  765. push_4
  766. StaticSet1 1
  767. Call @Void_Setar_Sub_Menus
  768. Jump @Fim_Menu_Principal
  769.  
  770. :Menu_Principal_Opcao_2
  771. push_5
  772. StaticSet1 1
  773. Call @Void_Setar_Sub_Menus
  774. Jump @Fim_Menu_Principal
  775.  
  776. :Menu_Principal_Opcao_3
  777. push_6
  778. StaticSet1 1
  779. Call @Void_Setar_Sub_Menus
  780. Jump @Fim_Menu_Principal
  781.  
  782. :Menu_Principal_Opcao_4
  783. push_7
  784. StaticSet1 1
  785. Call @Void_Setar_Sub_Menus
  786. Jump @Fim_Menu_Principal
  787.  
  788. :Menu_Principal_Opcao_5
  789. push_2
  790. StaticSet1 1
  791. Call @Void_Setar_Sub_Menus
  792. Jump @Fim_Menu_Principal
  793.  
  794. :Menu_Principal_Opcao_6
  795. Push 8
  796. StaticSet1 1
  797. Call @Void_Setar_Sub_Menus
  798. Jump @Fim_Menu_Principal
  799.  
  800. :Fim_Menu_Principal
  801. Return 0 0
  802.  
  803. //-------------------------------------------------
  804.  
  805. :Menu_Config
  806. Function 0 2 0
  807.  
  808. fPush_2.0
  809. StaticSet1 3
  810. push_1
  811. StaticSet1 8
  812. Call @Draw_rect_2
  813. PushString "COnfig"
  814. Call @AddTitle
  815. fPush_1.0
  816. PushString "Cores"
  817. Call @AddOption
  818. fPush_2.0
  819. PushString "Centralizar o Titulo"
  820. Call @AddOption
  821. StaticGet1 2
  822. FtoI
  823. Switch [1=@Menu_Config_Opcao_1][2=@Centralizar_Titulo]
  824.  
  825. :Menu_Config_Opcao_1
  826. Call @Draw_rect_1
  827. Jump @Menu_Config_Check
  828.  
  829. :Centralizar_Titulo
  830. Call @Toggle_Texto_Centralizado_Secundario
  831.  
  832. :Menu_Config_Check
  833. Call @Botao_X_apertado
  834. push_1
  835. JumpEQ @Switch_Menu_Config
  836. Jump @Fim_Menu_Config
  837.  
  838. :Switch_Menu_Config
  839. PushString "SELECT"
  840. Call @Tocar_som
  841. StaticGet1 2
  842. FtoI
  843. Switch [1=@Menu_Config_Opcao_2_1][2=@Menu_Config_Opcao_2_2]
  844.  
  845. :Menu_Config_Opcao_2_1
  846. push_3
  847. StaticSet1 1
  848. Call @Void_Setar_Sub_Menus
  849. Jump @Fim_Menu_Config
  850.  
  851. :Menu_Config_Opcao_2_2
  852. Call @Toggle_Texto_Centralizado
  853.  
  854. :Fim_Menu_Config
  855. Return 0 0
  856.  
  857. //===================================================
  858.  
  859. :Menu_Cores
  860. Function 0 2 0
  861.  
  862. fPush 10
  863. StaticSet1 3
  864. push_2
  865. StaticSet1 8
  866. Call @Draw_rect_2
  867. Call @Draw_rect_1
  868. PushString "Cores"
  869. Call @AddTitle
  870. fPush_1.0
  871. PushString "~b~Padrao"
  872. Call @AddOption
  873. fPush_2.0
  874. PushString "Vermelho"
  875. Call @AddOption
  876. fPush_3.0
  877. PushString "Verde"
  878. Call @AddOption
  879. fPush_4.0
  880. PushString "Amarelo"
  881. Call @AddOption
  882. fPush_5.0
  883. PushString "Rosa"
  884. Call @AddOption
  885. fPush_6.0
  886. PushString "Roxo"
  887. Call @AddOption
  888. fPush_7.0
  889. PushString "Laranja"
  890. Call @AddOption
  891. fPush 8
  892. PushString "Cyano"
  893. Call @AddOption
  894. fPush 9
  895. PushString "Marron"
  896. Call @AddOption
  897. fPush 10
  898. PushString "Preto"
  899. Call @AddOption
  900. Call @Botao_X_apertado
  901. push_1
  902. JumpEQ @Switch_Cores
  903. Jump @Fim_Menu_Cores
  904.  
  905. :Switch_Cores
  906. PushString "SELECT"
  907. Call @Tocar_som
  908. StaticGet1 2
  909. FtoI
  910. Switch [1=@Cores_Opcao_1][2=@Cores_Opcao_2][3=@Cores_Opcao_3][4=@Cores_Opcao_4][5=@Cores_Opcao_5][6=@Cores_Opcao_6][7=@Cores_Opcao_7][8=@Cores_Opcao_8][9=@Cores_Opcao_9][10=@Cores_Opcao_10]
  911.  
  912. :Cores_Opcao_1
  913. push_7
  914. StaticSet2 434
  915. Push 100
  916. StaticSet2 435
  917. Push 199
  918. StaticSet2 436
  919. Jump @Fim_Menu_Cores
  920.  
  921. :Cores_Opcao_2
  922. Push 255
  923. StaticSet2 434
  924. push_0
  925. StaticSet2 435
  926. push_0
  927. StaticSet2 436
  928. Jump @Fim_Menu_Cores
  929.  
  930. :Cores_Opcao_3
  931. push_0
  932. StaticSet2 434
  933. Push 255
  934. StaticSet2 435
  935. push_0
  936. StaticSet2 436
  937. Jump @Fim_Menu_Cores
  938.  
  939. :Cores_Opcao_4
  940. Push 255
  941. StaticSet2 434
  942. Push 255
  943. StaticSet2 435
  944. push_0
  945. StaticSet2 436
  946. Jump @Fim_Menu_Cores
  947.  
  948. :Cores_Opcao_5
  949. Push 255
  950. StaticSet2 434
  951. push_0
  952. StaticSet2 435
  953. Push 235
  954. StaticSet2 436
  955. Jump @Fim_Menu_Cores
  956.  
  957. :Cores_Opcao_6
  958. Push 75
  959. StaticSet2 434
  960. push_0
  961. StaticSet2 435
  962. Push 75
  963. StaticSet2 436
  964. Jump @Fim_Menu_Cores
  965.  
  966. :Cores_Opcao_7
  967. Push 255
  968. StaticSet2 434
  969. Push 160
  970. StaticSet2 435
  971. push_0
  972. StaticSet2 436
  973. Jump @Fim_Menu_Cores
  974.  
  975. :Cores_Opcao_8
  976. push_0
  977. StaticSet2 434
  978. Push 255
  979. StaticSet2 435
  980. Push 255
  981. StaticSet2 436
  982. Jump @Fim_Menu_Cores
  983.  
  984. :Cores_Opcao_9
  985. Push 63
  986. StaticSet2 434
  987. Push 33
  988. StaticSet2 435
  989. Push 17
  990. StaticSet2 436
  991. Jump @Fim_Menu_Cores
  992.  
  993. :Cores_Opcao_10
  994. push_0
  995. StaticSet2 434
  996. push_0
  997. StaticSet2 435
  998. push_0
  999. StaticSet2 436
  1000.  
  1001. :Fim_Menu_Cores
  1002. Return 0 0
  1003.  
  1004. //--------------------------------------------------------------
  1005.  
  1006. :Toggle_Texto_Centralizado_Secundario
  1007. Function 0 2 0
  1008.  
  1009. StaticGet2 437
  1010. push_0
  1011. JumpEQ @Toggle_Texto_Centralizado_Secundario_Check
  1012. push_1
  1013. Call @Add_Toogle_Cores
  1014. Jump @Toggle_Texto_Centralizado_Secundario_Fim
  1015.  
  1016. :Toggle_Texto_Centralizado_Secundario_Check
  1017. push_0
  1018. Call @Add_Toogle_Cores
  1019.  
  1020. :Toggle_Texto_Centralizado_Secundario_Fim
  1021. Return 0 0
  1022.  
  1023. //================
  1024.  
  1025. :Toggle_Texto_Centralizado
  1026. Function 0 2 0
  1027.  
  1028. StaticGet2 437
  1029. push_0
  1030. JumpEQ @Toggle_Texto_Centralizado_2
  1031. push_0
  1032. StaticSet2 437
  1033. fPush 0.070000000298023
  1034. StaticSet2 438
  1035. Jump @Fim_Toggle_Texto_Centralizado
  1036.  
  1037. :Toggle_Texto_Centralizado_2
  1038. push_1
  1039. StaticSet2 437
  1040. fPush 0.14499999582767
  1041. StaticSet2 438
  1042.  
  1043. :Fim_Toggle_Texto_Centralizado
  1044. Return 0 0
  1045.  
  1046.  
  1047. //===============================================
  1048.  
  1049. :Primeiro_Sub_menu
  1050. Function 0 2 0
  1051.  
  1052. fPush_6.0
  1053. StaticSet1 3
  1054. push_1
  1055. StaticSet1 8
  1056. Call @Draw_rect_2
  1057. Call @Draw_rect_1
  1058. PushString ""
  1059. Call @AddRodape
  1060. PushString "Sub_Menu 1"
  1061. Call @AddTitle
  1062. fPush_1.0
  1063. PushString "Opcao 1"
  1064. Call @AddOption
  1065. fPush_2.0
  1066. PushString "Opcao 2"
  1067. Call @AddOption
  1068. fPush_3.0
  1069. PushString "Opcao 3"
  1070. Call @AddOption
  1071. fPush_4.0
  1072. PushString "Opcao 4"
  1073. Call @AddOption
  1074. fPush_5.0
  1075. PushString "Opcao 5"
  1076. Call @AddOption
  1077. fPush_6.0
  1078. PushString "Opcao 6"
  1079. Call @AddOption
  1080. Call @Botao_X_apertado
  1081. push_1
  1082. JumpEQ @Switch_Primeiro_Sub_menu
  1083. Jump @Fim_Primeiro_Sub_menu
  1084.  
  1085. :Switch_Primeiro_Sub_menu
  1086. PushString "SELECT"
  1087. Call @Tocar_som
  1088. StaticGet1 2
  1089. FtoI
  1090. Switch [1=@Primeiro_Sub_menu_Opcao_1][2=@Primeiro_Sub_menu_Opcao_2][3=@Primeiro_Sub_menu_Opcao_3][4=@Primeiro_Sub_menu_Opcao_4][5=@Primeiro_Sub_menu_Opcao_5][6=@Primeiro_Sub_menu_Opcao_6]
  1091.  
  1092. :Primeiro_Sub_menu_Opcao_1
  1093. //codigo
  1094. Jump @Fim_Primeiro_Sub_menu
  1095.  
  1096. :Primeiro_Sub_menu_Opcao_2
  1097. //codigo
  1098. Jump @Fim_Primeiro_Sub_menu
  1099.  
  1100. :Primeiro_Sub_menu_Opcao_3
  1101. //codigo
  1102. Jump @Fim_Primeiro_Sub_menu
  1103.  
  1104. :Primeiro_Sub_menu_Opcao_4
  1105. //codigo
  1106. Jump @Fim_Primeiro_Sub_menu
  1107.  
  1108. :Primeiro_Sub_menu_Opcao_5
  1109. //codigo
  1110. Jump @Fim_Primeiro_Sub_menu
  1111.  
  1112. :Primeiro_Sub_menu_Opcao_6
  1113. //codigo
  1114. Jump @Fim_Primeiro_Sub_menu
  1115.  
  1116. :Fim_Primeiro_Sub_menu
  1117. Return 0 0
  1118.  
  1119. //==================================================
  1120.  
  1121. :Segundo_Sub_menu
  1122. Function 0 2 0
  1123.  
  1124. fPush_6.0
  1125. StaticSet1 3
  1126. push_1
  1127. StaticSet1 8
  1128. Call @Draw_rect_2
  1129. Call @Draw_rect_1
  1130. PushString ""
  1131. Call @AddRodape
  1132. PushString "Sub_Menu 2"
  1133. Call @AddTitle
  1134. fPush_1.0
  1135. PushString "Opcao 1"
  1136. Call @AddOption
  1137. fPush_2.0
  1138. PushString "Opcao 2"
  1139. Call @AddOption
  1140. fPush_3.0
  1141. PushString "Opcao 3"
  1142. Call @AddOption
  1143. fPush_4.0
  1144. PushString "Opcao 4"
  1145. Call @AddOption
  1146. fPush_5.0
  1147. PushString "Opcao 5"
  1148. Call @AddOption
  1149. fPush_6.0
  1150. PushString "Opcao 6"
  1151. Call @AddOption
  1152. Call @Botao_X_apertado
  1153. push_1
  1154. JumpEQ @Switch_Segundo_Sub_menu
  1155. Jump @Fim_Segundo_Sub_menu
  1156.  
  1157. :Switch_Segundo_Sub_menu
  1158. PushString "SELECT"
  1159. Call @Tocar_som
  1160. StaticGet1 2
  1161. FtoI
  1162. Switch [1=@Segundo_Sub_menu_Opcao_1][2=@Segundo_Sub_menu_Opcao_2][3=@Segundo_Sub_menu_Opcao_3][4=@Segundo_Sub_menu_Opcao_4][5=@Segundo_Sub_menu_Opcao_5][6=@Segundo_Sub_menu_Opcao_6]
  1163.  
  1164. :Segundo_Sub_menu_Opcao_1
  1165. //codigo
  1166. Jump @Fim_Segundo_Sub_menu
  1167.  
  1168. :Segundo_Sub_menu_Opcao_2
  1169. //codigo
  1170. Jump @Fim_Segundo_Sub_menu
  1171.  
  1172. :Segundo_Sub_menu_Opcao_3
  1173. //codigo
  1174. Jump @Fim_Segundo_Sub_menu
  1175.  
  1176. :Segundo_Sub_menu_Opcao_4
  1177. //codigo
  1178. Jump @Fim_Segundo_Sub_menu
  1179.  
  1180. :Segundo_Sub_menu_Opcao_5
  1181. //codigo
  1182. Jump @Fim_Segundo_Sub_menu
  1183.  
  1184. :Segundo_Sub_menu_Opcao_6
  1185. //codigo
  1186. Jump @Fim_Segundo_Sub_menu
  1187.  
  1188. :Fim_Segundo_Sub_menu
  1189. Return 0 0
  1190.  
  1191. //========================
  1192.  
  1193. :Terceiro_Sub_menu
  1194. Function 0 2 0
  1195.  
  1196. fPush_6.0
  1197. StaticSet1 3
  1198. push_1
  1199. StaticSet1 8
  1200. Call @Draw_rect_2
  1201. Call @Draw_rect_1
  1202. PushString "Sub_Menu 3"
  1203. Call @AddTitle
  1204. fPush_1.0
  1205. PushString "Opcao 1"
  1206. Call @AddOption
  1207. fPush_2.0
  1208. PushString "Opcao 2"
  1209. Call @AddOption
  1210. fPush_3.0
  1211. PushString "Opcao 3"
  1212. Call @AddOption
  1213. fPush_4.0
  1214. PushString "Opcao 4"
  1215. Call @AddOption
  1216. fPush_5.0
  1217. PushString "Opcao 5"
  1218. Call @AddOption
  1219. fPush_6.0
  1220. PushString "Opcao 6"
  1221. Call @AddOption
  1222. Call @Botao_X_apertado
  1223. push_1
  1224. JumpEQ @Switch_Terceiro_Sub_menu
  1225. Jump @Fim_Terceiro_Sub_menu
  1226.  
  1227. :Switch_Terceiro_Sub_menu
  1228. PushString "SELECT"
  1229. Call @Tocar_som
  1230. StaticGet1 2
  1231. FtoI
  1232. Switch [1=@Terceiro_Sub_menu_Opcao_1][2=@Terceiro_Sub_menu_Opcao_2][3=@Terceiro_Sub_menu_Opcao_3][4=@Terceiro_Sub_menu_Opcao_4][5=@Terceiro_Sub_menu_Opcao_5][6=@Terceiro_Sub_menu_Opcao_6]
  1233.  
  1234. :Terceiro_Sub_menu_Opcao_1
  1235. //codigo
  1236. Jump @Fim_Terceiro_Sub_menu
  1237.  
  1238. :Terceiro_Sub_menu_Opcao_2
  1239. //codigo
  1240. Jump @Fim_Terceiro_Sub_menu
  1241.  
  1242. :Terceiro_Sub_menu_Opcao_3
  1243. //codigo
  1244. Jump @Fim_Terceiro_Sub_menu
  1245.  
  1246. :Terceiro_Sub_menu_Opcao_4
  1247. //codigo
  1248. Jump @Fim_Terceiro_Sub_menu
  1249.  
  1250. :Terceiro_Sub_menu_Opcao_5
  1251. //codigo
  1252. Jump @Fim_Terceiro_Sub_menu
  1253.  
  1254. :Terceiro_Sub_menu_Opcao_6
  1255. //codigo
  1256. Jump @Fim_Terceiro_Sub_menu
  1257.  
  1258. :Fim_Terceiro_Sub_menu
  1259. Return 0 0
  1260.  
  1261. //-------------------------------------------------
  1262.  
  1263. :Quarto_Sub_menu
  1264. Function 0 2 0
  1265.  
  1266. fPush_6.0
  1267. StaticSet1 3
  1268. push_1
  1269. StaticSet1 8
  1270. Call @Draw_rect_2
  1271. Call @Draw_rect_1
  1272. PushString "Sub_Menu 4"
  1273. Call @AddTitle
  1274. fPush_1.0
  1275. PushString "Opcao 1"
  1276. Call @AddOption
  1277. fPush_2.0
  1278. PushString "Opcao 2"
  1279. Call @AddOption
  1280. fPush_3.0
  1281. PushString "Opcao 3"
  1282. Call @AddOption
  1283. fPush_4.0
  1284. PushString "Opcao 4"
  1285. Call @AddOption
  1286. fPush_5.0
  1287. PushString "Opcao 5"
  1288. Call @AddOption
  1289. fPush_6.0
  1290. PushString "Opcao 6"
  1291. Call @AddOption
  1292. Call @Botao_X_apertado
  1293. push_1
  1294. JumpEQ @Switch_Quarto_Sub_menu
  1295. Jump @Fim_Quarto_Sub_menu
  1296.  
  1297. :Switch_Quarto_Sub_menu
  1298. PushString "SELECT"
  1299. Call @Tocar_som
  1300. StaticGet1 2
  1301. FtoI
  1302. Switch [1=@Quarto_Sub_menu_Opcao_1][2=@Quarto_Sub_menu_Opcao_2][3=@Quarto_Sub_menu_Opcao_3][4=@Quarto_Sub_menu_Opcao_4][5=@Quarto_Sub_menu_Opcao_5][6=@Quarto_Sub_menu_Opcao_6]
  1303.  
  1304. :Quarto_Sub_menu_Opcao_1
  1305. //codigo
  1306. Jump @Fim_Quarto_Sub_menu
  1307.  
  1308. :Quarto_Sub_menu_Opcao_2
  1309. //codigo
  1310. Jump @Fim_Quarto_Sub_menu
  1311.  
  1312. :Quarto_Sub_menu_Opcao_3
  1313. //codigo
  1314. Jump @Fim_Quarto_Sub_menu
  1315.  
  1316. :Quarto_Sub_menu_Opcao_4
  1317. //codigo
  1318. Jump @Fim_Quarto_Sub_menu
  1319.  
  1320. :Quarto_Sub_menu_Opcao_5
  1321. //codigo
  1322. Jump @Fim_Quarto_Sub_menu
  1323.  
  1324. :Quarto_Sub_menu_Opcao_6
  1325. //codigo
  1326. Jump @Fim_Quarto_Sub_menu
  1327.  
  1328. :Fim_Quarto_Sub_menu
  1329. Return 0 0
  1330.  
  1331. //----------------------------------------------------------------------
  1332.  
  1333. :Menu_Creditos
  1334. Function 0 2 0
  1335.  
  1336. push_1
  1337. StaticSet1 8
  1338. PushString "Creditos"
  1339. Call @AddTitle
  1340. fPush_1.0
  1341. PushString "Base - ~b~2much4u"
  1342. Call @Draw_Text
  1343. fPush_2.0
  1344. PushString "Layout - ~b~EdUaRdO"
  1345. Call @Draw_Text
  1346. fPush_3.0
  1347. PushString "Code/Mods - ~b~EdUaRdO"
  1348. Call @Draw_Text
  1349. fPush_4.0
  1350. PushString "----------------------------------"
  1351. Call @Draw_Text
  1352. fPush_5.0
  1353. PushString "Agradecimentos:"
  1354. Call @Draw_Text
  1355. fPush_6.0
  1356. PushString "~g~Karrasco"
  1357. Call @Draw_Text
  1358. fPush_7.0
  1359. PushString "Ajuda e Suporte"
  1360. Call @Draw_Text
  1361. fPush 8
  1362. PushString ""
  1363. Call @Draw_Text
  1364. fPush 9
  1365. PushString "~g~NotYourDope"
  1366. Call @Draw_Text
  1367. fPush 10
  1368. PushString "Duvidas e ajudas adicionais"
  1369. Call @Draw_Text
  1370. fPush 11
  1371. PushString ""
  1372. Call @Draw_Text
  1373. fPush 12
  1374. PushString "~g~EROOTIIK"
  1375. Call @Draw_Text
  1376. fPush 13
  1377. PushString "Script Assembler"
  1378. Call @Draw_Text
  1379. Return 0 0
  1380.  
  1381. //----------------------------------------------------------------------
  1382.  
  1383. :CarregarModelo
  1384. Function 1 2 0
  1385.  
  1386. getF1 0
  1387. CallNative "REQUEST_MODEL" 1 0
  1388.  
  1389. :CarregarModelo_Check
  1390. getF1 0
  1391. CallNative "HAS_MODEL_LOADED" 1 1
  1392. Not
  1393. JumpFalse @CarregarModelo_Fim
  1394. push_0
  1395. CallNative "WAIT" 1 0
  1396. Jump @CarregarModelo_Check
  1397.  
  1398. :CarregarModelo_Fim
  1399. Return 1 0
  1400.  
  1401. //----------------------------------------------------------------------
  1402.  
  1403. :RequestControlOfEntiity
  1404. Function 1 2 0
  1405.  
  1406. push_0
  1407. StaticSet2 300
  1408. getF1 0
  1409. CallNative "NETWORK_REQUEST_CONTROL_OF_ENTITY" 1 1
  1410. Not
  1411. JumpFalse @RequestControlOfEntiity_Fim
  1412.  
  1413. :RequestControlOfEntiity_Check
  1414. getF1 0
  1415. CallNative "NETWORK_HAS_CONTROL_OF_ENTITY" 1 1
  1416. Not
  1417. JumpFalse @RequestControlOfEntiity_Fim
  1418. push_0
  1419. CallNative "WAIT" 1 0
  1420. StaticGet2 300
  1421. Add1 1
  1422. StaticSet2 300
  1423. StaticGet2 300
  1424. Push 50
  1425. Jump @RequestControlOfEntiity_Check
  1426.  
  1427. :RequestControlOfEntiity_Fim
  1428. Return 1 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement