Guest User

FuNk V.I.P System +30 Commands/Dini

a guest
Jun 8th, 2016
1,544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.93 KB | None | 0 0
  1. /*
  2. ___________________________________________________________________
  3. | |
  4. | VIP System FilterScript Maded By |
  5. | ____ ____ ___ |
  6. | |___ U N K Y | HE | __ R E A T |
  7. | | | |___| |
  8. |__________________________________________________________________|*/
  9. #define FILTERSCRIPT
  10. #include <a_samp>
  11. #include <zcmd>
  12. #include <foreach>
  13. #include <streamer>
  14. #include <sscanf2>
  15. #include <dini>
  16.  
  17.  
  18. #define COLOR_RED 0xFF0000FF
  19. #define COLOR_GREEN 0x33AA33AA
  20. #define COLOR_WHITE 0xFFFFFFFF
  21. #define COLOR_YELLOW 0xFFFF00FF
  22. #define Grey 0xC0C0C0FF
  23.  
  24.  
  25. #define MAX_LAUNCH 20
  26. #define RocketHeight 50
  27. #define RocketSpread 30
  28. #define MAX_FIREWORKS2 100
  29.  
  30. #define MAX_VIP 3
  31. #define PlayerFile "FuNkVip/%s.ini"
  32. #define N 69
  33. #define DIALOG_CMD_1 1
  34. #define DIALOG_CMD_2 2
  35.  
  36. new Text3D:playerLabels[MAX_PLAYERS];
  37. new String[128], Float:SpecX[MAX_PLAYERS], Float:SpecY[MAX_PLAYERS], Float:SpecZ[MAX_PLAYERS], vWorld[MAX_PLAYERS], Inter[MAX_PLAYERS];
  38. new IsSpecing[MAX_PLAYERS], Name[MAX_PLAYER_NAME], IsPlayerSpecing[MAX_PLAYERS],spectatorid[MAX_PLAYERS];
  39. new Flaming[MAX_PLAYERS];
  40. new hunter[MAX_PLAYERS];
  41. new hydra[MAX_PLAYERS];
  42. new tank[MAX_PLAYERS];
  43. new FireworkTotal;
  44. new Rocket[MAX_LAUNCH];
  45. new RocketLight[MAX_LAUNCH];
  46. new RocketSmoke[MAX_LAUNCH];
  47. new RocketExplosions[MAX_LAUNCH];
  48. new Float:ry4[MAX_LAUNCH];
  49. new Float:rx4[MAX_LAUNCH];
  50. new Float:rz4[MAX_LAUNCH];
  51. new Fired;
  52.  
  53.  
  54.  
  55. #define yellow "{ffff00}"
  56. #define cyan "{00ff00}"
  57. #define pink "{ffffff}"
  58. #define orange "{ff0000}"
  59. #define blue "{0000ff}"
  60. #define red "{ff0000}"
  61. #define white "{ffffff}"
  62. #define grey "{AFAFAF}"
  63.  
  64. //#pragma tabsize 0
  65.  
  66. enum dData
  67. {
  68. Vip
  69. }
  70. new PlayerInfo[MAX_PLAYERS][dData];
  71.  
  72. new grider[ MAX_PLAYERS ][ 3 ];
  73.  
  74. public OnFilterScriptInit()
  75. {
  76. print("\n |----------------------------------------|");
  77. print(" |------VIP SYSTEM BY FuNkY The Great!----|");
  78. print(" |------------------LOADED----------------|");
  79. print(" |----------------------------------------|\n");
  80. CreateDynamicObject(18751, 4802.12012, -4921.35010, 6.67293, 0.00000, 0.00000, 0.00000);
  81. CreateDynamicObject(18751, 4746.02295, -4921.96045, 4.34322, 0.00000, 0.00000, 0.00000);
  82. CreateDynamicObject(18751, 4746.04004, -4875.93018, 3.81000, 0.00000, 0.00000, 0.00000);
  83. CreateDynamicObject(18751, 4802.34082, -4871.46094, 3.31268, 0.00000, 0.00000, 0.00000);
  84. CreateDynamicObject(710, 4826.47314, -4832.06494, 20.74428, 0.00000, 0.00000, 0.00000);
  85. CreateDynamicObject(710, 4721.94336, -4955.22510, 21.57000, 0.00000, 0.00000, 0.00000);
  86. CreateDynamicObject(710, 4773.87988, -4955.72021, 22.53000, 0.00000, 0.00000, 0.00000);
  87. CreateDynamicObject(710, 4808.41016, -4954.20020, 20.53000, 0.00000, 0.00000, 0.00000);
  88. CreateDynamicObject(18751, 4784.10010, -4896.81006, 2.81000, 0.00000, 0.00000, 0.00000);
  89. CreateDynamicObject(18751, 4787.81982, -4891.87012, 2.81000, 0.00000, 0.00000, 0.00000);
  90. CreateDynamicObject(18751, 4787.83984, -4903.91016, 4.38598, 0.00000, 0.00000, 0.00000);
  91. CreateDynamicObject(710, 4788.97021, -4962.02002, 19.35000, 0.00000, 0.00000, 0.00000);
  92. CreateDynamicObject(710, 4743.64990, -4964.54980, 18.60000, 0.00000, 0.00000, 0.00000);
  93. CreateDynamicObject(710, 4837.95264, -4837.46045, 15.85000, 0.00000, 0.00000, 0.00000);
  94. CreateDynamicObject(710, 4773.89014, -4833.87988, 18.35000, 0.00000, 0.00000, 0.00000);
  95. CreateDynamicObject(710, 4737.66016, -4829.93994, 15.60000, 0.00000, 0.00000, 0.00000);
  96. CreateDynamicObject(710, 4715.45020, -4838.33008, 18.35000, 0.00000, 0.00000, 0.00000);
  97. CreateDynamicObject(1646, 4794.25439, -4835.37305, 4.16685, 3.42000, 358.38010, 179.42000);
  98. CreateDynamicObject(18751, 4740.95068, -4875.92676, 4.04000, 0.00000, 0.00000, 0.00000);
  99. CreateDynamicObject(1609, 4791.12842, -4822.72656, 0.95654, 349.00000, -14.00000, 260.00000);
  100. CreateDynamicObject(1610, 4802.07813, -4835.96484, 4.27208, 0.00000, 0.00000, 0.00000);
  101. CreateDynamicObject(6295, 4925.19287, -4893.31299, 25.59238, 0.00000, 0.00000, 0.00000);
  102. CreateDynamicObject(11495, 4856.98291, -4893.60059, 0.84668, 0.00000, 0.00000, -89.40002);
  103. CreateDynamicObject(18751, 4922.81152, -4888.31201, -3.02000, 0.00000, 0.00000, 0.00000);
  104. CreateDynamicObject(710, 4945.32080, -4915.31934, 15.00000, 0.00000, 0.00000, 0.00000);
  105. CreateDynamicObject(710, 4707.08008, -4968.39014, 17.85000, 0.00000, 0.00000, 0.00000);
  106. CreateDynamicObject(1607, 4879.66553, -4911.39600, 0.00000, 0.00000, 0.00000, 0.00000);
  107. CreateDynamicObject(1637, 4933.35693, -4881.44873, 3.79128, 0.00000, 0.00000, 92.00000);
  108. CreateDynamicObject(902, 4847.81006, -4879.33008, 1.80000, 0.00000, 22.25000, 0.00000);
  109. CreateDynamicObject(11495, 4744.93994, -4819.68994, 1.62000, 0.00000, 0.00000, 12.00000);
  110. CreateDynamicObject(11495, 4740.79004, -4800.04004, 7.37000, 32.25000, 0.00000, 11.99000);
  111. CreateDynamicObject(11495, 4739.54004, -4794.22998, 11.15000, 34.74000, 0.00000, 11.99000);
  112. CreateDynamicObject(710, 4817.23047, -4963.40625, 19.97247, 0.00000, 0.00000, 0.00000);
  113. CreateDynamicObject(1255, 4817.37354, -4836.19092, 4.49269, 0.00000, 0.00000, 90.00000);
  114. CreateDynamicObject(1255, 4815.88818, -4836.13525, 4.35314, 0.00000, 0.00000, 90.00000);
  115. CreateDynamicObject(1255, 4814.24609, -4836.20020, 4.23792, 0.00000, 0.00000, 90.00000);
  116. CreateDynamicObject(1255, 4812.45117, -4836.20313, 4.01941, 0.00000, 0.00000, 90.00000);
  117. CreateDynamicObject(1255, 4810.80225, -4836.16748, 4.08267, 0.00000, 0.00000, 90.00000);
  118. CreateDynamicObject(710, 4824.68311, -4955.00537, 19.97247, 0.00000, 0.00000, 0.00000);
  119. CreateDynamicObject(710, 4788.42529, -4951.52148, 20.53000, 0.00000, 0.00000, 0.00000);
  120. CreateDynamicObject(710, 4780.04248, -4841.18311, 18.35000, 0.00000, 0.00000, 0.00000);
  121. CreateDynamicObject(710, 4830.32666, -4845.04932, 15.85000, 0.00000, 0.00000, 0.00000);
  122. CreateDynamicObject(710, 4780.12549, -4829.68652, 16.86380, 0.00000, 0.00000, 0.00000);
  123. CreateDynamicObject(946, 4801.90234, -4852.82666, 7.80277, 0.00000, 0.00000, -183.00000);
  124. CreateDynamicObject(2114, 4802.89795, -4857.03955, 6.57775, 0.00000, 0.00000, 0.00000);
  125. CreateDynamicObject(2114, 4802.78906, -4856.07959, 6.31926, 0.00000, 0.00000, 0.00000);
  126. CreateDynamicObject(2114, 4802.04199, -4855.85303, 6.31414, 0.00000, 0.00000, 0.00000);
  127. CreateDynamicObject(2114, 4802.78369, -4853.23877, 5.76425, 0.00000, 0.00000, 0.00000);
  128. CreateDynamicObject(7885, 4684.05078, -4901.29785, 9.03502, 0.00000, 0.00000, -179.69997);
  129. CreateDynamicObject(18751, 4693.11084, -4873.19189, 4.23841, 0.00000, 0.00000, -0.12000);
  130. CreateDynamicObject(18751, 4695.86328, -4900.17432, 3.78630, 0.00000, 0.00000, 0.00000);
  131. CreateDynamicObject(11490, 4749.26758, -4945.56738, 8.75713, 0.00000, 0.00000, -178.56004);
  132. CreateDynamicObject(11490, 4746.17725, -4851.89893, 6.30232, 0.00000, 0.00000, -361.44003);
  133. CreateDynamicObject(1637, 4807.22266, -4938.17480, 10.69296, 0.00000, 0.00000, -92.63999);
  134. CreateDynamicObject(1637, 4787.43848, -4853.73975, 6.93244, 0.00000, 0.00000, -92.63999);
  135. CreateDynamicObject(1637, 4817.80127, -4859.22754, 8.90793, 0.00000, 0.00000, -92.63999);
  136. CreateDynamicObject(1637, 4712.00439, -4853.34082, 7.90997, 0.00000, 0.00000, -92.63999);
  137. CreateDynamicObject(1637, 4823.50635, -4938.40576, 8.81250, 0.00000, 0.00000, -92.63999);
  138. CreateDynamicObject(710, 4693.75439, -4970.40283, 17.18793, 0.00000, 0.00000, 0.00000);
  139. CreateDynamicObject(710, 4657.75879, -4924.02588, 17.18793, 0.00000, 0.00000, 0.00000);
  140. CreateDynamicObject(710, 4658.07520, -4907.76416, 17.18793, 0.00000, 0.00000, 0.00000);
  141. CreateDynamicObject(710, 4657.05957, -4891.33789, 17.18793, 0.00000, 0.00000, 0.00000);
  142. CreateDynamicObject(710, 4656.95898, -4877.19775, 17.18793, 0.00000, 0.00000, 0.00000);
  143. CreateDynamicObject(710, 4717.89502, -4831.73486, 17.18793, 0.00000, 0.00000, 0.00000);
  144. CreateDynamicObject(710, 4739.40918, -4837.42383, 17.18793, 0.00000, 0.00000, 0.00000);
  145. CreateDynamicObject(710, 4739.61523, -4956.74170, 21.57000, 0.00000, 0.00000, 0.00000);
  146. CreateDynamicObject(16113, 4671.47607, -4839.64551, 3.78175, 0.00000, 0.00000, -99.77999);
  147. CreateDynamicObject(16113, 4658.78857, -4945.57666, 1.42834, 0.00000, 0.00000, -8.81997);
  148. CreateDynamicObject(19840, 4684.02881, -4959.41504, 9.58090, 0.00000, 0.00000, -262.68002);
  149. CreateDynamicObject(19840, 4680.68018, -4954.89258, 10.86070, 10.98000, 5.82000, -234.66005);
  150. CreateDynamicObject(19840, 4677.14307, -4948.31592, 9.89300, 10.98000, 5.82000, -234.66005);
  151. CreateDynamicObject(19840, 4672.73584, -4940.96143, 9.95224, 10.98000, 5.82000, -245.52003);
  152. CreateDynamicObject(19840, 4689.91797, -4840.39453, 10.86070, -0.96000, 4.74000, -310.92026);
  153. CreateDynamicObject(19840, 4686.27979, -4847.92236, 10.64217, 10.98000, 5.82000, -310.80014);
  154. CreateDynamicObject(19840, 4678.24365, -4854.27344, 10.86070, 10.98000, 5.82000, -310.80014);
  155. CreateDynamicObject(19840, 4672.64014, -4859.58838, 10.86070, 10.98000, 5.82000, -310.80014);
  156. CreateDynamicObject(710, 4705.20020, -4959.15820, 21.57000, 0.00000, 0.00000, 0.00000);
  157. CreateDynamicObject(710, 4721.92871, -4963.41699, 21.57000, 0.00000, 0.00000, 0.00000);
  158. CreateDynamicObject(11495, 4877.27881, -4893.28613, 0.83069, 0.00000, 0.00000, -89.40002);
  159. CreateDynamicObject(11495, 4895.73438, -4893.00635, 0.84599, 0.00000, 0.00000, -89.40002);
  160. CreateDynamicObject(710, 4940.00830, -4870.58496, 15.00000, 0.00000, 0.00000, 0.00000);
  161. CreateDynamicObject(710, 4935.12012, -4876.46387, 15.00000, 0.00000, 0.00000, 0.00000);
  162. CreateDynamicObject(710, 4941.94189, -4908.08252, 15.00000, 0.00000, 0.00000, 0.00000);
  163. CreateDynamicObject(710, 4900.04980, -4915.29053, 15.00000, 0.00000, 0.00000, 0.00000);
  164. CreateDynamicObject(710, 4906.40625, -4876.66992, 15.00000, 0.00000, 0.00000, 0.00000);
  165. CreateDynamicObject(1607, 4873.10645, -4884.13037, 0.00000, 0.00000, 0.00000, 0.00000);
  166. CreateDynamicObject(1607, 4957.46338, -4935.98779, 0.00000, 0.00000, 0.00000, 0.00000);
  167. CreateDynamicObject(745, 4698.40430, -4864.69287, 8.70323, 0.00000, 0.00000, 0.00000);
  168. CreateDynamicObject(745, 4695.80273, -4938.62256, 8.70323, 0.00000, 0.00000, 0.00000);
  169. CreateDynamicObject(745, 4692.30811, -4941.71826, 8.70323, 0.00000, 0.00000, 0.00000);
  170. CreateDynamicObject(745, 4695.63770, -4860.45947, 8.70323, 0.00000, 0.00000, 0.00000);
  171. CreateDynamicObject(3532, 4742.07617, -4941.25049, 9.53255, 0.00000, 0.00000, -86.52001);
  172. CreateDynamicObject(3532, 4736.33740, -4942.64893, 8.95635, 0.00000, 0.00000, -86.52001);
  173. CreateDynamicObject(3532, 4731.88574, -4942.69727, 8.21329, 0.00000, 0.00000, -86.52001);
  174. CreateDynamicObject(3532, 4731.91357, -4942.66211, 9.27123, 0.00000, 0.00000, -86.52001);
  175. CreateDynamicObject(3532, 4756.76025, -4940.46729, 10.26024, 0.00000, 0.00000, -86.52001);
  176. CreateDynamicObject(3532, 4762.37695, -4941.50049, 9.39235, 0.00000, 0.00000, -86.52001);
  177. CreateDynamicObject(3532, 4765.05371, -4941.25586, 9.39235, 0.00000, 0.00000, -86.52001);
  178. CreateDynamicObject(3532, 4760.24072, -4939.98193, 9.78624, 0.00000, 0.00000, -86.52001);
  179. CreateDynamicObject(3532, 4738.71045, -4941.36426, 9.28675, 0.00000, 0.00000, -86.52001);
  180. CreateDynamicObject(3532, 4753.39258, -4855.66016, 7.29259, 0.00000, 0.00000, -85.50002);
  181. CreateDynamicObject(3532, 4758.84863, -4855.15918, 7.35323, 0.00000, 0.00000, -85.50002);
  182. CreateDynamicObject(3532, 4762.96094, -4855.47949, 7.43544, 0.00000, 0.00000, -85.50002);
  183. CreateDynamicObject(3532, 4755.98682, -4855.89551, 7.29259, 0.00000, 0.00000, -85.50002);
  184. CreateDynamicObject(3532, 4738.30420, -4855.46680, 7.25043, 0.00000, 0.00000, -85.50002);
  185. CreateDynamicObject(3532, 4732.93604, -4854.70898, 7.25043, 0.00000, 0.00000, -85.50002);
  186. CreateDynamicObject(3532, 4730.74707, -4854.52100, 7.25043, 0.00000, 0.00000, -85.50002);
  187. CreateDynamicObject(3532, 4736.14063, -4855.77881, 7.25043, 0.00000, 0.00000, -85.50002);
  188. CreateDynamicObject(6965, 4745.97852, -4901.49512, 9.03167, 0.00000, 0.00000, 0.00000);
  189. CreateDynamicObject(3532, 4729.43799, -4944.64893, 7.26509, 0.00000, 0.00000, -198.00002);
  190. CreateDynamicObject(3532, 4728.49414, -4944.21484, 8.61321, 0.00000, 0.00000, -198.00002);
  191. CreateDynamicObject(3532, 4728.49414, -4944.21484, 7.66660, 0.00000, 0.00000, -198.00002);
  192. CreateDynamicObject(8171, 4780.84570, -4990.89063, 3.48947, 0.00000, 0.00000, -90.30000);
  193. CreateDynamicObject(8171, 4716.85352, -4990.63770, 3.48947, 0.00000, 0.00000, -270.23996);
  194. CreateDynamicObject(8251, 4661.78662, -4990.14746, 7.22764, 0.00000, 0.00000, 0.00000);
  195. CreateDynamicObject(18751, 4693.18848, -4922.93848, 4.64507, 0.00000, 0.00000, 0.00000);
  196. CreateDynamicObject(9245, 4659.11133, -4967.38965, 14.09375, 0.00000, 0.00000, -180.53990);
  197. CreateDynamicObject(18850, 4662.08838, -5022.41699, -8.59115, 0.00000, 0.00000, 0.00000);
  198. CreateDynamicObject(1646, 4795.61670, -4835.36816, 4.23918, 3.42000, 358.38010, 179.42000);
  199. CreateDynamicObject(1646, 4797.00049, -4835.37793, 4.39105, 3.42000, 358.38010, 179.42000);
  200. CreateDynamicObject(1646, 4798.43799, -4835.46045, 4.52124, 3.42000, 358.38010, 179.42000);
  201. CreateDynamicObject(1646, 4800.02539, -4835.47607, 4.58633, 3.42000, 358.38010, 179.42000);
  202. CreateVehicle(519, 4664.0591, -4990.2681, 5.5556, -89.8200, -1, -1, 100);
  203. CreateVehicle(563, 4663.5220, -5022.4502, 4.9671, -88.5600, -1, -1, 100);
  204. return 1;
  205. }
  206.  
  207. public OnFilterScriptExit()
  208. {
  209. return 1;
  210. }
  211.  
  212. public OnPlayerConnect(playerid)
  213. {
  214. new file[256], name[MAX_PLAYER_NAME];
  215. GetPlayerName(playerid,name,sizeof(name));
  216. format(file,sizeof(file),PlayerFile,name);
  217. if(!dini_Exists(file) )
  218. {
  219. dini_Create(file);
  220. dini_Set(file,"Name",name);
  221. dini_IntSet(file,"Vip",0);
  222. PlayerInfo[playerid][Vip] = 0;
  223. }
  224. else
  225. {
  226. PlayerInfo[playerid][Vip] = dini_Int(file,"Vip");
  227.  
  228. new string[256];
  229. format(string,sizeof(string),"Your vip level is %d",PlayerInfo[playerid][Vip]);
  230. SendClientMessage(playerid,COLOR_GREEN,string);
  231. SetPVarInt(playerid, "GodMode", 0);
  232. }
  233. return 1;
  234. }
  235.  
  236. public OnPlayerDisconnect(playerid, reason)
  237. {
  238. Flaming[playerid] = 0;
  239. DestroyVehicle(tank[playerid]);
  240. DestroyVehicle(hydra[playerid]);
  241. DestroyVehicle(hunter[playerid]);
  242. Delete3DTextLabel(playerLabels[playerid]);
  243. new file[256], name[MAX_PLAYER_NAME];
  244. GetPlayerName(playerid,name,sizeof(name));
  245. format(file,sizeof(file),PlayerFile,name);
  246. if(dini_Exists(file) )
  247. {
  248. dini_IntSet(file,"Vip",PlayerInfo[playerid][Vip]);
  249. }
  250. if(IsPlayerSpecing[playerid] == 1)
  251. {
  252. foreach(Player,i)
  253. {
  254. if(spectatorid[i] == playerid)
  255. {
  256. TogglePlayerSpectating(i,false);
  257. }
  258. }
  259. }
  260. return 1;
  261. }
  262. public OnPlayerSpawn(playerid)
  263. {
  264. new ranks[90];
  265. new string[128];
  266. switch(PlayerInfo[playerid][Vip])
  267. {
  268. case 1: ranks = ""red"Bronze VIP";
  269. case 2: ranks = ""red"Silver VIP";
  270. case 3: ranks = ""red"Golden VIP";
  271. }
  272. if(PlayerInfo[playerid][Vip] >= 1)
  273. {
  274. format(string, 200, ""yellow"[DONATOR] %s "cyan"%s "red"has logged in.", ranks, GetName(playerid));
  275. SendClientMessageToAll(COLOR_RED, string);
  276. }
  277. return 1;
  278. }
  279.  
  280. public OnPlayerDeath(playerid, killerid, reason)
  281. {
  282. return 1;
  283. }
  284.  
  285.  
  286. CMD:checklevel(playerid,params[])
  287. {
  288.  
  289. new string[56];
  290. format(string,sizeof(string),"Your level is %d",PlayerInfo[playerid][Vip]);
  291. SendClientMessage(playerid,COLOR_RED,string);
  292.  
  293. return 1;
  294. }
  295. CMD:setvip(playerid,params[])
  296. {
  297. new id, level;
  298. if(sscanf(params,"ud",id,level) ) return SendClientMessage(playerid,COLOR_RED,"USUAGE: /setvip [id][ level]");
  299. if(!IsPlayerAdmin(playerid) ) return SendClientMessage(playerid,COLOR_RED,"You are not an admin!");
  300. if(level > MAX_VIP) return SendClientMessage(playerid,COLOR_RED,"Invalid Level");
  301. if(!IsPlayerConnected(id) ) return SendClientMessage(playerid,COLOR_RED,"Player is not connected");
  302. else
  303. {
  304. new name[MAX_PLAYER_NAME], playername[MAX_PLAYER_NAME];
  305. GetPlayerName(playerid,name,sizeof(name));
  306. GetPlayerName(id,playername,sizeof(playername));
  307.  
  308. new fstring[256], zstring[256];
  309.  
  310. format(fstring,sizeof(fstring),"Administrator %s maked you V.I.P level %d",name,level);
  311. format(zstring,sizeof(zstring),"You maked %s level %d",playername,level);
  312.  
  313. SendClientMessage(playerid,COLOR_RED,zstring);
  314. SendClientMessage(id,COLOR_RED,fstring);
  315. PlayerInfo[id][Vip] = level;
  316. }
  317. return 1;
  318. }
  319.  
  320. /*_______________________________________________________________________________________
  321. | /| ___ |
  322. | / | / |
  323. | /__ EVEL _|_ /___ OMMANDS |
  324. |________________________________________________________________________________________|*/
  325. CMD:vcmds(playerid, params[])
  326. {
  327. if(PlayerInfo[playerid][Vip] >= 1 )
  328. {
  329. new string[2500];
  330. strcat(string, "\t\t"red"Bronze VIP Player Commands: \n");
  331. strcat(string, ""orange" •"yellow" 1)/vchat\t\t"pink"- "blue"VIP Chat \n");
  332. strcat(string, ""orange" •"yellow" 2)/vhydra\t\t"pink"- "blue"Spawn Hydra \n");
  333. strcat(string, ""orange" •"yellow" 3)/vCMDS\t\t"pink"- "blue"Ability to see Vip Commands \n");
  334. strcat(string, ""orange" •"yellow" 4)/vhunter\t\t"pink"- "blue"Spawn Hunter \n");
  335. strcat(string, ""orange" •"yellow" 5)/vtank\t\t"pink"- "blue"Spawn Tank \n");
  336. strcat(string, ""orange" •"yellow" 6)/Vipisland\t\t"pink"- "blue"Will Teleport you to VIP Island \n");
  337. strcat(string, ""orange" •"yellow" 7)/vjetpack\t\t"pink"- "blue"Will give you Jetpack \n");
  338. strcat(string, ""orange" •"yellow" 8)/vips\t\t"pink"- "blue"View online premium members \n");
  339. strcat(string, ""orange" •"yellow" 9)/clearmychat\t"pink"- "blue"Will Clear your chat \n");
  340. strcat(string, ""orange" •"yellow" 10)/VSkin\t\t"pink"- "blue"Will Change your skin. \n");
  341. strcat(string, ""orange" •"yellow" 11)/VTag\t\t"pink"- "blue"IT Will give you a 3D VIP tag . \n");
  342. strcat(string, ""orange" •"yellow" 12)/vheal\t\t"pink"- "blue"Will heal you \n");
  343. strcat(string, "\t\t"red"Silver VIP Player Commands: \n");
  344. strcat(string, ""orange" •"yellow" 1)/VPlaceFw\t\t"pink"- "blue"Will Place the firework\n");
  345. strcat(string, ""orange" •"yellow" 2)/VLightfw\t\t"pink"- "blue"Will Light the firework\n");
  346. strcat(string, ""orange" •"yellow" 3)/varmour\t\t"pink"- "blue"Will give you 100Armour\n");
  347. strcat(string, ""orange" •"yellow" 4)/vmyweather\t"pink"- "blue"Will change your weather \n");
  348. strcat(string, ""orange" •"yellow" 5)/vspec/vspecoff\t"pink"- "blue"Will Spectate A Player/Will Stop Specing \n");
  349. strcat(string, ""orange" •"yellow" 6)/vmytime\t\t"pink"- "blue"Will Change your Time\n");
  350. strcat(string, ""orange" •"yellow" 7)/VRepair\t\t"pink"- "blue"Will Repair your Vehicle\n");
  351. strcat(string, ""orange" • "yellow"8)/VSpawnme\t"pink"- "blue"Will Respawn You\n");
  352. strcat(string, ""orange" • "yellow"Including All Bronze VIP Commands.\n");
  353. strcat(string, "\t\t"red"Golden VIP Player Commands: \n");
  354. strcat(string, ""orange" •"yellow" 1)/vhealplayer\t"pink"- "blue"Will Heal Target Player \n");
  355. strcat(string, ""orange" •"yellow" 2)/VGod\t\t"pink"- "blue"Will give you infinte health\n");
  356. strcat(string, ""orange" •"yellow" 3)/Vgoto\t\t"pink"- "blue"Will teleport you to Target player.\n");
  357. ShowPlayerDialog(playerid, DIALOG_CMD_1, DIALOG_STYLE_MSGBOX, ""red"Server VIP COMMANDS", string, "Next Page", "OK");
  358. }
  359. else
  360. {
  361. SendClientMessage(playerid, -1, "» "red"You are not authorized to use this command.");
  362. }
  363. return 1;
  364. }
  365. CMD:vcmds2(playerid, params[])
  366. {
  367. if(PlayerInfo[playerid][Vip] >= 1 )
  368. {
  369. new string[2500];
  370. strcat(string, ""orange" •"yellow" 5)/vghostrider\t\t"pink"- "blue"Will On Ghost Rider Mode\n");
  371. strcat(string, ""orange" • "yellow"6)/VAnnounce\t\t"pink"- "blue"It will Announce\n");
  372. strcat(string, ""orange" • "yellow"7)/VFlamingHands\t\t"pink"- "blue"It will Flame your hands\n");
  373. strcat(string, ""orange" • "yellow"Including All Bronze and Silver Commands.\n");
  374. ShowPlayerDialog(playerid, DIALOG_CMD_2, DIALOG_STYLE_MSGBOX, ""red"Server VIP COMMANDS", string, "Back", "OK");
  375. }
  376. else
  377. {
  378. SendClientMessage(playerid, -1, "» "red"You are not authorized to use this command.");
  379. }
  380. return 1;
  381. }
  382.  
  383. CMD:vipisland(playerid, params[])
  384. {
  385. if(PlayerInfo[playerid][Vip] >= 1 )
  386. {
  387. SetCameraBehindPlayer(playerid);
  388. if(IsPlayerInAnyVehicle(playerid))
  389. {
  390. LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
  391. SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 0);
  392. SetVehiclePos(GetPlayerVehicleID(playerid), 4701.8442,-4901.1357,10.7976);
  393. SetVehicleZAngle(GetPlayerVehicleID(playerid), 264.5535);
  394. }
  395. else
  396. {
  397. SetPlayerInterior(playerid, 0);
  398. SetPlayerVirtualWorld(playerid, 0);
  399. SetPlayerPos(playerid, 4701.8442,-4901.1357,10.7976);
  400. SetPlayerFacingAngle(playerid, 264.5535);
  401. }
  402. }
  403. else
  404. {
  405. SendClientMessage(playerid, -1, "» "red"You are not authorized to use this command.");
  406. }
  407. return 1;
  408. }
  409. CMD:vips(playerid, params[])
  410. {
  411. new
  412. count = 0;
  413.  
  414. new
  415. string[256],
  416. string2[3000]
  417. ;
  418.  
  419. strcat(string2, ""yellow"");
  420. strcat(string2, ".:: Donators ::.\n");
  421.  
  422. foreach(Player,x)
  423. {
  424. if(PlayerInfo[x][Vip] >= 1 || PlayerInfo[x][Vip] >= 2 || PlayerInfo[x][Vip] >= 3)
  425. {
  426. count++;
  427. format(string, sizeof(string),"»"grey"VIP %s[%d] "yellow"Level: %d\n", GetName(x), x, PlayerInfo[x][Vip]);
  428. strcat(string2, string);
  429. }
  430. }
  431. if(count == 0)
  432. {
  433. strcat(string2, ""red"");
  434. strcat(string2, "No VIP is online at the moment.");
  435. }
  436.  
  437. ShowPlayerDialog(playerid, N, DIALOG_STYLE_MSGBOX, ""red"Donators", string2, "Close", "");
  438. return 1;
  439. }
  440.  
  441. CMD:vtag(playerid, params[])
  442. {
  443. if(PlayerInfo[playerid][Vip] >= 1 )
  444. {
  445. if(PlayerInfo[playerid][Vip] == 1 )
  446. {
  447. playerLabels[playerid] = Create3DTextLabel("Bronze VIP", 0x33CCFF99, 0.0, 0.0, 0.0, 40.0, 0, 1);
  448. Attach3DTextLabelToPlayer(playerLabels[playerid], playerid, 0.0, 0.0, -0.6);
  449. SendClientMessage(playerid, 0x33AA33AA, "You Have Enable Your VIP Tag");
  450. }
  451. else if(PlayerInfo[playerid][Vip] == 2 )
  452. {
  453. playerLabels[playerid] = Create3DTextLabel("Silver VIP", 0x33CCFF99, 0.0, 0.0, 0.0, 40.0, 0, 1);
  454. Attach3DTextLabelToPlayer(playerLabels[playerid], playerid, 0.0, 0.0, -0.6);
  455. SendClientMessage(playerid, 0x33AA33AA, "You Have Enable Your VIP Tag");
  456. }
  457. else if(PlayerInfo[playerid][Vip] == 3 )
  458. {
  459. playerLabels[playerid] = Create3DTextLabel("Golden VIP", 0x33CCFF99, 0.0, 0.0, 0.0, 40.0, 0, 1);
  460. Attach3DTextLabelToPlayer(playerLabels[playerid], playerid, 0.0, 0.0, -0.6);
  461. SendClientMessage(playerid, 0x33AA33AA, "You Have Enable Your VIP Tag");
  462. }
  463.  
  464. }
  465. else
  466. {
  467. SendClientMessage(playerid, -1, "» "red"You are not authorized to use this command.");
  468. }
  469. return 1;
  470. }
  471. CMD:vchat(playerid,params[])
  472. {
  473. new string[140];
  474. if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /vchat [chat]");
  475. if(PlayerInfo[playerid][Vip] == 1)
  476. {
  477. format(string, 140, ""yellow"[VIP-CHAT] -- %s ( rank: Bronze VIP ): %s", GetName(playerid), params);
  478. }
  479. else if(PlayerInfo[playerid][Vip] == 2)
  480. {
  481. format(string, 140, ""yellow"[VIP-CHAT] -- %s ( rank: Silver VIP): %s", GetName(playerid), params);
  482. }
  483. else if(PlayerInfo[playerid][Vip] == 3)
  484. {
  485. format(string, 140, ""yellow"[VIP-CHAT] -- %s ( rank: Golden VIP): %s", GetName(playerid), params);
  486. }
  487. SendClientMessageToAll(playerid,string);
  488. return 1;
  489. }
  490. CMD:vjetpack(playerid,params[])
  491. {
  492. if(PlayerInfo[playerid][Vip] >= 1 )
  493. {
  494. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
  495. SendClientMessage(playerid, COLOR_RED, "* Jetpack Spawned ");
  496. }
  497. else
  498. {
  499. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  500. }
  501. return 1;
  502. }
  503. CMD:clearmychat(playerid,params[])
  504. {
  505. if(PlayerInfo[playerid][Vip] >= 1 )
  506. {
  507. ClearMyChat(playerid);
  508. }
  509. else
  510. {
  511. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  512. }
  513. return 1;
  514. }
  515.  
  516.  
  517. CMD:vhydra(playerid, params[])
  518. {
  519. if(PlayerInfo[playerid][Vip] >= 1 )
  520. {
  521. DestroyVehicle(hydra[playerid]);
  522. new Float:pos[4];
  523. GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  524. GetPlayerFacingAngle(playerid, pos[3]);
  525. hydra[playerid]=CreateVehicle(520, pos[0], pos[1], pos[2], pos[3], 1, 1, 1200);
  526. PutPlayerInVehicle(playerid,hydra[playerid], 0);
  527. SendClientMessage(playerid,COLOR_YELLOW,"SERVER: You have Spawned An hydra.");
  528. }
  529. else
  530. {
  531. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  532. }
  533. return 1;
  534. }
  535. CMD:vtank(playerid, params[])
  536. {
  537. if(PlayerInfo[playerid][Vip] >= 1 )
  538. {
  539. DestroyVehicle(tank[playerid]);
  540. new Float:pos[4];
  541. GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  542. GetPlayerFacingAngle(playerid, pos[3]);
  543. tank[playerid]=CreateVehicle(432, pos[0], pos[1], pos[2], pos[3], 1, 1, 1200);
  544. PutPlayerInVehicle(playerid,tank[playerid], 0);
  545. SendClientMessage(playerid,COLOR_YELLOW,"SERVER: You have Spawned An tank.");
  546. }
  547. else
  548. {
  549. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  550. }
  551. return 1;
  552. }
  553. CMD:vrhino(playerid, params[]) return cmd_vtank(playerid, params);
  554. CMD:vhunter(playerid, params[])
  555. {
  556. if(PlayerInfo[playerid][Vip] >= 1 )
  557. {
  558. DestroyVehicle(hunter[playerid]);
  559. new Float:pos[4];
  560. GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  561. GetPlayerFacingAngle(playerid, pos[3]);
  562. hunter[playerid]=CreateVehicle(425, pos[0], pos[1], pos[2], pos[3], 1, 1, 1200);
  563. PutPlayerInVehicle(playerid,hunter[playerid], 0);
  564. SendClientMessage(playerid,COLOR_YELLOW,"SERVER: You have Spawned An Hunter.");
  565. }
  566. else
  567. {
  568. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  569. }
  570. return 1;
  571. }
  572.  
  573.  
  574. /*_______________________________________________________________________________________
  575. | ___ ___ |
  576. | / / / |
  577. | /__ EVEL /--- /___ OMMANDS |
  578. |_______________________________________________________________________________________|*/
  579.  
  580.  
  581. CMD:vmyw(playerid, params[])
  582. {
  583. if(PlayerInfo[playerid][Vip] >= 2)
  584. {
  585. new weather, string[128];
  586. if(sscanf(params, "i", weather)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /vmyw [0 - 45]");
  587. if(weather < 0 || weather > 45) return SendClientMessage(playerid, -1, "» "grey"Invalid WeatherID! <0 - 45>");
  588. SetPlayerWeather(playerid, weather);
  589. format(string, sizeof(string), ""yellow"You changed your weather Succesfully");
  590. SendClientMessage(playerid, COLOR_GREEN, string);
  591. }
  592. else
  593. {
  594. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  595. }
  596. return 1;
  597. }
  598. CMD:vmyweather(playerid, params[]) return cmd_vmyw(playerid, params);
  599.  
  600. CMD:vmytime(playerid, params[])
  601. {
  602. if(PlayerInfo[playerid][Vip] >= 2)
  603. {
  604. new time, string[128];
  605. if(sscanf(params, "i", time)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /vmytime [0 - 23]");
  606. if(time < 0 || time > 23) return SendClientMessage(playerid, -1, "» "grey"Invalid Time! <0 - 23>");
  607. format(string, sizeof(string), ""yellow"You changed your time Succesfully");
  608. SendClientMessage(playerid, COLOR_GREEN, string);
  609. SetPlayerTime(playerid, time, 0);
  610. }
  611. else
  612. {
  613. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  614. }
  615. return 1;
  616. }
  617. CMD:myt(playerid, params[]) return cmd_vmytime(playerid, params);
  618. CMD:vskin(playerid, params[])
  619. {
  620. if(PlayerInfo[playerid][Vip] >= 2)
  621. {
  622. new
  623. string[200],
  624. SkinID
  625. ;
  626.  
  627. if(sscanf(params, "i", SkinID)) return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /vskin [Skin = 299)]");
  628. if(SkinID < 0 || SkinID > 299) return SendClientMessage(playerid, -1, "» "grey"Invalid skinID.");
  629. format(string, 128, ""yellow"Your Skin is now changed to %d.", SkinID);
  630. SendClientMessage(playerid, COLOR_YELLOW, string);
  631.  
  632. SetPlayerSkin(playerid, SkinID);
  633. }
  634. else
  635. {
  636. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  637. }
  638. return 1;
  639. }
  640. CMD:vspec(playerid, params[])
  641. {
  642. if(PlayerInfo[playerid][Vip] >= 2)
  643. {
  644. new id;
  645. if(sscanf(params,"u", id))return SendClientMessage(playerid, COLOR_RED, "Usage: /spec [id]");
  646. if(id == playerid)return SendClientMessage(playerid,COLOR_RED,"You cannot spec yourself.");
  647. if(id == INVALID_PLAYER_ID)return SendClientMessage(playerid, COLOR_RED, "Player not found!");
  648. if(IsSpecing[playerid] == 1)return SendClientMessage(playerid,COLOR_RED,"You are already specing someone.");
  649. GetPlayerPos(playerid,SpecX[playerid],SpecY[playerid],SpecZ[playerid]);
  650. Inter[playerid] = GetPlayerInterior(playerid);
  651. vWorld[playerid] = GetPlayerVirtualWorld(playerid);
  652. TogglePlayerSpectating(playerid, true);
  653. if(IsPlayerInAnyVehicle(id))
  654. {
  655. if(GetPlayerInterior(id) > 0)
  656. {
  657. SetPlayerInterior(playerid,GetPlayerInterior(id));
  658. }
  659. if(GetPlayerVirtualWorld(id) > 0)
  660. {
  661. SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));
  662. }
  663. PlayerSpectateVehicle(playerid,GetPlayerVehicleID(id));
  664. }
  665. else
  666. {
  667. if(GetPlayerInterior(id) > 0)
  668. {
  669. SetPlayerInterior(playerid,GetPlayerInterior(id));
  670. }
  671. if(GetPlayerVirtualWorld(id) > 0)
  672. {
  673. SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));
  674. }
  675. PlayerSpectatePlayer(playerid,id);
  676. }
  677. GetPlayerName(id, Name, sizeof(Name));
  678. format(String, sizeof(String),"You have started to spectate "yellow"%s.",Name);
  679. SendClientMessage(playerid,0x0080C0FF,String);
  680. IsSpecing[playerid] = 1;
  681. IsPlayerSpecing[id] = 1;
  682. spectatorid[playerid] = id;
  683. }
  684. else
  685. {
  686. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  687. }
  688. return 1;
  689. }
  690.  
  691. CMD:vspecoff(playerid, params[])
  692. {
  693. if(PlayerInfo[playerid][Vip] >= 2)
  694. {
  695. if(IsSpecing[playerid] == 0)return SendClientMessage(playerid,COLOR_RED,"You are not spectating anyone.");
  696. TogglePlayerSpectating(playerid, 0);
  697. IsSpecing[playerid] = 0;
  698. }
  699. else
  700. {
  701. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  702. }
  703. return 1;
  704. }
  705.  
  706. CMD:vrepair(playerid, params[])
  707. {
  708. if(PlayerInfo[playerid][Vip] >= 2)
  709. {
  710. if(IsPlayerInAnyVehicle(playerid))
  711. {
  712. new veh;
  713. veh = GetPlayerVehicleID(playerid);
  714. RepairVehicle(veh);
  715. return SendClientMessage(playerid, COLOR_YELLOW,"You have repair your vehicle");
  716. }
  717. else return SendClientMessage(playerid, Grey,"[ERROR]: You need to be in vehicle to use this command");
  718. }
  719. else
  720. {
  721. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  722. }
  723. return 1;
  724. }
  725.  
  726. CMD:vplacefw(playerid, params[])
  727. {
  728. if(IsSpecing[playerid] == 1)return SendClientMessage(playerid,Grey,"You cannot use this command at the moment.");
  729. if(PlayerInfo[playerid][Vip] >= 2)
  730. {
  731. if(FireworkTotal == MAX_LAUNCH)
  732. {
  733. SendClientMessage(playerid, COLOR_RED, "You have reached maximum number of fireworks!");
  734. return 1;
  735. }
  736. if(Fired == 1)
  737. {
  738. SendClientMessage(playerid, COLOR_YELLOW, "Wait till your fireworks are done before placing new ones!");
  739. return 1;
  740. }
  741. new string[128];
  742. format(string, sizeof(string), ""yellow"%s has placed a special firework.", GetName(playerid));
  743. new Float:x, Float:y, Float:z, Float:a;
  744. GetPlayerPos(playerid, x, y, z);
  745. foreach(Player, i)
  746. {
  747. if(IsPlayerInRangeOfPoint(i, 30, x, y, z))
  748. {
  749. SendClientMessage(i, COLOR_YELLOW, string);
  750. }
  751. }
  752. GetPlayerFacingAngle(playerid, a);
  753. x += (2 * floatsin(-a, degrees));
  754. y += (2 * floatcos(-a, degrees));
  755. Rocket[FireworkTotal] = CreateDynamicObject(3786, x, y, z, 0, 90, 0);
  756. RocketLight[FireworkTotal] = CreateDynamicObject(354, x, y, z + 1, 0, 90, 0);
  757. RocketSmoke[FireworkTotal] = CreateDynamicObject(18716, x, y, z - 4, 0, 0, 0);
  758. rx4[FireworkTotal] = x;
  759. ry4[FireworkTotal] = y;
  760. rz4[FireworkTotal] = z;
  761. RocketExplosions[FireworkTotal] = 0;
  762. FireworkTotal++;
  763. }
  764. else
  765. {
  766. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  767. }
  768. return 1;
  769. }
  770.  
  771. CMD:vlightfw(playerid, params[])
  772. {
  773.  
  774. if(IsSpecing[playerid] == 1)return SendClientMessage(playerid,Grey,"You cannot use this command at that moment.");
  775. if(PlayerInfo[playerid][Vip] >= 2)
  776. {
  777.  
  778. if(FireworkTotal == 0)
  779. {
  780. SendClientMessage(playerid, COLOR_YELLOW, "You didn't place any firework.!");
  781. return 1;
  782. }
  783. if(Fired == 1)
  784. {
  785. SendClientMessage(playerid, COLOR_RED, "You have already fired your fireworks!");
  786. return 1;
  787. }
  788. for(new i = 0; i < FireworkTotal; i++)
  789. {
  790. CreateExplosion(rx4[i] ,ry4[i], rz4[i], 12, 5);
  791. new time = MoveDynamicObject(Rocket[i], rx4[i] ,ry4[i], rz4[i] + RocketHeight, 10);
  792. MoveDynamicObject(RocketLight[i], rx4[i] ,ry4[i], rz4[i] + 2 + RocketHeight, 10);
  793. MoveDynamicObject(RocketSmoke[i], rx4[i] ,ry4[i], rz4[i] + RocketHeight, 10);
  794. SetTimerEx("Firework", time, 0, "i", i);
  795. }
  796. Fired = 1;
  797. }
  798. else
  799. {
  800. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  801. }
  802. return 1;
  803. }
  804.  
  805. CMD:varmour(playerid,params[])
  806. {
  807. if(PlayerInfo[playerid][Vip] >= 2)
  808. {
  809. SetPlayerArmour(playerid, 100);
  810. SendClientMessage(playerid, -1, "» "yellow"Your armour has been set to 100.");
  811.  
  812. }
  813. else
  814. {
  815. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  816. }
  817. return 1;
  818. }
  819.  
  820. CMD:vspawnme( playerid, params[ ] )
  821. {
  822. if(PlayerInfo[playerid][Vip] >= 2)
  823. {
  824. SetPlayerPos( playerid, 0.0, 0.0, 0.0 );
  825. SpawnPlayer( playerid );
  826. SendClientMessage( playerid, COLOR_YELLOW, "You have been respawmed!" );
  827. }
  828. else
  829. {
  830. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  831. }
  832. return 1;
  833. }
  834.  
  835.  
  836. /*_______________________________________________________________________________________
  837. | __ ___ |
  838. | / --/ / |
  839. | /__ EVEL __/ /___ OMMANDS |
  840. |_______________________________________________________________________________________|*/
  841. CMD:vannounce(playerid, params[])
  842. {
  843.  
  844. if(PlayerInfo[playerid][Vip] >= 3)
  845. {
  846. if(isnull(params)) return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /vannounce [text]");
  847.  
  848.  
  849. GameTextForAll(params, 5000, 3);
  850. }
  851. else
  852. {
  853. SendClientMessage(playerid, -1, "» "red"You are not authorized to use this command.");
  854. }
  855. return 1;
  856. }
  857.  
  858. CMD:vheal(playerid,params[])
  859. {
  860. if(PlayerInfo[playerid][Vip] >= 1)
  861. {
  862. SetPlayerHealth(playerid, 100);
  863. SendClientMessage(playerid, -1, "» "yellow"You have heal yourself..");
  864.  
  865. }
  866. else
  867. {
  868. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  869. }
  870. return 1;
  871. }
  872.  
  873. CMD:vhealplayer(playerid, params[])
  874. {
  875. new
  876. string[200],
  877. id
  878. ;
  879. if(PlayerInfo[playerid][Vip] >= 3 )
  880. {
  881. if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /healplayer [playerid]");
  882. if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "» "grey"Player not connected.");
  883.  
  884. format(string, 128, ""grey"%s has been healed by "yellow"%s.", GetName(id), GetName(playerid));
  885. SendClientMessageToAll(COLOR_RED, string);
  886.  
  887. SetPlayerHealth(id, 100.0);
  888. }
  889. else
  890. {
  891. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  892. }
  893. return 1;
  894. }
  895. CMD:vgod(playerid, params[])
  896. {
  897. if(PlayerInfo[playerid][Vip] == 3 )
  898. {
  899. new id = GetPVarInt(playerid, "GodMode");
  900. if(id == 0)
  901. {
  902. SendClientMessage(playerid, -1, "» "yellow"You have enabled your "red"god mode.");
  903. SetPlayerHealth(playerid, 9999999);
  904. SetPVarInt(playerid, "GodMode", 1);
  905. }
  906. else
  907. {
  908. SendClientMessage(playerid, -1, "» "yellow"You have disabled your "red"god mode.");
  909. SetPlayerHealth(playerid, 100.0);
  910.  
  911. SetPVarInt(playerid, "GodMode", 0);
  912. }
  913. }
  914. else
  915. {
  916. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  917. }
  918. return 1;
  919. }
  920. CMD:vgoto(playerid, params[])
  921. {
  922. if(IsSpecing[playerid] == 1)return SendClientMessage(playerid,Grey,"You cannot use this command at the moment.");
  923. if(PlayerInfo[playerid][Vip] == 3 )
  924. {
  925. new
  926. id,
  927. string[130],
  928. Float:x,
  929. Float:y,
  930. Float:z
  931. ;
  932. if(sscanf(params, "u", id)) return SendClientMessage(playerid, Grey, "USAGE: /vgoto [playerid]");
  933. if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "» "grey"Player not connected.");
  934. if(id == playerid) return SendClientMessage(playerid, COLOR_RED, "You cannot teleport to yourSelf..");
  935. if(GetPlayerState(id) != 1 && GetPlayerState(id) != 2 && GetPlayerState(id) != 3) return SendClientMessage(playerid, -1, "» "grey"You cannot use this command on none spawned player.");
  936. GetPlayerPos(id, x, y, z);
  937. SetPlayerInterior(playerid, GetPlayerInterior(id));
  938. SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(id));
  939. if(GetPlayerState(playerid) == 2)
  940. {
  941. SetVehiclePos(GetPlayerVehicleID(playerid), x+3, y, z);
  942. LinkVehicleToInterior(GetPlayerVehicleID(playerid), GetPlayerInterior(id));
  943. SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), GetPlayerVirtualWorld(id));
  944. }
  945. else SetPlayerPos(playerid, x+2, y, z);
  946. format(string, sizeof(string), ""yellow"You have teleported to %s", GetName(id));
  947. SendClientMessage(playerid, COLOR_YELLOW, string);
  948. }
  949. else
  950. {
  951. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  952. }
  953. return 1;
  954. }
  955.  
  956. //credits to ahmad95
  957. CMD:vflaminghand(playerid)
  958. {
  959. if(PlayerInfo[playerid][Vip] >= 3 )
  960. {
  961. if(Flaming[playerid] == 0)
  962. {
  963. Flaming[playerid] = 1;
  964. SetPlayerAttachedObject( playerid, 0, 18693, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  965. SetPlayerAttachedObject( playerid, 1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  966. SetPlayerAttachedObject( playerid, 2, 18703, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  967. SetPlayerAttachedObject( playerid, 3, 18703, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
  968.  
  969. SendClientMessage(playerid, Grey, "You have started Flaming Hands Affect.");
  970. }
  971. else if(Flaming[playerid] == 1)
  972. {
  973. Flaming[playerid] = 0;
  974.  
  975. for ( new i = 0; i < 4; i++ )
  976. if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
  977. RemovePlayerAttachedObject( playerid, i );
  978.  
  979. SendClientMessage(playerid, Grey, "You have disable Flaming Hands Affect.");
  980.  
  981. }
  982. }
  983. else
  984. {
  985. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  986. }
  987. return 1;
  988. }
  989. // credits to yugecin
  990. CMD:vghostrider( playerid, params[ ] )
  991. {
  992. if(PlayerInfo[playerid][Vip] >= 3 )
  993. {
  994. if ( !IsPlayerInAnyVehicle( playerid ) )
  995. return SendClientMessage( playerid, COLOR_RED, "[ERROR]: "yellow"You have to be in a 'freeway' motorbike!" );
  996.  
  997. if ( GetPlayerState( playerid ) != PLAYER_STATE_DRIVER)
  998. return SendClientMessage( playerid, COLOR_RED, "[ERROR]: "yellow"You must be the driver!");
  999.  
  1000. if ( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 463 )
  1001. return SendClientMessage( playerid, COLOR_RED, "[ERROR]: "yellow"You have to be in a 'freeway' motorbike!" );
  1002.  
  1003. if ( grider[ playerid ][ 0 ] )
  1004. {
  1005. DestroyObject( grider[ playerid ][ 0 ] );
  1006. DestroyObject( grider[ playerid ][ 1 ] );
  1007. DestroyObject( grider[ playerid ][ 2 ] );
  1008. grider[ playerid ][ 0 ] = 0;
  1009. return ( 1 );
  1010. }
  1011.  
  1012. new Float:vh;
  1013. GetVehicleHealth( GetPlayerVehicleID( playerid ), vh );
  1014. if ( vh < 250 )
  1015. return SendClientMessage( playerid, COLOR_RED, "[ERROR]: "yellow"Repair your bike first!" );
  1016.  
  1017. grider[ playerid ][ 0 ] = CreateObject( 18689, 0.0, 0.0, 0.0, 0.0, 0.0, 256.0 );
  1018. grider[ playerid ][ 1 ] = CreateObject( 18689, 0.0, 0.0, 0.0, 0.0, 0.0, 256.0 );
  1019. grider[ playerid ][ 2 ] = CreateObject( 18693, 0.0, 0.0, 0.0, 0.0, 0.0, 256.0 );
  1020.  
  1021. AttachObjectToVehicle( grider[ playerid ][ 0 ], GetPlayerVehicleID( playerid ), 0.0, 0.6, -1.7, 0.0, 0.0, 0.0 );
  1022. AttachObjectToVehicle( grider[ playerid ][ 1 ], GetPlayerVehicleID( playerid ), 0.0, -1.4, -1.7, 0.0, 0.0, 0.0 );
  1023. AttachObjectToPlayer( grider[ playerid ][ 2 ], playerid, 0.0, -0.01, -0.9, 0.0, 0.0, 0.0 );
  1024. ChangeVehicleColor( GetPlayerVehicleID( playerid ), 0, 0 );
  1025. }
  1026. else
  1027. {
  1028. SendClientMessage(playerid, -1, "» "grey"You are not authorized to use this command.");
  1029. }
  1030. return 1;
  1031. }
  1032.  
  1033.  
  1034. CMD:vcredits(playerid, params[])
  1035. {
  1036. new string[1400];
  1037. strcat(string, ""yellow"VIP SYSTEM By: "red"FuNkY The Great\n\n");
  1038. strcat(string, ""blue"- FuNkY for Scripting this VIP system\n");
  1039. strcat(string, "- AliDollar for Vip Island and scripting Help\n");
  1040. strcat(string, "- yugecin for Ghost Rider system\n");
  1041. strcat(string, "- ahmad95 for Flaming Hand System\n");
  1042. ShowPlayerDialog(playerid, N, DIALOG_STYLE_MSGBOX, ""blue"VIP SYSTEM CREDITS", string, "Close", "");
  1043. return 1;
  1044. }
  1045.  
  1046.  
  1047. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1048. {
  1049. if(dialogid == DIALOG_CMD_1)
  1050. {
  1051. if(response)
  1052. {
  1053. cmd_vcmds2(playerid, "");
  1054. }
  1055. }
  1056. if(dialogid == DIALOG_CMD_2)
  1057. {
  1058. if(response)
  1059. {
  1060. cmd_vcmds(playerid, "");
  1061. }
  1062. }
  1063. return 1;
  1064. }
  1065.  
  1066.  
  1067. stock GetName(playerid)
  1068. {
  1069. new pName[24];
  1070. GetPlayerName(playerid, pName, 24);
  1071. return pName;
  1072. }
  1073. stock ClearMyChat(playerid)
  1074. {
  1075. for(new i=0; i<200; i++)
  1076. {
  1077. SendClientMessage(playerid, -1, " ");
  1078. }
  1079. return 1;
  1080. }
Add Comment
Please, Sign In to add comment