Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2011
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 14.60 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define SecondaryLAUNCHER 1
  4. #define Createclass 2
  5. #define Primary 3
  6. #define Secondary 4
  7. #define Lethal 5
  8. #define PrimarySMG 6
  9. #define PrimaryMACHINE 7
  10. #define PrimarySHOTGUN 8
  11. #define PrimaryRIFLE 9
  12. #define SecondaryPISTOL 10
  13.  
  14.  
  15. enum primary
  16. {
  17.  
  18. Tec9,
  19. Micro,
  20. SMG,
  21. M4,
  22. AK47,
  23. Shotgun,
  24. Sawnoff,
  25. Combat,
  26. Rifle,
  27. Sniper,
  28.  
  29. };
  30.  
  31. enum secondary
  32. {
  33.  
  34. mm9,
  35. Silenced,
  36. Deagle,
  37. RPG,
  38. HSRPG,
  39.  
  40. };
  41.  
  42. enum lethal
  43. {
  44.  
  45. Grenade,
  46. Tear,
  47. Molotov,
  48. Satchel,
  49.  
  50. };
  51.  
  52. new PlayerPrimary[MAX_PLAYERS][primary];
  53. new PlayerSecondary[MAX_PLAYERS][secondary];
  54. new PlayerLethal[MAX_PLAYERS][lethal];
  55.  
  56. public OnFilterScriptInit()
  57. {
  58.     print("\n--------------------------------------");
  59.     print(" Create-A-Class FS by [MNC]Azz...");
  60.     print("--------------------------------------\n");
  61.     return 1;
  62. }
  63. public OnFilterScriptExit()
  64. {
  65.     return 1;
  66. }
  67.  
  68. public OnPlayerConnect(playerid)
  69. {
  70. PlayerPrimary[playerid][Tec9]=0;
  71. PlayerPrimary[playerid][Micro]=0;
  72. PlayerPrimary[playerid][SMG]=0;
  73. PlayerPrimary[playerid][M4]=0;
  74. PlayerPrimary[playerid][AK47]=0;
  75. PlayerPrimary[playerid][Shotgun]=0;
  76. PlayerPrimary[playerid][Sawnoff]=0;
  77. PlayerPrimary[playerid][Combat]=0;
  78. PlayerPrimary[playerid][Rifle]=0;
  79. PlayerPrimary[playerid][Sniper]=0;
  80. PlayerSecondary[playerid][mm9]=0;
  81. PlayerSecondary[playerid][Silenced]=0;
  82. PlayerSecondary[playerid][Deagle]=0;
  83. PlayerSecondary[playerid][RPG]=0;
  84. PlayerSecondary[playerid][HSRPG]=0;
  85. PlayerLethal[playerid][Satchel]=0;
  86. PlayerLethal[playerid][Grenade]=0;
  87. PlayerLethal[playerid][Tear]=0;
  88. PlayerLethal[playerid][Molotov]=0;
  89. return 1;
  90. }
  91. public OnPlayerDisconnect(playerid, reason)
  92. {
  93. PlayerPrimary[playerid][Tec9]=0;
  94. PlayerPrimary[playerid][Micro]=0;
  95. PlayerPrimary[playerid][SMG]=0;
  96. PlayerPrimary[playerid][M4]=0;
  97. PlayerPrimary[playerid][AK47]=0;
  98. PlayerPrimary[playerid][Shotgun]=0;
  99. PlayerPrimary[playerid][Sawnoff]=0;
  100. PlayerPrimary[playerid][Combat]=0;
  101. PlayerPrimary[playerid][Rifle]=0;
  102. PlayerPrimary[playerid][Sniper]=0;
  103. PlayerSecondary[playerid][mm9]=0;
  104. PlayerSecondary[playerid][Silenced]=0;
  105. PlayerSecondary[playerid][Deagle]=0;
  106. PlayerSecondary[playerid][RPG]=0;
  107. PlayerSecondary[playerid][HSRPG]=0;
  108. PlayerLethal[playerid][Satchel]=0;
  109. PlayerLethal[playerid][Grenade]=0;
  110. PlayerLethal[playerid][Tear]=0;
  111. PlayerLethal[playerid][Molotov]=0;
  112. return 1;
  113. }
  114. public OnPlayerSpawn(playerid)
  115. {
  116. SendClientMessage(playerid,0xFFFF00AA,"This server uses Create-A-Class FS by [MNC]Azz...");
  117. SendClientMessage(playerid,0xFFFF00AA,"Use /createclass to customise your weapon class...");
  118. //PRIMARY WEAPONS
  119. if(PlayerPrimary[playerid][Tec9]==1)
  120. {
  121. GivePlayerWeapon(playerid,32,200);
  122. }
  123. else if(PlayerPrimary[playerid][Micro]==1)
  124. {
  125. GivePlayerWeapon(playerid,28,200);
  126. }
  127. else if(PlayerPrimary[playerid][SMG]==1)
  128. {
  129. GivePlayerWeapon(playerid,28,200);
  130. }
  131. else if(PlayerPrimary[playerid][M4]==1)
  132. {
  133. GivePlayerWeapon(playerid,31,200);
  134. }
  135. else if(PlayerPrimary[playerid][AK47]==1)
  136. {
  137. GivePlayerWeapon(playerid,30,200);
  138. }
  139. else if(PlayerPrimary[playerid][Shotgun]==1)
  140. {
  141. GivePlayerWeapon(playerid,25,200);
  142. }
  143. else if(PlayerPrimary[playerid][Sawnoff]==1)
  144. {
  145. GivePlayerWeapon(playerid,26,200);
  146. }
  147. else if(PlayerPrimary[playerid][Combat]==1)
  148. {
  149. GivePlayerWeapon(playerid,27,200);
  150. }
  151. else if(PlayerPrimary[playerid][Rifle]==1)
  152. {
  153. GivePlayerWeapon(playerid,33,200);
  154. }
  155. else if(PlayerPrimary[playerid][Sniper]==1)
  156. {
  157. GivePlayerWeapon(playerid,34,200);
  158. }
  159.  
  160. //SECONDARY WEAPONS
  161. if(PlayerSecondary[playerid][mm9]==1)
  162. {
  163. GivePlayerWeapon(playerid,22,200);
  164. }
  165. else if(PlayerSecondary[playerid][Silenced]==1)
  166. {
  167. GivePlayerWeapon(playerid,23,200);
  168. }
  169. else if(PlayerSecondary[playerid][Deagle]==1)
  170. {
  171. GivePlayerWeapon(playerid,24,200);
  172. }
  173. else if(PlayerSecondary[playerid][RPG]==1)
  174. {
  175. GivePlayerWeapon(playerid,35,200);
  176. }
  177. else if(PlayerSecondary[playerid][HSRPG]==1)
  178. {
  179. GivePlayerWeapon(playerid,36,200);
  180. }
  181.  
  182. //LETHAL
  183. if(PlayerLethal[playerid][Grenade]==1)
  184. {
  185. GivePlayerWeapon(playerid,16,200);
  186. }
  187. else if(PlayerLethal[playerid][Tear]==1)
  188. {
  189. GivePlayerWeapon(playerid,17,200);
  190. }
  191. else if(PlayerLethal[playerid][Molotov]==1)
  192. {
  193. GivePlayerWeapon(playerid,18,200);
  194. }
  195. else if(PlayerLethal[playerid][Satchel]==1)
  196. {
  197. GivePlayerWeapon(playerid,39,200);
  198. }
  199.  
  200. return 1;
  201. }
  202. public OnPlayerCommandText(playerid, cmdtext[])
  203. {
  204.     if (strcmp("/createclass", cmdtext, true, 10) == 0)
  205.     {
  206.         ShowPlayerDialog(playerid,Createclass,DIALOG_STYLE_LIST,"Custom 1","PRIMARY\nSECONDARY\nLETHAL","Select","Back");
  207.         return 1;
  208.     }
  209.     return 0;
  210. }
  211. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  212. {
  213. if(dialogid == Createclass)
  214. {
  215. if(response)
  216. {
  217. if(listitem == 0)
  218. {
  219. ShowPlayerDialog(playerid,Primary,DIALOG_STYLE_LIST,"PRIMARY","Sub Machine Guns\nMachine Guns\nShotguns\nRifles","Select","Back");
  220. return 1;
  221. }
  222. if(listitem == 1)
  223. {
  224. ShowPlayerDialog(playerid,Secondary,DIALOG_STYLE_LIST,"SECONDARY","Pistols\nLaunchers","Select","Back");
  225. return 1;
  226. }
  227. if(listitem == 2)
  228. {
  229. ShowPlayerDialog(playerid,Lethal,DIALOG_STYLE_LIST,"LETHAL","Grenade\nTear Gas\nMolotov Coctail\nSatchel Bomb","Select","Back");
  230. return 1;
  231. }
  232. }
  233. else
  234. {
  235. ShowPlayerDialog(playerid,Createclass,DIALOG_STYLE_LIST,"Custom 1","PRIMARY\nSECONDARY\nLETHAL","Select","Back");
  236. return 1;
  237. }
  238. }
  239. if(dialogid == Primary)
  240. {
  241. if(response)
  242. {
  243. if(listitem == 0)
  244. {
  245. ShowPlayerDialog(playerid,PrimarySMG,DIALOG_STYLE_LIST,"SMGs","Tec-9\nMicro SMG\nSMG","Select","Back");
  246. return 1;
  247. }
  248. if(listitem == 1)
  249. {
  250. ShowPlayerDialog(playerid,PrimaryMACHINE,DIALOG_STYLE_LIST,"Machine Guns","M4\nAK47","Select","Back");
  251. return 1;
  252. }
  253. if(listitem == 2)
  254. {
  255. ShowPlayerDialog(playerid,PrimarySHOTGUN,DIALOG_STYLE_LIST,"Shotguns","Shotgun\nSawnoff Shotgun\nCombat Shotgun","Select","Back");
  256. return 1;
  257. }
  258. if(listitem == 3)
  259. {
  260. ShowPlayerDialog(playerid,PrimaryRIFLE,DIALOG_STYLE_LIST,"Rifles","Rifle\nSniper Rifle","Select","Back");
  261. return 1;
  262. }
  263. }
  264. else
  265. {
  266. ShowPlayerDialog(playerid,Createclass,DIALOG_STYLE_LIST,"Custom 1","PRIMARY\nSECONDARY\nLETHAL","Select","Back");
  267. return 1;
  268. }
  269. }
  270. if(dialogid == Secondary)
  271. {
  272. if(response)
  273. {
  274. if(listitem == 0)
  275. {
  276. ShowPlayerDialog(playerid,SecondaryPISTOL,DIALOG_STYLE_LIST,"Pistols","9MM\nSilenced 9MM\nDeagle","Select","Back");
  277. return 1;
  278. }
  279. if(listitem == 1)
  280. {
  281. ShowPlayerDialog(playerid,SecondaryLAUNCHER,DIALOG_STYLE_LIST,"Launchers","RPG\nHeat Seaking RPG","Select","Back");
  282. return 1;
  283. }
  284. }
  285. else
  286. {
  287. ShowPlayerDialog(playerid,Createclass,DIALOG_STYLE_LIST,"Custom 1","PRIMARY\nSECONDARY\nLETHAL","Select","Back");
  288. return 1;
  289. }
  290. }
  291. if(dialogid == Lethal)
  292. {
  293. if(response)
  294. {
  295. if(listitem == 0)
  296. {
  297. SendClientMessage(playerid,0xFFFF00AA,"LETHAL Set To: Grenade...");
  298. PlayerLethal[playerid][Grenade]=1;
  299. PlayerLethal[playerid][Molotov]=0;
  300. PlayerLethal[playerid][Tear]=0;
  301. PlayerLethal[playerid][Satchel]=0;
  302. return 1;
  303. }
  304. if(listitem == 1)
  305. {
  306. SendClientMessage(playerid,0xFFFF00AA,"LETHAL Set To: Tear Gas...");
  307. PlayerLethal[playerid][Tear]=1;
  308. PlayerLethal[playerid][Satchel]=0;
  309. PlayerLethal[playerid][Grenade]=0;
  310. PlayerLethal[playerid][Molotov]=0;
  311. return 1;
  312. }
  313. if(listitem == 2)
  314. {
  315. SendClientMessage(playerid,0xFFFF00AA,"LETHAL Set To: Molotov Coctail...");
  316. PlayerLethal[playerid][Molotov]=1;
  317. PlayerLethal[playerid][Satchel]=0;
  318. PlayerLethal[playerid][Tear]=0;
  319. PlayerLethal[playerid][Grenade]=0;
  320. return 1;
  321. }
  322. if(listitem == 3)
  323. {
  324. SendClientMessage(playerid,0xFFFF00AA,"LETHAL Set To: Satchel Bomb...");
  325. PlayerLethal[playerid][Satchel]=1;
  326. PlayerLethal[playerid][Grenade]=0;
  327. PlayerLethal[playerid][Tear]=0;
  328. PlayerLethal[playerid][Molotov]=0;
  329. return 1;
  330. }
  331. }
  332. else
  333. {
  334. ShowPlayerDialog(playerid,Createclass,DIALOG_STYLE_LIST,"Custom 1","PRIMARY\nSECONDARY\nLETHAL","Select","Back");
  335. return 1;
  336. }
  337. }
  338. if(dialogid == PrimarySMG)
  339. {
  340. if(response)
  341. {
  342. if(listitem == 0)
  343. {
  344. SendClientMessage(playerid,0xFFFF00AA,"PRIMARY Set To: Tec-9...");
  345. PlayerPrimary[playerid][Tec9]=1;
  346. PlayerPrimary[playerid][Micro]=0;
  347. PlayerPrimary[playerid][SMG]=0;
  348. PlayerPrimary[playerid][M4]=0;
  349. PlayerPrimary[playerid][AK47]=0;
  350. PlayerPrimary[playerid][Shotgun]=0;
  351. PlayerPrimary[playerid][Sawnoff]=0;
  352. PlayerPrimary[playerid][Combat]=0;
  353. PlayerPrimary[playerid][Rifle]=0;
  354. PlayerPrimary[playerid][Sniper]=0;
  355. return 1;
  356. }
  357. if(listitem == 1)
  358. {
  359. SendClientMessage(playerid,0xFFFF00AA,"PRIMARY Set To: Micro SMG...");
  360. PlayerPrimary[playerid][Tec9]=0;
  361. PlayerPrimary[playerid][Micro]=1;
  362. PlayerPrimary[playerid][SMG]=0;
  363. PlayerPrimary[playerid][M4]=0;
  364. PlayerPrimary[playerid][AK47]=0;
  365. PlayerPrimary[playerid][Shotgun]=0;
  366. PlayerPrimary[playerid][Sawnoff]=0;
  367. PlayerPrimary[playerid][Combat]=0;
  368. PlayerPrimary[playerid][Rifle]=0;
  369. PlayerPrimary[playerid][Sniper]=0;
  370. return 1;
  371. }
  372. if(listitem == 2)
  373. {
  374. SendClientMessage(playerid,0xFFFF00AA,"PRIMARY Set To: SMG...");
  375. PlayerPrimary[playerid][Tec9]=0;
  376. PlayerPrimary[playerid][Micro]=0;
  377. PlayerPrimary[playerid][SMG]=1;
  378. PlayerPrimary[playerid][M4]=0;
  379. PlayerPrimary[playerid][AK47]=0;
  380. PlayerPrimary[playerid][Shotgun]=0;
  381. PlayerPrimary[playerid][Sawnoff]=0;
  382. PlayerPrimary[playerid][Combat]=0;
  383. PlayerPrimary[playerid][Rifle]=0;
  384. PlayerPrimary[playerid][Sniper]=0;
  385. return 1;
  386. }
  387. }
  388. else
  389. {
  390. ShowPlayerDialog(playerid,Createclass,DIALOG_STYLE_LIST,"Custom 1","PRIMARY\nSECONDARY\nLETHAL","Select","Back");
  391. return 1;
  392. }
  393. }
  394. if(dialogid == PrimaryMACHINE)
  395. {
  396. if(response)
  397. {
  398. if(listitem == 0)
  399. {
  400. SendClientMessage(playerid,0xFFFF00AA,"PRIMARY Set To: M4...");
  401. PlayerPrimary[playerid][Tec9]=0;
  402. PlayerPrimary[playerid][Micro]=0;
  403. PlayerPrimary[playerid][SMG]=0;
  404. PlayerPrimary[playerid][M4]=1;
  405. PlayerPrimary[playerid][AK47]=0;
  406. PlayerPrimary[playerid][Shotgun]=0;
  407. PlayerPrimary[playerid][Sawnoff]=0;
  408. PlayerPrimary[playerid][Combat]=0;
  409. PlayerPrimary[playerid][Rifle]=0;
  410. PlayerPrimary[playerid][Sniper]=0;
  411. return 1;
  412. }
  413. if(listitem == 1)
  414. {
  415. SendClientMessage(playerid,0xFFFF00AA,"PRIMARY Set To: AK47...");
  416. PlayerPrimary[playerid][Tec9]=0;
  417. PlayerPrimary[playerid][Micro]=0;
  418. PlayerPrimary[playerid][SMG]=0;
  419. PlayerPrimary[playerid][M4]=0;
  420. PlayerPrimary[playerid][AK47]=1;
  421. PlayerPrimary[playerid][Shotgun]=0;
  422. PlayerPrimary[playerid][Sawnoff]=0;
  423. PlayerPrimary[playerid][Combat]=0;
  424. PlayerPrimary[playerid][Rifle]=0;
  425. PlayerPrimary[playerid][Sniper]=0;
  426. return 1;
  427. }
  428. }
  429. else
  430. {
  431. ShowPlayerDialog(playerid,Createclass,DIALOG_STYLE_LIST,"Custom 1","PRIMARY\nSECONDARY\nLETHAL","Select","Back");
  432. return 1;
  433. }
  434. }
  435. if(dialogid == PrimarySHOTGUN)
  436. {
  437. if(response)
  438. {
  439. if(listitem == 0)
  440. {
  441. SendClientMessage(playerid,0xFFFF00AA,"PRIMARY Set To: Shotgun...");
  442. PlayerPrimary[playerid][Tec9]=0;
  443. PlayerPrimary[playerid][Micro]=0;
  444. PlayerPrimary[playerid][SMG]=0;
  445. PlayerPrimary[playerid][M4]=0;
  446. PlayerPrimary[playerid][AK47]=0;
  447. PlayerPrimary[playerid][Shotgun]=1;
  448. PlayerPrimary[playerid][Sawnoff]=0;
  449. PlayerPrimary[playerid][Combat]=0;
  450. PlayerPrimary[playerid][Rifle]=0;
  451. PlayerPrimary[playerid][Sniper]=0;
  452. return 1;
  453. }
  454. if(listitem == 1)
  455. {
  456. SendClientMessage(playerid,0xFFFF00AA,"PRIMARY Set To: Sawnoff Shotgun...");
  457. PlayerPrimary[playerid][Tec9]=0;
  458. PlayerPrimary[playerid][Micro]=0;
  459. PlayerPrimary[playerid][SMG]=0;
  460. PlayerPrimary[playerid][M4]=0;
  461. PlayerPrimary[playerid][AK47]=0;
  462. PlayerPrimary[playerid][Shotgun]=0;
  463. PlayerPrimary[playerid][Sawnoff]=1;
  464. PlayerPrimary[playerid][Combat]=0;
  465. PlayerPrimary[playerid][Rifle]=0;
  466. PlayerPrimary[playerid][Sniper]=0;
  467. return 1;
  468. }
  469. if(listitem == 2)
  470. {
  471. SendClientMessage(playerid,0xFFFF00AA,"PRIMARY Set To: Combat Shotgun...");
  472. PlayerPrimary[playerid][Tec9]=0;
  473. PlayerPrimary[playerid][Micro]=0;
  474. PlayerPrimary[playerid][SMG]=0;
  475. PlayerPrimary[playerid][M4]=0;
  476. PlayerPrimary[playerid][AK47]=0;
  477. PlayerPrimary[playerid][Shotgun]=0;
  478. PlayerPrimary[playerid][Sawnoff]=0;
  479. PlayerPrimary[playerid][Combat]=1;
  480. PlayerPrimary[playerid][Rifle]=0;
  481. PlayerPrimary[playerid][Sniper]=0;
  482. return 1;
  483. }
  484. }
  485. else
  486. {
  487. ShowPlayerDialog(playerid,Createclass,DIALOG_STYLE_LIST,"Custom 1","PRIMARY\nSECONDARY\nLETHAL","Select","Back");
  488. return 1;
  489. }
  490. }
  491. if(dialogid == PrimaryRIFLE)
  492. {
  493. if(response)
  494. {
  495. if(listitem == 0)
  496. {
  497. SendClientMessage(playerid,0xFFFF00AA,"PRIMARY Set To: Rifle...");
  498. PlayerPrimary[playerid][Tec9]=0;
  499. PlayerPrimary[playerid][Micro]=0;
  500. PlayerPrimary[playerid][SMG]=0;
  501. PlayerPrimary[playerid][M4]=0;
  502. PlayerPrimary[playerid][AK47]=0;
  503. PlayerPrimary[playerid][Shotgun]=0;
  504. PlayerPrimary[playerid][Sawnoff]=0;
  505. PlayerPrimary[playerid][Combat]=0;
  506. PlayerPrimary[playerid][Rifle]=1;
  507. PlayerPrimary[playerid][Sniper]=0;
  508. return 1;
  509. }
  510. if(listitem == 1)
  511. {
  512. SendClientMessage(playerid,0xFFFF00AA,"PRIMARY Set To: Sniper Rifle...");
  513. PlayerPrimary[playerid][Tec9]=0;
  514. PlayerPrimary[playerid][Micro]=0;
  515. PlayerPrimary[playerid][SMG]=0;
  516. PlayerPrimary[playerid][M4]=0;
  517. PlayerPrimary[playerid][AK47]=0;
  518. PlayerPrimary[playerid][Shotgun]=0;
  519. PlayerPrimary[playerid][Sawnoff]=0;
  520. PlayerPrimary[playerid][Combat]=0;
  521. PlayerPrimary[playerid][Rifle]=0;
  522. PlayerPrimary[playerid][Sniper]=1;
  523. return 1;
  524. }
  525. }
  526. else
  527. {
  528. ShowPlayerDialog(playerid,Createclass,DIALOG_STYLE_LIST,"Custom 1","PRIMARY\nSECONDARY\nLETHAL","Select","Back");
  529. return 1;
  530. }
  531. }
  532. if(dialogid == SecondaryPISTOL)
  533. {
  534. if(response)
  535. {
  536. if(listitem == 0)
  537. {
  538. SendClientMessage(playerid,0xFFFF00AA,"SECONDARY Set To: 9MM...");
  539. PlayerSecondary[playerid][mm9]=1;
  540. PlayerSecondary[playerid][Silenced]=0;
  541. PlayerSecondary[playerid][Deagle]=0;
  542. PlayerSecondary[playerid][RPG]=0;
  543. PlayerSecondary[playerid][HSRPG]=0;
  544. return 1;
  545. }
  546. if(listitem == 1)
  547. {
  548. SendClientMessage(playerid,0xFFFF00AA,"SECONDARY Set To: Silenced 9MM...");
  549. PlayerSecondary[playerid][mm9]=0;
  550. PlayerSecondary[playerid][Silenced]=1;
  551. PlayerSecondary[playerid][Deagle]=0;
  552. PlayerSecondary[playerid][RPG]=0;
  553. PlayerSecondary[playerid][HSRPG]=0;
  554. return 1;
  555. }
  556. if(listitem == 2)
  557. {
  558. SendClientMessage(playerid,0xFFFF00AA,"SECONDARY Set To: Deagle...");
  559. PlayerSecondary[playerid][mm9]=0;
  560. PlayerSecondary[playerid][Silenced]=0;
  561. PlayerSecondary[playerid][Deagle]=1;
  562. PlayerSecondary[playerid][RPG]=0;
  563. PlayerSecondary[playerid][HSRPG]=0;
  564. return 1;
  565. }
  566. }
  567. else
  568. {
  569. ShowPlayerDialog(playerid,Createclass,DIALOG_STYLE_LIST,"Custom 1","PRIMARY\nSECONDARY\nLETHAL","Select","Back");
  570. return 1;
  571. }
  572. }
  573. if(dialogid == SecondaryLAUNCHER)
  574. {
  575. if(response)
  576. {
  577. if(listitem == 0)
  578. {
  579. SendClientMessage(playerid,0xFFFF00AA,"SECONDARY Set To: RPG...");
  580. PlayerSecondary[playerid][mm9]=0;
  581. PlayerSecondary[playerid][Silenced]=0;
  582. PlayerSecondary[playerid][Deagle]=0;
  583. PlayerSecondary[playerid][RPG]=1;
  584. PlayerSecondary[playerid][HSRPG]=0;
  585. return 1;
  586. }
  587. if(listitem == 1)
  588. {
  589. SendClientMessage(playerid,0xFFFF00AA,"SECONDARY Set To: Heat Seaking RPG...");
  590. PlayerSecondary[playerid][mm9]=0;
  591. PlayerSecondary[playerid][Silenced]=0;
  592. PlayerSecondary[playerid][Deagle]=0;
  593. PlayerSecondary[playerid][RPG]=0;
  594. PlayerSecondary[playerid][HSRPG]=1;
  595. return 1;
  596. }
  597. }
  598. else
  599. {
  600. ShowPlayerDialog(playerid,Createclass,DIALOG_STYLE_LIST,"Custom 1","PRIMARY\nSECONDARY\nLETHAL","Select","Back");
  601. return 1;
  602. }
  603. }
  604. return 1;
  605. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement