Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.73 KB | None | 0 0
  1.  
  2. #include <a_samp>
  3. #define PlayPlayerSound PlayerPlaySound
  4. main()
  5. {
  6. print("\n----------------------------------");
  7. print(" Blank Gamemode by your name here");
  8. print("----------------------------------\n");
  9. }
  10.  
  11.  
  12.  
  13. public OnGameModeInit()
  14. {
  15. // Don't use these lines if it's a filterscript
  16. SetGameModeText("Blank Script");
  17. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  18. return 1;
  19. }
  20.  
  21. public OnGameModeExit()
  22. {
  23. return 1;
  24. }
  25.  
  26. public OnPlayerRequestClass(playerid, classid)
  27. {
  28. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  29. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  30. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  31. return 1;
  32. }
  33.  
  34. public OnPlayerConnect(playerid)
  35. {
  36. return 1;
  37. }
  38.  
  39. public OnPlayerDisconnect(playerid, reason)
  40. {
  41. return 1;
  42. }
  43.  
  44. public OnPlayerSpawn(playerid)
  45. {
  46. return 1;
  47. }
  48.  
  49. public OnPlayerDeath(playerid, killerid, reason)
  50. {
  51. return 1;
  52. }
  53.  
  54. public OnVehicleSpawn(vehicleid)
  55. {
  56. return 1;
  57. }
  58.  
  59. public OnVehicleDeath(vehicleid, killerid)
  60. {
  61. return 1;
  62. }
  63.  
  64. public OnPlayerText(playerid, text[])
  65. {
  66. return 1;
  67. }
  68.  
  69. public OnPlayerCommandText(playerid, cmdtext[])
  70. {
  71. if (strcmp("/sounds", cmdtext, true, 10) == 0)
  72. {
  73. ShowPlayerDialog(playerid,1125,DIALOG_STYLE_LIST,"IDcka","1002\n1009\n1020\n1021\n1022\n1027\n1035\n1036\n1039\n1052\n1053\n1054\n1055\n1056\n1057\n1058\n1062\n1063\n1068\n1069\n1076\n1077\n1083","Vybrat","Dale");
  74. return 1;
  75. }
  76. return 0;
  77. }
  78.  
  79. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  80. {
  81. return 1;
  82. }
  83.  
  84. public OnPlayerExitVehicle(playerid, vehicleid)
  85. {
  86. return 1;
  87. }
  88.  
  89. public OnPlayerStateChange(playerid, newstate, oldstate)
  90. {
  91. return 1;
  92. }
  93.  
  94. public OnPlayerEnterCheckpoint(playerid)
  95. {
  96. return 1;
  97. }
  98.  
  99. public OnPlayerLeaveCheckpoint(playerid)
  100. {
  101. return 1;
  102. }
  103.  
  104. public OnPlayerEnterRaceCheckpoint(playerid)
  105. {
  106. return 1;
  107. }
  108.  
  109. public OnPlayerLeaveRaceCheckpoint(playerid)
  110. {
  111. return 1;
  112. }
  113.  
  114. public OnRconCommand(cmd[])
  115. {
  116. return 1;
  117. }
  118.  
  119. public OnPlayerRequestSpawn(playerid)
  120. {
  121. return 1;
  122. }
  123.  
  124. public OnObjectMoved(objectid)
  125. {
  126. return 1;
  127. }
  128.  
  129. public OnPlayerObjectMoved(playerid, objectid)
  130. {
  131. return 1;
  132. }
  133.  
  134. public OnPlayerPickUpPickup(playerid, pickupid)
  135. {
  136. return 1;
  137. }
  138.  
  139. public OnVehicleMod(playerid, vehicleid, componentid)
  140. {
  141. return 1;
  142. }
  143.  
  144. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  145. {
  146. return 1;
  147. }
  148.  
  149. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  150. {
  151. return 1;
  152. }
  153.  
  154. public OnPlayerSelectedMenuRow(playerid, row)
  155. {
  156. return 1;
  157. }
  158.  
  159. public OnPlayerExitedMenu(playerid)
  160. {
  161. return 1;
  162. }
  163.  
  164. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  165. {
  166. return 1;
  167. }
  168.  
  169. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  170. {
  171. return 1;
  172. }
  173.  
  174. public OnRconLoginAttempt(ip[], password[], success)
  175. {
  176. return 1;
  177. }
  178.  
  179. public OnPlayerUpdate(playerid)
  180. {
  181. return 1;
  182. }
  183.  
  184. public OnPlayerStreamIn(playerid, forplayerid)
  185. {
  186. return 1;
  187. }
  188.  
  189. public OnPlayerStreamOut(playerid, forplayerid)
  190. {
  191. return 1;
  192. }
  193.  
  194. public OnVehicleStreamIn(vehicleid, forplayerid)
  195. {
  196. return 1;
  197. }
  198.  
  199. public OnVehicleStreamOut(vehicleid, forplayerid)
  200. {
  201. return 1;
  202. }
  203.  
  204. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  205. {
  206. if(dialogid == 1125)
  207. {
  208. if(response == 1)
  209. {
  210. if(listitem == 0)
  211. {
  212. new Float:x,Float:y,Float:z;
  213. GetPlayerPos(playerid,x,y,z);
  214. PlayPlayerSound(playerid,1002,x,y,z);
  215. }
  216. if(listitem == 1)
  217. {
  218. new Float:x,Float:y,Float:z;
  219. GetPlayerPos(playerid,x,y,z);
  220. PlayPlayerSound(playerid,1009,x,y,z);
  221. }
  222. if(listitem == 2)
  223. {
  224. new Float:x,Float:y,Float:z;
  225. GetPlayerPos(playerid,x,y,z);
  226. PlayPlayerSound(playerid,1020,x,y,z);
  227. }
  228. if(listitem == 3)
  229. {
  230. new Float:x,Float:y,Float:z;
  231. GetPlayerPos(playerid,x,y,z);
  232. PlayPlayerSound(playerid,1021,x,y,z);
  233. }
  234. if(listitem == 4)
  235. {
  236. new Float:x,Float:y,Float:z;
  237. GetPlayerPos(playerid,x,y,z);
  238. PlayPlayerSound(playerid,1022,x,y,z);
  239. }
  240. if(listitem == 5)
  241. {
  242. new Float:x,Float:y,Float:z;
  243. GetPlayerPos(playerid,x,y,z);
  244. PlayPlayerSound(playerid,1027,x,y,z);
  245. }
  246. if(listitem == 6)
  247. {
  248. new Float:x,Float:y,Float:z;
  249. GetPlayerPos(playerid,x,y,z);
  250. PlayPlayerSound(playerid,1035,x,y,z);
  251. }
  252. if(listitem == 7)
  253. {
  254. new Float:x,Float:y,Float:z;
  255. GetPlayerPos(playerid,x,y,z);
  256. PlayPlayerSound(playerid,1036,x,y,z);
  257. }
  258. if(listitem == 8)
  259. {
  260. new Float:x,Float:y,Float:z;
  261. GetPlayerPos(playerid,x,y,z);
  262. PlayPlayerSound(playerid,1039,x,y,z);
  263. }
  264. if(listitem == 9)
  265. {
  266. new Float:x,Float:y,Float:z;
  267. GetPlayerPos(playerid,x,y,z);
  268. PlayPlayerSound(playerid,1052,x,y,z);
  269. }
  270. if(listitem == 10)
  271. {
  272. new Float:x,Float:y,Float:z;
  273. GetPlayerPos(playerid,x,y,z);
  274. PlayPlayerSound(playerid,1053,x,y,z);
  275. }
  276. if(listitem == 11)
  277. {
  278. new Float:x,Float:y,Float:z;
  279. GetPlayerPos(playerid,x,y,z);
  280. PlayPlayerSound(playerid,1054,x,y,z);
  281. }
  282. if(listitem == 12)
  283. {
  284. new Float:x,Float:y,Float:z;
  285. GetPlayerPos(playerid,x,y,z);
  286. PlayPlayerSound(playerid,1055,x,y,z);
  287. }
  288. if(listitem == 13)
  289. {
  290. new Float:x,Float:y,Float:z;
  291. GetPlayerPos(playerid,x,y,z);
  292. PlayPlayerSound(playerid,1056,x,y,z);
  293. }
  294. if(listitem == 14)
  295. {
  296. new Float:x,Float:y,Float:z;
  297. GetPlayerPos(playerid,x,y,z);
  298. PlayPlayerSound(playerid,1057,x,y,z);
  299. }
  300. if(listitem == 15)
  301. {
  302. new Float:x,Float:y,Float:z;
  303. GetPlayerPos(playerid,x,y,z);
  304. PlayPlayerSound(playerid,1058,x,y,z);
  305. }
  306. if(listitem == 16)
  307. {
  308. new Float:x,Float:y,Float:z;
  309. GetPlayerPos(playerid,x,y,z);
  310. PlayPlayerSound(playerid,1062,x,y,z);
  311. }
  312. if(listitem == 17)
  313. {
  314. new Float:x,Float:y,Float:z;
  315. GetPlayerPos(playerid,x,y,z);
  316. PlayPlayerSound(playerid,1063,x,y,z);
  317. }
  318. if(listitem == 18)
  319. {
  320. new Float:x,Float:y,Float:z;
  321. GetPlayerPos(playerid,x,y,z);
  322. PlayPlayerSound(playerid,1068,x,y,z);
  323. }
  324. if(listitem == 19)
  325. {
  326. new Float:x,Float:y,Float:z;
  327. GetPlayerPos(playerid,x,y,z);
  328. PlayPlayerSound(playerid,1069,x,y,z);
  329. }
  330. if(listitem == 20)
  331. {
  332. new Float:x,Float:y,Float:z;
  333. GetPlayerPos(playerid,x,y,z);
  334. PlayPlayerSound(playerid,1076,x,y,z);
  335. }
  336. if(listitem == 21)
  337. {
  338. new Float:x,Float:y,Float:z;
  339. GetPlayerPos(playerid,x,y,z);
  340. PlayPlayerSound(playerid,1077,x,y,z);
  341. }
  342. if(listitem == 22)
  343. {
  344. new Float:x,Float:y,Float:z;
  345. GetPlayerPos(playerid,x,y,z);
  346. PlayPlayerSound(playerid,1083,x,y,z);
  347. }
  348. }
  349. else if(response == 0)
  350. {
  351. ShowPlayerDialog(playerid,1126,DIALOG_STYLE_LIST,"ID Zvukù","1084\n1085\n1095\n1097\n1098\n1100\n1101\n1130\n1131\n1132\n1133\n1134\n1135\n1136\n1137\n1138\n1139\n1140\n1141\n1142\n1143\n1144\n1145\n1147\n1148\n1149\n1150\n1153\n1154\n1163\n1165\n1166\n1169\n1183\n1184\n1185\n1186\n1187\n1188\n1190","Vybrat","Nic");
  352. }
  353. }
  354. if(dialogid == 1126)
  355. {
  356. if(response == 1)
  357. {
  358. if(listitem == 0)
  359. {
  360. new Float:x,Float:y,Float:z;
  361. GetPlayerPos(playerid,x,y,z);
  362. PlayPlayerSound(playerid,1084,x,y,z);
  363. }
  364. if(listitem == 1)
  365. {
  366. new Float:x,Float:y,Float:z;
  367. GetPlayerPos(playerid,x,y,z);
  368. PlayPlayerSound(playerid,1085,x,y,z);
  369. }
  370. if(listitem == 2)
  371. {
  372. new Float:x,Float:y,Float:z;
  373. GetPlayerPos(playerid,x,y,z);
  374. PlayPlayerSound(playerid,1095,x,y,z);
  375. }
  376. if(listitem == 3)
  377. {
  378. new Float:x,Float:y,Float:z;
  379. GetPlayerPos(playerid,x,y,z);
  380. PlayPlayerSound(playerid,1097,x,y,z);
  381. }
  382. if(listitem == 4)
  383. {
  384. new Float:x,Float:y,Float:z;
  385. GetPlayerPos(playerid,x,y,z);
  386. PlayPlayerSound(playerid,1098,x,y,z);
  387. }
  388. if(listitem == 5)
  389. {
  390. new Float:x,Float:y,Float:z;
  391. GetPlayerPos(playerid,x,y,z);
  392. PlayPlayerSound(playerid,1100,x,y,z);
  393. }
  394. if(listitem == 6)
  395. {
  396. new Float:x,Float:y,Float:z;
  397. GetPlayerPos(playerid,x,y,z);
  398. PlayPlayerSound(playerid,1101,x,y,z);
  399. }
  400. if(listitem == 7)
  401. {
  402. new Float:x,Float:y,Float:z;
  403. GetPlayerPos(playerid,x,y,z);
  404. PlayPlayerSound(playerid,1130,x,y,z);
  405. }
  406. if(listitem == 8)
  407. {
  408. new Float:x,Float:y,Float:z;
  409. GetPlayerPos(playerid,x,y,z);
  410. PlayPlayerSound(playerid,1131,x,y,z);
  411. }
  412. if(listitem == 9)
  413. {
  414. new Float:x,Float:y,Float:z;
  415. GetPlayerPos(playerid,x,y,z);
  416. PlayPlayerSound(playerid,1132,x,y,z);
  417. }
  418. if(listitem == 10)
  419. {
  420. new Float:x,Float:y,Float:z;
  421. GetPlayerPos(playerid,x,y,z);
  422. PlayPlayerSound(playerid,1133,x,y,z);
  423. }
  424. if(listitem == 11)
  425. {
  426. new Float:x,Float:y,Float:z;
  427. GetPlayerPos(playerid,x,y,z);
  428. PlayPlayerSound(playerid,1134,x,y,z);
  429. }
  430. if(listitem == 12)
  431. {
  432. new Float:x,Float:y,Float:z;
  433. GetPlayerPos(playerid,x,y,z);
  434. PlayPlayerSound(playerid,1135,x,y,z);
  435. }
  436. if(listitem == 13)
  437. {
  438. new Float:x,Float:y,Float:z;
  439. GetPlayerPos(playerid,x,y,z);
  440. PlayPlayerSound(playerid,1136,x,y,z);
  441. }
  442. if(listitem == 14)
  443. {
  444. new Float:x,Float:y,Float:z;
  445. GetPlayerPos(playerid,x,y,z);
  446. PlayPlayerSound(playerid,1137,x,y,z);
  447. }
  448. if(listitem == 15)
  449. {
  450. new Float:x,Float:y,Float:z;
  451. GetPlayerPos(playerid,x,y,z);
  452. PlayPlayerSound(playerid,1138,x,y,z);
  453. }
  454. if(listitem == 16)
  455. {
  456. new Float:x,Float:y,Float:z;
  457. GetPlayerPos(playerid,x,y,z);
  458. PlayPlayerSound(playerid,1138,x,y,z);
  459. }
  460. if(listitem == 17)
  461. {
  462. new Float:x,Float:y,Float:z;
  463. GetPlayerPos(playerid,x,y,z);
  464. PlayPlayerSound(playerid,1139,x,y,z);
  465. }
  466. if(listitem == 18)
  467. {
  468. new Float:x,Float:y,Float:z;
  469. GetPlayerPos(playerid,x,y,z);
  470. PlayPlayerSound(playerid,1140,x,y,z);
  471. }
  472. if(listitem == 19)
  473. {
  474. new Float:x,Float:y,Float:z;
  475. GetPlayerPos(playerid,x,y,z);
  476. PlayPlayerSound(playerid,1141,x,y,z);
  477. }
  478. if(listitem == 20)
  479. {
  480. new Float:x,Float:y,Float:z;
  481. GetPlayerPos(playerid,x,y,z);
  482. PlayPlayerSound(playerid,1142,x,y,z);
  483. }
  484. if(listitem == 21)
  485. {
  486. new Float:x,Float:y,Float:z;
  487. GetPlayerPos(playerid,x,y,z);
  488. PlayPlayerSound(playerid,1143,x,y,z);
  489. }
  490. if(listitem == 22)
  491. {
  492. new Float:x,Float:y,Float:z;
  493. GetPlayerPos(playerid,x,y,z);
  494. PlayPlayerSound(playerid,1144,x,y,z);
  495. }
  496. if(listitem == 23)
  497. {
  498. new Float:x,Float:y,Float:z;
  499. GetPlayerPos(playerid,x,y,z);
  500. PlayPlayerSound(playerid,1145,x,y,z);
  501. }
  502. if(listitem == 24)
  503. {
  504. new Float:x,Float:y,Float:z;
  505. GetPlayerPos(playerid,x,y,z);
  506. PlayPlayerSound(playerid,1147,x,y,z);
  507. }
  508. if(listitem == 24)
  509. {
  510. new Float:x,Float:y,Float:z;
  511. GetPlayerPos(playerid,x,y,z);
  512. PlayPlayerSound(playerid,1148,x,y,z);
  513. }
  514. if(listitem == 25)
  515. {
  516. new Float:x,Float:y,Float:z;
  517. GetPlayerPos(playerid,x,y,z);
  518. PlayPlayerSound(playerid,1149,x,y,z);
  519. }
  520. if(listitem == 26)
  521. {
  522. new Float:x,Float:y,Float:z;
  523. GetPlayerPos(playerid,x,y,z);
  524. PlayPlayerSound(playerid,1150,x,y,z);
  525. }
  526. if(listitem == 27)
  527. {
  528. new Float:x,Float:y,Float:z;
  529. GetPlayerPos(playerid,x,y,z);
  530. PlayPlayerSound(playerid,1153,x,y,z);
  531. }
  532. if(listitem == 28)
  533. {
  534. new Float:x,Float:y,Float:z;
  535. GetPlayerPos(playerid,x,y,z);
  536. PlayPlayerSound(playerid,1154,x,y,z);
  537. }
  538. if(listitem == 29)
  539. {
  540. new Float:x,Float:y,Float:z;
  541. GetPlayerPos(playerid,x,y,z);
  542. PlayPlayerSound(playerid,1163,x,y,z);
  543. }
  544. if(listitem == 30)
  545. {
  546. new Float:x,Float:y,Float:z;
  547. GetPlayerPos(playerid,x,y,z);
  548. PlayPlayerSound(playerid,1165,x,y,z);
  549. }
  550. if(listitem == 31)
  551. {
  552. new Float:x,Float:y,Float:z;
  553. GetPlayerPos(playerid,x,y,z);
  554. PlayPlayerSound(playerid,1166,x,y,z);
  555. }
  556. if(listitem == 32)
  557. {
  558. new Float:x,Float:y,Float:z;
  559. GetPlayerPos(playerid,x,y,z);
  560. PlayPlayerSound(playerid,1169,x,y,z);
  561. }
  562. if(listitem == 33)
  563. {
  564. new Float:x,Float:y,Float:z;
  565. GetPlayerPos(playerid,x,y,z);
  566. PlayPlayerSound(playerid,1183,x,y,z);
  567. }
  568. if(listitem == 34)
  569. {
  570. new Float:x,Float:y,Float:z;
  571. GetPlayerPos(playerid,x,y,z);
  572. PlayPlayerSound(playerid,1184,x,y,z);
  573. }
  574. if(listitem == 35)
  575. {
  576. new Float:x,Float:y,Float:z;
  577. GetPlayerPos(playerid,x,y,z);
  578. PlayPlayerSound(playerid,1185,x,y,z);
  579. }
  580. if(listitem == 36)
  581. {
  582. new Float:x,Float:y,Float:z;
  583. GetPlayerPos(playerid,x,y,z);
  584. PlayPlayerSound(playerid,1186,x,y,z);
  585. }
  586. if(listitem == 37)
  587. {
  588. new Float:x,Float:y,Float:z;
  589. GetPlayerPos(playerid,x,y,z);
  590. PlayPlayerSound(playerid,1187,x,y,z);
  591. }
  592. if(listitem == 38)
  593. {
  594. new Float:x,Float:y,Float:z;
  595. GetPlayerPos(playerid,x,y,z);
  596. PlayPlayerSound(playerid,1188,x,y,z);
  597. }
  598. if(listitem == 39)
  599. {
  600. new Float:x,Float:y,Float:z;
  601. GetPlayerPos(playerid,x,y,z);
  602. PlayPlayerSound(playerid,1190,x,y,z);
  603. }
  604. }
  605. }
  606. return 1;
  607. }
  608.  
  609. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  610. {
  611. return 1;
  612. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement