Advertisement
Guest User

Formatted Gamemode

a guest
Dec 18th, 2011
1,857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 27.58 KB | None | 0 0
  1. /*
  2.     //Server Information
  3. */
  4.  
  5. //&&&&&&&&&&&&&&&&&&&&&&&&&&&[GAMEMODE STARTED]&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
  6.  
  7. //==============================================================================
  8. //-------------------------------> Includes <-----------------------------------
  9. //==============================================================================
  10.  
  11. #include <a_samp>
  12.  
  13. //******************************** Includes End ********************************
  14.  
  15. //==============================================================================
  16. //-------------------------------> Colors <-------------------------------------
  17. //==============================================================================
  18.  
  19. //******************************* Colors End ***********************************
  20.  
  21. //==============================================================================
  22. //-------------------------------> New <----------------------------------------
  23. //==============================================================================
  24.  
  25. //****************************** New End ***************************************
  26.  
  27. //==============================================================================
  28. //-------------------------------> New Big <------------------------------------
  29. //==============================================================================
  30.  
  31. //******************************* New Big End **********************************
  32.  
  33. //==============================================================================
  34. //-------------------------------> MAX_PLAYERS <--------------------------------
  35. //==============================================================================
  36.  
  37. //******************************* MAX_PLAYERS End ******************************
  38.  
  39. //==============================================================================
  40. //-------------------------------> Defines <------------------------------------
  41. //==============================================================================
  42.  
  43. //******************************* Defines End **********************************
  44.  
  45. //==============================================================================
  46. //--------------------------------> Dialogs <-----------------------------------
  47. //==============================================================================
  48.  
  49. //********************************* Dialogs End ********************************
  50.  
  51. //==============================================================================
  52. //-------------------------------> Textdraws <----------------------------------
  53. //==============================================================================
  54.  
  55. //******************************* Textdraws End ********************************
  56.  
  57. //==============================================================================
  58. //-------------------------------> Objects <------------------------------------
  59. //==============================================================================
  60.  
  61. //******************************** Objects End *********************************
  62.  
  63. //==============================================================================
  64. //------------------------------> Forwards <------------------------------------
  65. //==============================================================================
  66.  
  67. //******************************* Forwards End *********************************
  68.  
  69. //==============================================================================
  70. //-------------------------------> Enums <--------------------------------------
  71. //==============================================================================
  72.  
  73. //******************************* Enums End ************************************
  74.  
  75. main()
  76. {
  77.     print("\n----------------------------------");
  78.     print(" Blank Gamemode by your name here");
  79.     print("----------------------------------\n");
  80. }
  81.  
  82. public OnGameModeInit()
  83. {
  84.     // Don't use these lines if it's a filterscript
  85.     SetGameModeText("Blank Script");
  86.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  87.     return 1;
  88. }
  89.  
  90. public OnGameModeExit()
  91. {
  92.     return 1;
  93. }
  94.  
  95. public OnPlayerRequestClass(playerid, classid)
  96. {
  97.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  98.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  99.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  100.     return 1;
  101. }
  102.  
  103. public OnPlayerConnect(playerid)
  104. {
  105.     return 1;
  106. }
  107.  
  108. public OnPlayerDisconnect(playerid, reason)
  109. {
  110.     return 1;
  111. }
  112.  
  113. public OnPlayerSpawn(playerid)
  114. {
  115.     return 1;
  116. }
  117.  
  118. public OnPlayerDeath(playerid, killerid, reason)
  119. {
  120.     return 1;
  121. }
  122.  
  123. public OnVehicleSpawn(vehicleid)
  124. {
  125.     return 1;
  126. }
  127.  
  128. public OnVehicleDeath(vehicleid, killerid)
  129. {
  130.     return 1;
  131. }
  132.  
  133. public OnPlayerText(playerid, text[])
  134. {
  135.     return 1;
  136. }
  137.  
  138. public OnPlayerCommandText(playerid, cmdtext[])
  139. {
  140.     if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  141.     {
  142.         // Do something here
  143.         return 1;
  144.     }
  145.     return 0;
  146. }
  147.  
  148. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  149. {
  150.     return 1;
  151. }
  152.  
  153. public OnPlayerExitVehicle(playerid, vehicleid)
  154. {
  155.     return 1;
  156. }
  157.  
  158. public OnPlayerStateChange(playerid, newstate, oldstate)
  159. {
  160.     return 1;
  161. }
  162.  
  163. public OnPlayerEnterCheckpoint(playerid)
  164. {
  165.     return 1;
  166. }
  167.  
  168. public OnPlayerLeaveCheckpoint(playerid)
  169. {
  170.     return 1;
  171. }
  172.  
  173. public OnPlayerEnterRaceCheckpoint(playerid)
  174. {
  175.     return 1;
  176. }
  177.  
  178. public OnPlayerLeaveRaceCheckpoint(playerid)
  179. {
  180.     return 1;
  181. }
  182.  
  183. public OnRconCommand(cmd[])
  184. {
  185.     return 1;
  186. }
  187.  
  188. public OnPlayerRequestSpawn(playerid)
  189. {
  190.     return 1;
  191. }
  192.  
  193. public OnObjectMoved(objectid)
  194. {
  195.     return 1;
  196. }
  197.  
  198. public OnPlayerObjectMoved(playerid, objectid)
  199. {
  200.     return 1;
  201. }
  202.  
  203. public OnPlayerPickUpPickup(playerid, pickupid)
  204. {
  205.     return 1;
  206. }
  207.  
  208. public OnVehicleMod(playerid, vehicleid, componentid)
  209. {
  210.     return 1;
  211. }
  212.  
  213. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  214. {
  215.     return 1;
  216. }
  217.  
  218. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  219. {
  220.     return 1;
  221. }
  222.  
  223. public OnPlayerSelectedMenuRow(playerid, row)
  224. {
  225.     return 1;
  226. }
  227.  
  228. public OnPlayerExitedMenu(playerid)
  229. {
  230.     return 1;
  231. }
  232.  
  233. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  234. {
  235.     return 1;
  236. }
  237.  
  238. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  239. {
  240.     return 1;
  241. }
  242.  
  243. public OnRconLoginAttempt(ip[], password[], success)
  244. {
  245.     return 1;
  246. }
  247.  
  248. public OnPlayerUpdate(playerid)
  249. {
  250.     return 1;
  251. }
  252.  
  253. public OnPlayerStreamIn(playerid, forplayerid)
  254. {
  255.     return 1;
  256. }
  257.  
  258. public OnPlayerStreamOut(playerid, forplayerid)
  259. {
  260.     return 1;
  261. }
  262.  
  263. public OnVehicleStreamIn(vehicleid, forplayerid)
  264. {
  265.     return 1;
  266. }
  267.  
  268. public OnVehicleStreamOut(vehicleid, forplayerid)
  269. {
  270.     return 1;
  271. }
  272.  
  273. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  274. {
  275.     return 1;
  276. }
  277.  
  278. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  279. {
  280.     return 1;
  281. }
  282.  
  283. //==============================================================================
  284. //--------------------------------> Publics <-----------------------------------
  285. //==============================================================================
  286.  
  287. //################################[Alphabet: "A"]###############################
  288.  
  289. //################################(Alphabet "A" End)############################
  290.  
  291. //------------------------------------------------------------------------------
  292.  
  293. //################################[Alphabet: "B"]###############################
  294.  
  295. //################################(Alphabet "B" End)############################
  296.  
  297. //------------------------------------------------------------------------------
  298.  
  299. //################################[Alphabet: "C"]###############################
  300.  
  301. //################################(Alphabet "C" End)############################
  302.  
  303. //------------------------------------------------------------------------------
  304.  
  305. //################################[Alphabet: "D"]###############################
  306.  
  307. //################################(Alphabet "D" End)############################
  308.  
  309. //------------------------------------------------------------------------------
  310.  
  311. //################################[Alphabet: "E"]###############################
  312.  
  313. //################################(Alphabet "E" End)############################
  314.  
  315. //------------------------------------------------------------------------------
  316.  
  317. //################################[Alphabet: "F"]###############################
  318.  
  319. //################################(Alphabet "F" End)############################
  320.  
  321. //------------------------------------------------------------------------------
  322.  
  323. //################################[Alphabet: "G"]###############################
  324.  
  325. //################################(Alphabet "G" End)############################
  326.  
  327. //------------------------------------------------------------------------------
  328.  
  329. //################################[Alphabet: "H"]###############################
  330.  
  331. //################################(Alphabet "H" End)############################
  332.  
  333. //------------------------------------------------------------------------------
  334.  
  335. //################################[Alphabet: "I"]###############################
  336.  
  337. //################################(Alphabet "I" End)############################
  338.  
  339. //------------------------------------------------------------------------------
  340.  
  341. //################################[Alphabet: "J"]###############################
  342.  
  343. //################################(Alphabet "J" End)############################
  344.  
  345. //------------------------------------------------------------------------------
  346.  
  347. //################################[Alphabet: "K"]###############################
  348.  
  349. //################################(Alphabet "K" End)############################
  350.  
  351. //------------------------------------------------------------------------------
  352.  
  353. //################################[Alphabet: "L"]###############################
  354.  
  355. //################################(Alphabet "L" End)############################
  356.  
  357. //------------------------------------------------------------------------------
  358.  
  359. //################################[Alphabet: "M"]###############################
  360.  
  361. //################################(Alphabet "M" End)############################
  362.  
  363. //------------------------------------------------------------------------------
  364.  
  365. //################################[Alphabet: "N"]###############################
  366.  
  367. //################################(Alphabet "N" End)############################
  368.  
  369. //------------------------------------------------------------------------------
  370.  
  371. //################################[Alphabet: "O"]###############################
  372.  
  373. //################################(Alphabet "O" End)############################
  374.  
  375. //------------------------------------------------------------------------------
  376.  
  377. //################################[Alphabet: "P"]###############################
  378.  
  379. //################################(Alphabet "P" End)############################
  380.  
  381. //------------------------------------------------------------------------------
  382.  
  383. //################################[Alphabet: "Q"]###############################
  384.  
  385. //################################(Alphabet "Q" End)############################
  386.  
  387. //------------------------------------------------------------------------------
  388.  
  389. //################################[Alphabet: "R"]###############################
  390.  
  391. //################################(Alphabet "R" End)############################
  392.  
  393. //------------------------------------------------------------------------------
  394.  
  395. //################################[Alphabet: "S"]###############################
  396.  
  397. //################################(Alphabet "S" End)############################
  398.  
  399. //------------------------------------------------------------------------------
  400.  
  401. //################################[Alphabet: "T"]###############################
  402.  
  403. //################################(Alphabet "T" End)############################
  404.  
  405. //------------------------------------------------------------------------------
  406.  
  407. //################################[Alphabet: "U"]###############################
  408.  
  409. //################################(Alphabet "U" End)############################
  410.  
  411. //------------------------------------------------------------------------------
  412.  
  413. //################################[Alphabet: "V"]###############################
  414.  
  415. //################################(Alphabet "V" End)############################
  416.  
  417. //------------------------------------------------------------------------------
  418.  
  419. //################################[Alphabet: "W"]###############################
  420.  
  421. //################################(Alphabet "W" End)############################
  422.  
  423. //------------------------------------------------------------------------------
  424.  
  425. //################################[Alphabet: "X"]###############################
  426.  
  427. //################################(Alphabet "X" End)############################
  428.  
  429. //------------------------------------------------------------------------------
  430.  
  431. //################################[Alphabet: "Y"]###############################
  432.  
  433. //################################(Alphabet "Y" End)############################
  434.  
  435. //------------------------------------------------------------------------------
  436.  
  437. //################################[Alphabet: "Z"]###############################
  438.  
  439. //################################(Alphabet "Z" End)############################
  440.  
  441.  
  442. //******************************** Publics End *********************************
  443.  
  444. //X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-
  445. //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  446. //X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-
  447. //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  448. //X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-
  449.  
  450. //==============================================================================
  451. //--------------------------------> Stocks <------------------------------------
  452. //==============================================================================
  453. //################################[Alphabet: "A"]###############################
  454.  
  455. //################################(Alphabet "A" End)############################
  456.  
  457. //------------------------------------------------------------------------------
  458.  
  459. //################################[Alphabet: "B"]###############################
  460.  
  461. //################################(Alphabet "B" End)############################
  462.  
  463. //------------------------------------------------------------------------------
  464.  
  465. //################################[Alphabet: "C"]###############################
  466.  
  467. //################################(Alphabet "C" End)############################
  468.  
  469. //------------------------------------------------------------------------------
  470.  
  471. //################################[Alphabet: "D"]###############################
  472.  
  473. //################################(Alphabet "D" End)############################
  474.  
  475. //------------------------------------------------------------------------------
  476.  
  477. //################################[Alphabet: "E"]###############################
  478.  
  479. //################################(Alphabet "E" End)############################
  480.  
  481. //------------------------------------------------------------------------------
  482.  
  483. //################################[Alphabet: "F"]###############################
  484.  
  485. //################################(Alphabet "F" End)############################
  486.  
  487. //------------------------------------------------------------------------------
  488.  
  489. //################################[Alphabet: "G"]###############################
  490.  
  491. //################################(Alphabet "G" End)############################
  492.  
  493. //------------------------------------------------------------------------------
  494.  
  495. //################################[Alphabet: "H"]###############################
  496.  
  497. //################################(Alphabet "H" End)############################
  498.  
  499. //------------------------------------------------------------------------------
  500.  
  501. //################################[Alphabet: "I"]###############################
  502.  
  503. //################################(Alphabet "I" End)############################
  504.  
  505. //------------------------------------------------------------------------------
  506.  
  507. //################################[Alphabet: "J"]###############################
  508.  
  509. //################################(Alphabet "J" End)############################
  510.  
  511. //------------------------------------------------------------------------------
  512.  
  513. //################################[Alphabet: "K"]###############################
  514.  
  515. //################################(Alphabet "K" End)############################
  516.  
  517. //------------------------------------------------------------------------------
  518.  
  519. //################################[Alphabet: "L"]###############################
  520.  
  521. //################################(Alphabet "L" End)############################
  522.  
  523. //------------------------------------------------------------------------------
  524.  
  525. //################################[Alphabet: "M"]###############################
  526.  
  527. //################################(Alphabet "M" End)############################
  528.  
  529. //------------------------------------------------------------------------------
  530.  
  531. //################################[Alphabet: "N"]###############################
  532.  
  533. //################################(Alphabet "N" End)############################
  534.  
  535. //------------------------------------------------------------------------------
  536.  
  537. //################################[Alphabet: "O"]###############################
  538.  
  539. //################################(Alphabet "O" End)############################
  540.  
  541. //------------------------------------------------------------------------------
  542.  
  543. //################################[Alphabet: "P"]###############################
  544.  
  545. //################################(Alphabet "P" End)############################
  546.  
  547. //------------------------------------------------------------------------------
  548.  
  549. //################################[Alphabet: "Q"]###############################
  550.  
  551. //################################(Alphabet "Q" End)############################
  552.  
  553. //------------------------------------------------------------------------------
  554.  
  555. //################################[Alphabet: "R"]###############################
  556.  
  557. //################################(Alphabet "R" End)############################
  558.  
  559. //------------------------------------------------------------------------------
  560.  
  561. //################################[Alphabet: "S"]###############################
  562.  
  563. //################################(Alphabet "S" End)############################
  564.  
  565. //------------------------------------------------------------------------------
  566.  
  567. //################################[Alphabet: "T"]###############################
  568.  
  569. //################################(Alphabet "T" End)############################
  570.  
  571. //------------------------------------------------------------------------------
  572.  
  573. //################################[Alphabet: "U"]###############################
  574.  
  575. //################################(Alphabet "U" End)############################
  576.  
  577. //------------------------------------------------------------------------------
  578.  
  579. //################################[Alphabet: "V"]###############################
  580.  
  581. //################################(Alphabet "V" End)############################
  582.  
  583. //------------------------------------------------------------------------------
  584.  
  585. //################################[Alphabet: "W"]###############################
  586.  
  587. //################################(Alphabet "W" End)############################
  588.  
  589. //------------------------------------------------------------------------------
  590.  
  591. //################################[Alphabet: "X"]###############################
  592.  
  593. //################################(Alphabet "X" End)############################
  594.  
  595. //------------------------------------------------------------------------------
  596.  
  597. //################################[Alphabet: "Y"]###############################
  598.  
  599. //################################(Alphabet "Y" End)############################
  600.  
  601. //------------------------------------------------------------------------------
  602.  
  603. //################################[Alphabet: "Z"]###############################
  604.  
  605. //################################(Alphabet "Z" End)############################
  606.  
  607.  
  608. //********************************* Stocks End *********************************
  609.  
  610. //X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-
  611. //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  612. //X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-
  613. //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  614. //X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-X-
  615.  
  616. //==============================================================================
  617. //--------------------------------> Commands <----------------------------------
  618. //==============================================================================
  619. //################################[Alphabet: "A"]###############################
  620.  
  621. //################################(Alphabet "A" End)############################
  622.  
  623. //------------------------------------------------------------------------------
  624.  
  625. //################################[Alphabet: "B"]###############################
  626.  
  627. //################################(Alphabet "B" End)############################
  628.  
  629. //------------------------------------------------------------------------------
  630.  
  631. //################################[Alphabet: "C"]###############################
  632.  
  633. //################################(Alphabet "C" End)############################
  634.  
  635. //------------------------------------------------------------------------------
  636.  
  637. //################################[Alphabet: "D"]###############################
  638.  
  639. //################################(Alphabet "D" End)############################
  640.  
  641. //------------------------------------------------------------------------------
  642.  
  643. //################################[Alphabet: "E"]###############################
  644.  
  645. //################################(Alphabet "E" End)############################
  646.  
  647. //------------------------------------------------------------------------------
  648.  
  649. //################################[Alphabet: "F"]###############################
  650.  
  651. //################################(Alphabet "F" End)############################
  652.  
  653. //------------------------------------------------------------------------------
  654.  
  655. //################################[Alphabet: "G"]###############################
  656.  
  657. //################################(Alphabet "G" End)############################
  658.  
  659. //------------------------------------------------------------------------------
  660.  
  661. //################################[Alphabet: "H"]###############################
  662.  
  663. //################################(Alphabet "H" End)############################
  664.  
  665. //------------------------------------------------------------------------------
  666.  
  667. //################################[Alphabet: "I"]###############################
  668.  
  669. //################################(Alphabet "I" End)############################
  670.  
  671. //------------------------------------------------------------------------------
  672.  
  673. //################################[Alphabet: "J"]###############################
  674.  
  675. //################################(Alphabet "J" End)############################
  676.  
  677. //------------------------------------------------------------------------------
  678.  
  679. //################################[Alphabet: "K"]###############################
  680.  
  681. //################################(Alphabet "K" End)############################
  682.  
  683. //------------------------------------------------------------------------------
  684.  
  685. //################################[Alphabet: "L"]###############################
  686.  
  687. //################################(Alphabet "L" End)############################
  688.  
  689. //------------------------------------------------------------------------------
  690.  
  691. //################################[Alphabet: "M"]###############################
  692.  
  693. //################################(Alphabet "M" End)############################
  694.  
  695. //------------------------------------------------------------------------------
  696.  
  697. //################################[Alphabet: "N"]###############################
  698.  
  699. //################################(Alphabet "N" End)############################
  700.  
  701. //------------------------------------------------------------------------------
  702.  
  703. //################################[Alphabet: "O"]###############################
  704.  
  705. //################################(Alphabet "O" End)############################
  706.  
  707. //------------------------------------------------------------------------------
  708.  
  709. //################################[Alphabet: "P"]###############################
  710.  
  711. //################################(Alphabet "P" End)############################
  712.  
  713. //------------------------------------------------------------------------------
  714.  
  715. //################################[Alphabet: "Q"]###############################
  716.  
  717. //################################(Alphabet "Q" End)############################
  718.  
  719. //------------------------------------------------------------------------------
  720.  
  721. //################################[Alphabet: "R"]###############################
  722.  
  723. //################################(Alphabet "R" End)############################
  724.  
  725. //------------------------------------------------------------------------------
  726.  
  727. //################################[Alphabet: "S"]###############################
  728.  
  729. //################################(Alphabet "S" End)############################
  730.  
  731. //------------------------------------------------------------------------------
  732.  
  733. //################################[Alphabet: "T"]###############################
  734.  
  735. //################################(Alphabet "T" End)############################
  736.  
  737. //------------------------------------------------------------------------------
  738.  
  739. //################################[Alphabet: "U"]###############################
  740.  
  741. //################################(Alphabet "U" End)############################
  742.  
  743. //------------------------------------------------------------------------------
  744.  
  745. //################################[Alphabet: "V"]###############################
  746.  
  747. //################################(Alphabet "V" End)############################
  748.  
  749. //------------------------------------------------------------------------------
  750.  
  751. //################################[Alphabet: "W"]###############################
  752.  
  753. //################################(Alphabet "W" End)############################
  754.  
  755. //------------------------------------------------------------------------------
  756.  
  757. //################################[Alphabet: "X"]###############################
  758.  
  759. //################################(Alphabet "X" End)############################
  760.  
  761. //------------------------------------------------------------------------------
  762.  
  763. //################################[Alphabet: "Y"]###############################
  764.  
  765. //################################(Alphabet "Y" End)############################
  766.  
  767. //------------------------------------------------------------------------------
  768.  
  769. //################################[Alphabet: "Z"]###############################
  770.  
  771. //################################(Alphabet "Z" End)############################
  772.  
  773.  
  774. //********************************* Commands End *******************************
  775. //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&[GAMEMODE END]&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement