Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.50 KB | None | 0 0
  1. CMD:nhatsung(playerid, params[])
  2. {
  3. if(GetPVarInt(playerid, "IsInArena") >= 0)
  4. {
  5. SendClientMessageEx(playerid, COLOR_WHITE, "Ban khong the lam viec do bay gio, ban dang trong arena!");
  6. return 1;
  7. }
  8. if(GetPVarInt( playerid, "EventToken") != 0)
  9. {
  10. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong the lam dieu nay khi dang trong event.");
  11. return 1;
  12. }
  13. if(PlayerInfo[playerid][pDonateRank] > 2)
  14. {
  15. SendClientMessageEx(playerid, COLOR_GRAD1, "Ban khong the nhat sung khi dang la VIP Gold!");
  16. return 1;
  17. }
  18. new Float:health;
  19. GetPlayerHealth(playerid, health);
  20. if (health < 80)
  21. {
  22. SendClientMessageEx(playerid, COLOR_GRAD1, "Ban khong the nhat sung khi mau nho hon 80!");
  23. return 1;
  24. }
  25.  
  26. if(GetPVarInt(playerid, "Injured") != 0||PlayerCuffed[playerid]!=0||PlayerInfo[playerid][pHospital]!=0||GetPlayerState(playerid) == 7)
  27. {
  28. SendClientMessageEx (playerid, COLOR_GRAD2, "Ban khong the lam dieu do bay gio.");
  29. return 1;
  30. }
  31. if(IsPlayerInAnyVehicle(playerid))
  32. {
  33. SendClientMessageEx (playerid, COLOR_GRAD2, "Ban khong the dua sung trong xe!");
  34. return 1;
  35. }
  36. if(PlayerInfo[playerid][pLawyerFreeTime] > 1)
  37. {
  38. SendClientMessage(playerid, COLOR_LIGHTRED, "Ban can phai doi 10s tu lan chuyen doi vu khi de co the tiep tuc nhat sung sung!");
  39. return 1;
  40. }
  41. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0) return SendClientMessageEx (playerid, COLOR_GRAD2, "Nguoi trong faction va khong the nhat sung!");
  42. if (GetPVarInt(playerid, "GiveWeaponTimer") > 0)
  43. {
  44. new string[58];
  45. format(string, sizeof(string), "Ban phai cho %d giay truoc khi tiep tuc nhat sung.", GetPVarInt(playerid, "GiveWeaponTimer"));
  46. SendClientMessageEx(playerid,COLOR_GREY,string);
  47. return 1;
  48. }
  49. for(new i = 0; i < sizeof(DropInfo); i++)
  50. {
  51. if (IsPlayerInRangeOfPoint(playerid, 2.0,DropInfo[i][DropGunPosX],DropInfo[i][DropGunPosY],DropInfo[i][DropGunPosZ]))
  52. {
  53. if(GetPlayerVirtualWorld(playerid) == DropInfo[i][DropGunVWorld] && GetPlayerInterior(playerid) == DropInfo[i][DropGunVWorld])
  54. {
  55. DestroyDynamicObject(DropObject[i]);
  56. DropInfo[i][DropGunPosX] = 0.0;
  57. DropInfo[i][DropGunPosY] = 0.0;
  58. DropInfo[i][DropGunPosZ] = 0.0;
  59. GivePlayerValidWeapon(playerid, DropInfo[i][DropGunModel], 60000);
  60. new string3[128];
  61. format(string3, sizeof(string3), "* %s da nhat sung tu duoi dat len.", GetPlayerNameEx(playerid));
  62. ProxDetector(15.0, playerid, string3, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  63. ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  64. return 1;
  65. }
  66. }
  67. }
  68. return 1;
  69. }
  70.  
  71. CMD:vutsung(playerid, params[])
  72. {
  73. if(isnull(params))
  74. {
  75. SendClientMessageEx(playerid, COLOR_GREY, "Su dung: /vutsung [weapon name]");
  76. SendClientMessageEx(playerid, COLOR_GRAD2, "Available Names: sdpistol, shotgun, 9mm, mp5, uzi, tec9, rifle, deagle, ak47, m4, spas12, camera");
  77. SendClientMessageEx(playerid, COLOR_GRAD2, "Available Names: flowers, knuckles, baseballbat, cane, shovel, poolcue, golfclub, katana, dildo, parachute");
  78. if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
  79. {
  80. SendClientMessageEx(playerid, COLOR_GRAD2, "Available Names: knife");
  81. }
  82. if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pDivision] == 2 || (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] >= 5) || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pMember] == 11)
  83. {
  84. SendClientMessageEx(playerid, COLOR_GRAD2, "Available Names: nitestick, mace, smoke, chainsaw, fire");
  85. }
  86. return 1;
  87. }
  88.  
  89. if(IsPlayerInAnyVehicle(playerid))
  90. {
  91. SendClientMessageEx (playerid, COLOR_GRAD2, "Ban khong the vut sung trong xe!");
  92. return 1;
  93. }
  94. if(GetPVarInt(playerid, "IsInArena") >= 0)
  95. {
  96. SendClientMessageEx(playerid, COLOR_WHITE, "Ban khong the lam viec do bay gio, ban dang trong Dau Truong!");
  97. return 1;
  98. }
  99. if(GetPVarInt( playerid, "EventToken") != 0)
  100. {
  101. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong the lam dieu nay khi dang trong event.");
  102. return 1;
  103. }
  104. new string[128];
  105. if(strcmp(params, "sdpistol", true) == 0)
  106. {
  107. if(PlayerInfo[playerid][pGuns][ 2 ] == 23)
  108. {
  109. if(pTazer{playerid} == 1) return SendClientMessageEx(playerid, COLOR_RED, "Ban khong the vut bo sung dien.");
  110. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo silenced pistol.");
  111. format(string, sizeof(string), "* %s da vut bo silenced pistol.", GetPlayerNameEx(playerid));
  112. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  113. RemovePlayerWeapon(playerid, 23);
  114. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  115. new Float:X,Float:Y,Float:Z;
  116. GetPlayerPos(playerid, X, Y, Z);
  117. new GunID = 23;
  118. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  119. }
  120. else
  121. {
  122. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  123. }
  124. }
  125. else if(strcmp(params, "camera", true) == 0)
  126. {
  127. if(PlayerInfo[playerid][pGuns][ 9 ] == 43)
  128. {
  129. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo camera.");
  130. format(string, sizeof(string), "* %s da vut bo camera.", GetPlayerNameEx(playerid));
  131. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  132. RemovePlayerWeapon(playerid, 43);
  133. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  134. new Float:X,Float:Y,Float:Z;
  135. GetPlayerPos(playerid, X, Y, Z);
  136. new GunID = 43;
  137. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  138. }
  139. else
  140. {
  141. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  142. }
  143. }
  144. else if(strcmp(params, "nitestick", true) == 0)
  145. {
  146. if(PlayerInfo[playerid][pGuns][1] == 3)
  147. {
  148. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo nitestick.");
  149. format(string, sizeof(string), "* %s da vut bo nitestick.", GetPlayerNameEx(playerid));
  150. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  151. RemovePlayerWeapon(playerid, 3);
  152. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  153. new Float:X,Float:Y,Float:Z;
  154. GetPlayerPos(playerid, X, Y, Z);
  155. new GunID = 3;
  156. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  157. }
  158. else
  159. {
  160. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  161. }
  162. }
  163. else if(strcmp(params, "mace", true) == 0)
  164. {
  165. if(PlayerInfo[playerid][pGuns][9] == 41)
  166. {
  167. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo mace.");
  168. format(string, sizeof(string), "* %s da vut bo mace.", GetPlayerNameEx(playerid));
  169. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  170. RemovePlayerWeapon(playerid, 41);
  171. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  172. new Float:X,Float:Y,Float:Z;
  173. GetPlayerPos(playerid, X, Y, Z);
  174. new GunID = 41;
  175. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  176. }
  177. else
  178. {
  179. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  180. }
  181. }
  182. else if(strcmp(params, "knife", true) == 0)
  183. {
  184. if(PlayerInfo[playerid][pGuns][ 1 ] == 4)
  185. {
  186. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo dao.");
  187. format(string, sizeof(string), "* %s da vut bo dao.", GetPlayerNameEx(playerid));
  188. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  189. RemovePlayerWeapon(playerid, 4);
  190. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  191. new Float:X,Float:Y,Float:Z;
  192. GetPlayerPos(playerid, X, Y, Z);
  193. new GunID = 4;
  194. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  195. }
  196. else
  197. {
  198. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  199. }
  200. }
  201. else if(strcmp(params, "9mm", true) == 0)
  202. {
  203. if(PlayerInfo[playerid][pGuns][ 2 ] == 22)
  204. {
  205. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo 9mm pistol.");
  206. format(string, sizeof(string), "* %s da vut bo 9mm pistol.", GetPlayerNameEx(playerid));
  207. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  208. RemovePlayerWeapon(playerid, 22);
  209. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  210. new Float:X,Float:Y,Float:Z;
  211. GetPlayerPos(playerid, X, Y, Z);
  212. new GunID = 22;
  213. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  214. }
  215. else
  216. {
  217. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  218. }
  219. }
  220. else if(strcmp(params, "shotgun", true) == 0)
  221. {
  222. if(PlayerInfo[playerid][pGuns][ 3 ] == 25)
  223. {
  224. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo shotgun.");
  225. format(string, sizeof(string), "* %s da vut bo shotgun.", GetPlayerNameEx(playerid));
  226. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  227. RemovePlayerWeapon(playerid, 25);
  228. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  229. new Float:X,Float:Y,Float:Z;
  230. GetPlayerPos(playerid, X, Y, Z);
  231. new GunID = 25;
  232. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  233. }
  234. else
  235. {
  236. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  237. }
  238. }
  239. else if(strcmp(params, "mp5", true) == 0)
  240. {
  241. if(PlayerInfo[playerid][pGuns][ 4 ] == 29)
  242. {
  243. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo MP5.");
  244. format(string, sizeof(string), "* %s da vut bo MP5.", GetPlayerNameEx(playerid));
  245. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  246. RemovePlayerWeapon(playerid, 29);
  247. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  248. new Float:X,Float:Y,Float:Z;
  249. GetPlayerPos(playerid, X, Y, Z);
  250. new GunID = 29;
  251. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  252. }
  253. else
  254. {
  255. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  256. }
  257. }
  258. else if(strcmp(params, "uzi", true) == 0)
  259. {
  260. if(PlayerInfo[playerid][pGuns][ 4 ] == 28)
  261. {
  262. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo Micro SMG.");
  263. format(string, sizeof(string), "* %s da vut bo Micro SMG.", GetPlayerNameEx(playerid));
  264. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  265. RemovePlayerWeapon(playerid, 28);
  266. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  267. new Float:X,Float:Y,Float:Z;
  268. GetPlayerPos(playerid, X, Y, Z);
  269. new GunID = 28;
  270. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  271. }
  272. else
  273. {
  274. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  275. }
  276. }
  277. else if(strcmp(params, "uzi", true) == 0)
  278. {
  279. if(PlayerInfo[playerid][pGuns][ 4 ] == 32)
  280. {
  281. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo Tec-9.");
  282. format(string, sizeof(string), "* %s da vut bo Tec-9.", GetPlayerNameEx(playerid));
  283. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  284. RemovePlayerWeapon(playerid, 32);
  285. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  286. new Float:X,Float:Y,Float:Z;
  287. GetPlayerPos(playerid, X, Y, Z);
  288. new GunID = 32;
  289. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  290. }
  291. else
  292. {
  293. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  294. }
  295. }
  296. else if(strcmp(params, "deagle", true) == 0)
  297. {
  298. if(PlayerInfo[playerid][pGuns][ 2 ] == 24)
  299. {
  300. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo Desert Eagle.");
  301. format(string, sizeof(string), "* %s da vut bo Desert Eagle.", GetPlayerNameEx(playerid));
  302. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  303. RemovePlayerWeapon(playerid, 24);
  304. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  305. new Float:X,Float:Y,Float:Z;
  306. GetPlayerPos(playerid, X, Y, Z);
  307. new GunID = 24;
  308. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  309. }
  310. else
  311. {
  312. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  313. }
  314. }
  315. else if(strcmp(params, "rifle", true) == 0)
  316. {
  317. if(PlayerInfo[playerid][pGuns][ 6 ] == 33)
  318. {
  319. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo rifle.");
  320. format(string, sizeof(string), "* %s da vut bo rifle.", GetPlayerNameEx(playerid));
  321. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  322. RemovePlayerWeapon(playerid, 33);
  323. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  324. new Float:X,Float:Y,Float:Z;
  325. GetPlayerPos(playerid, X, Y, Z);
  326. new GunID = 33;
  327. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  328. }
  329. else
  330. {
  331. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  332. }
  333. }
  334. else if(strcmp(params, "ak47", true) == 0)
  335. {
  336. if(PlayerInfo[playerid][pGuns][ 5 ] == 30)
  337. {
  338. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo AK-47.");
  339. format(string, sizeof(string), "* %s da vut bo AK-47.", GetPlayerNameEx(playerid));
  340. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  341. RemovePlayerWeapon(playerid, 30);
  342. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  343. new Float:X,Float:Y,Float:Z;
  344. GetPlayerPos(playerid, X, Y, Z);
  345. new GunID = 30;
  346. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  347. }
  348. else
  349. {
  350. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  351. }
  352. }
  353. else if(strcmp(params, "m4", true) == 0)
  354. {
  355. if(PlayerInfo[playerid][pGuns][ 5 ] == 31)
  356. {
  357. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo M4.");
  358. format(string, sizeof(string), "* %s da vut bo M4.", GetPlayerNameEx(playerid));
  359. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  360. RemovePlayerWeapon(playerid, 31);
  361. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  362. new Float:X,Float:Y,Float:Z;
  363. GetPlayerPos(playerid, X, Y, Z);
  364. new GunID = 31;
  365. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  366. }
  367. else
  368. {
  369. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  370. }
  371. }
  372. else if(strcmp(params, "spas12", true) == 0)
  373. {
  374. if(PlayerInfo[playerid][pGuns][ 3 ] == 27)
  375. {
  376. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo SPAS-12.");
  377. format(string, sizeof(string), "* %s da vut bo SPAS-12.", GetPlayerNameEx(playerid));
  378. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  379. RemovePlayerWeapon(playerid, 27);
  380. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  381. new Float:X,Float:Y,Float:Z;
  382. GetPlayerPos(playerid, X, Y, Z);
  383. new GunID = 27;
  384. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  385. }
  386. else
  387. {
  388. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  389. }
  390. }
  391. else if(strcmp(params, "flowers", true) == 0)
  392. {
  393. if(PlayerInfo[playerid][pGuns][ 10 ] == 14)
  394. {
  395. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo flowers.");
  396. format(string, sizeof(string), "* %s da vut bo flowers.", GetPlayerNameEx(playerid));
  397. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  398. RemovePlayerWeapon(playerid, 14);
  399. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  400. new Float:X,Float:Y,Float:Z;
  401. GetPlayerPos(playerid, X, Y, Z);
  402. new GunID = 14;
  403. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  404. }
  405. else
  406. {
  407. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  408. }
  409. }
  410. else if(strcmp(params, "knuckles", true) == 0)
  411. {
  412. if(PlayerInfo[playerid][pGuns][ 0 ] == 1)
  413. {
  414. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo brass knuckles.");
  415. format(string, sizeof(string), "* %s da vut bo brass knuckles.", GetPlayerNameEx(playerid));
  416. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  417. RemovePlayerWeapon(playerid, 1);
  418. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  419. new Float:X,Float:Y,Float:Z;
  420. GetPlayerPos(playerid, X, Y, Z);
  421. new GunID = 1;
  422. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  423. }
  424. else
  425. {
  426. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  427. }
  428. }
  429. else if(strcmp(params, "baseballbat", true) == 0)
  430. {
  431. if(PlayerInfo[playerid][pGuns][ 1 ] == 5)
  432. {
  433. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo baseball bat.");
  434. format(string, sizeof(string), "* %s da vut bo baseball bat.", GetPlayerNameEx(playerid));
  435. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  436. RemovePlayerWeapon(playerid, 5);
  437. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  438. new Float:X,Float:Y,Float:Z;
  439. GetPlayerPos(playerid, X, Y, Z);
  440. new GunID = 5;
  441. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  442. }
  443. else
  444. {
  445. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  446. }
  447. }
  448. else if(strcmp(params, "cane", true) == 0)
  449. {
  450. if(PlayerInfo[playerid][pGuns][ 10 ] == 15)
  451. {
  452. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo cane.");
  453. format(string, sizeof(string), "* %s da vut bo cane.", GetPlayerNameEx(playerid));
  454. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  455. PlayerInfo[playerid][pGuns][ 10 ] = 0;
  456. RemovePlayerWeapon(playerid, 15);
  457. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  458. new Float:X,Float:Y,Float:Z;
  459. GetPlayerPos(playerid, X, Y, Z);
  460. new GunID = 15;
  461. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  462. }
  463. else
  464. {
  465. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  466. }
  467. }
  468. else if(strcmp(params, "shovel", true) == 0)
  469. {
  470. if(PlayerInfo[playerid][pGuns][ 1 ] == 6)
  471. {
  472. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo shovel.");
  473. format(string, sizeof(string), "* %s da vut bo shovel.", GetPlayerNameEx(playerid));
  474. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  475. RemovePlayerWeapon(playerid, 6);
  476. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  477. new Float:X,Float:Y,Float:Z;
  478. GetPlayerPos(playerid, X, Y, Z);
  479. new GunID = 6;
  480. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  481. }
  482. else
  483. {
  484. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  485. }
  486. }
  487. else if(strcmp(params, "golfclub", true) == 0)
  488. {
  489. if(PlayerInfo[playerid][pGuns][ 1 ] == 2)
  490. {
  491. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo golf club.");
  492. format(string, sizeof(string), "* %s da vut bo golf club.", GetPlayerNameEx(playerid));
  493. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  494. RemovePlayerWeapon(playerid, 2);
  495. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  496. new Float:X,Float:Y,Float:Z;
  497. GetPlayerPos(playerid, X, Y, Z);
  498. new GunID = 2;
  499. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  500. }
  501. else
  502. {
  503. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  504. }
  505. }
  506. else if(strcmp(params, "katana") == 0)
  507. {
  508. if(PlayerInfo[playerid][pGuns][ 1 ] == 8)
  509. {
  510. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo katana.");
  511. format(string, sizeof(string), "* %s da vut bo katana.", GetPlayerNameEx(playerid));
  512. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  513. RemovePlayerWeapon(playerid, 8);
  514. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  515. new Float:X,Float:Y,Float:Z;
  516. GetPlayerPos(playerid, X, Y, Z);
  517. new GunID = 8;
  518. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  519. }
  520. else
  521. {
  522. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  523. }
  524. }
  525. else if(strcmp(params, "dildo", true) == 0)
  526. {
  527. if(PlayerInfo[playerid][pGuns][ 10 ] == 10)
  528. {
  529. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo dildo.");
  530. format(string, sizeof(string), "* %s da vut bo dildo.", GetPlayerNameEx(playerid));
  531. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  532. RemovePlayerWeapon(playerid, 10);
  533. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  534. new Float:X,Float:Y,Float:Z;
  535. GetPlayerPos(playerid, X, Y, Z);
  536. new GunID = 10;
  537. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  538. }
  539. else
  540. {
  541. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  542. }
  543. }
  544. else if(strcmp(params, "parachute", true) == 0)
  545. {
  546. if(PlayerInfo[playerid][pGuns][ 11 ] == 46)
  547. {
  548. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo parachute.");
  549. format(string, sizeof(string), "* %s da vut bo parachute.", GetPlayerNameEx(playerid));
  550. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  551. RemovePlayerWeapon(playerid, 46);
  552. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  553. new Float:X,Float:Y,Float:Z;
  554. GetPlayerPos(playerid, X, Y, Z);
  555. new GunID = 46;
  556. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  557. }
  558. else
  559. {
  560. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  561. }
  562. }
  563. else if(strcmp(params, "smoke", true) == 0)
  564. {
  565. if(PlayerInfo[playerid][pGuns][ 8 ] == 17)
  566. {
  567. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo smoke grenade.");
  568. format(string, sizeof(string), "* %s da vut bo smoke grenade.", GetPlayerNameEx(playerid));
  569. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  570. RemovePlayerWeapon(playerid, 17);
  571. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  572. new Float:X,Float:Y,Float:Z;
  573. GetPlayerPos(playerid, X, Y, Z);
  574. new GunID = 17;
  575. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  576. }
  577. else
  578. {
  579. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  580. }
  581. }
  582. else if(strcmp(params, "chainsaw", true) == 0)
  583. {
  584. if(PlayerInfo[playerid][pGuns][ 1 ] == 9)
  585. {
  586. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo chainsaw.");
  587. format(string, sizeof(string), "* %s da vut bo chainsaw.", GetPlayerNameEx(playerid));
  588. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  589. RemovePlayerWeapon(playerid, 9);
  590. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  591. new Float:X,Float:Y,Float:Z;
  592. GetPlayerPos(playerid, X, Y, Z);
  593. new GunID = 9;
  594. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  595. }
  596. else
  597. {
  598. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  599. }
  600. }
  601. else if(strcmp(params, "fire", true) == 0)
  602. {
  603. if(PlayerInfo[playerid][pGuns][ 9 ] == 42)
  604. {
  605. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo fire extinguisher.");
  606. format(string, sizeof(string), "* %s da vut bo fire extinguisher.", GetPlayerNameEx(playerid));
  607. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  608. RemovePlayerWeapon(playerid, 42);
  609. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  610. new Float:X,Float:Y,Float:Z;
  611. GetPlayerPos(playerid, X, Y, Z);
  612. new GunID = 42;
  613. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  614. }
  615. else
  616. {
  617. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  618. }
  619. }
  620. else if(strcmp(params, "minigun", true) == 0)
  621. {
  622. if(PlayerInfo[playerid][pGuns][ 7 ] == 38)
  623. {
  624. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo minigun.");
  625. format(string, sizeof(string), "* %s da vut bo minigun.", GetPlayerNameEx(playerid));
  626. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  627. RemovePlayerWeapon(playerid, 38);
  628. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  629. new Float:X,Float:Y,Float:Z;
  630. GetPlayerPos(playerid, X, Y, Z);
  631. new GunID = 38;
  632. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  633. }
  634. else
  635. {
  636. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  637. }
  638. }
  639. else if(strcmp(params, "poolcue", true) == 0)
  640. {
  641. if(PlayerInfo[playerid][pGuns][ 1 ] == 7)
  642. {
  643. SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da vut bo pool cue.");
  644. format(string, sizeof(string), "* %s da vut bo pool cue.", GetPlayerNameEx(playerid));
  645. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  646. RemovePlayerWeapon(playerid, 7);
  647. if(PlayerInfo[playerid][pMember] != 0 || PlayerInfo[playerid][pLeader] != 0 || PlayerInfo[playerid][pDonateRank] > 2) return 1;
  648. new Float:X,Float:Y,Float:Z;
  649. GetPlayerPos(playerid, X, Y, Z);
  650. new GunID = 7;
  651. DropGun(playerid, GunID,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
  652. }
  653. else
  654. {
  655. SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co loai vu khi do!");
  656. }
  657. }
  658. else
  659. {
  660. SendClientMessageEx(playerid, COLOR_GRAD1, "Ten vu khi khong hop le.");
  661. }
  662. return 1;
  663. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement