Guest User

Untitled

a guest
Dec 11th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.21 KB | None | 0 0
  1. if(strcmp(cmd, "/invite", true) == 0)
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. tmp = strtok(cmdtext, idx);
  6. if(!strlen(tmp))
  7. {
  8. SendClientMessage(playerid, COLOR_GRAD2, " Используйте: /invite [id]");
  9. return 1;
  10. }
  11. new para1;
  12. new ftext[25];
  13. para1 = ReturnUser(tmp);
  14. if (PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] == 13)
  15. {
  16. if(IsPlayerConnected(para1))
  17. {
  18. if(para1 != INVALID_PLAYER_ID)
  19. {
  20. if (PlayerInfo[para1][pMember] == 0)
  21. {
  22. if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "LSPD"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
  23. else { return 1; }
  24. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  25. GetPlayerName(playerid, sendername, sizeof(sendername));
  26. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  27. PlayerInfo[para1][pRank] = 1;
  28. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  29. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  30. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  31. format(string, sizeof(string), "Вы пригласили %s в организацию %s.", giveplayer,ftext);
  32. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  33. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  34. SetPlayerInterior(para1,0);
  35. new rand = random(sizeof(gInviteSpawns));
  36. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  37. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  38. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  39. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  40. TogglePlayerControllable(para1, 0);
  41. SelectChar[para1] = 255;
  42. SelectCharID[para1] = PlayerInfo[para1][pMember];
  43. SelectCharPlace[para1] = 1;
  44. PlayerInfo[para1][pJob] = 0;
  45. PlayerInfo[para1][pContractTime] = 0;
  46. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  47. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  48. SendClientMessage(para1, COLOR_LIGHTRED, "* Используйте 'next'чтобы выбрать следущий скин.");
  49. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  50. }
  51. else
  52. {
  53. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  54. return 1;
  55. }
  56. }
  57. }//not connected
  58. }
  59. else if (PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pRank] == 9)
  60. {
  61. if(IsPlayerConnected(para1))
  62. {
  63. if(para1 != INVALID_PLAYER_ID)
  64. {
  65. if (PlayerInfo[para1][pMember] == 0)
  66. {
  67. if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "ФБР"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
  68. else { return 1; }
  69. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  70. GetPlayerName(playerid, sendername, sizeof(sendername));
  71. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  72. PlayerInfo[para1][pRank] = 1;
  73. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  74. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  75. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  76. format(string, sizeof(string), "Вы пригласили %s в организацию %s.", giveplayer,ftext);
  77. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  78. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  79. SetPlayerInterior(para1,0);
  80. new rand = random(sizeof(gInviteSpawns));
  81. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  82. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  83. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  84. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  85. TogglePlayerControllable(para1, 0);
  86. SelectChar[para1] = 255;
  87. SelectCharID[para1] = PlayerInfo[para1][pMember];
  88. SelectCharPlace[para1] = 1;
  89. PlayerInfo[para1][pJob] = 0;
  90. PlayerInfo[para1][pContractTime] = 0;
  91. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  92. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  93. SendClientMessage(para1, COLOR_LIGHTRED, "* Используйте 'next'чтобы выбрать следущий скин.");
  94. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  95. }
  96. else
  97. {
  98. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  99. return 1;
  100. }
  101. }
  102. }//not connected
  103. }
  104. else if (PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pRank] == 14)
  105. {
  106. if(IsPlayerConnected(para1))
  107. {
  108. if(para1 != INVALID_PLAYER_ID)
  109. {
  110. if (PlayerInfo[para1][pMember] == 0)
  111. {
  112. if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "Армия СФ"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
  113. else { return 1; }
  114. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  115. GetPlayerName(playerid, sendername, sizeof(sendername));
  116. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  117. PlayerInfo[para1][pRank] = 1;
  118. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  119. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  120. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  121. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  122. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  123. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  124. SetPlayerInterior(para1,0);
  125. new rand = random(sizeof(gInviteSpawns));
  126. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  127. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  128. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  129. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  130. TogglePlayerControllable(para1, 0);
  131. SelectChar[para1] = 255;
  132. SelectCharID[para1] = PlayerInfo[para1][pMember];
  133. SelectCharPlace[para1] = 1;
  134. PlayerInfo[para1][pJob] = 0;
  135. PlayerInfo[para1][pContractTime] = 0;
  136. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  137. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  138. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  139. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  140. }
  141. else
  142. {
  143. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  144. return 1;
  145. }
  146. }
  147. }//not connected
  148. }
  149. else if (PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] == 10)
  150. {
  151. if(IsPlayerConnected(para1))
  152. {
  153. if(para1 != INVALID_PLAYER_ID)
  154. {
  155. if (PlayerInfo[para1][pMember] == 0)
  156. {
  157. if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 4; gTeam[para1] = 4; ftext = "Здравохранение"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
  158. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  159. GetPlayerName(playerid, sendername, sizeof(sendername));
  160. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  161. PlayerInfo[para1][pRank] = 1;
  162. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  163. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  164. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  165. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  166. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  167. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  168. SetPlayerInterior(para1,0);
  169. new rand = random(sizeof(gInviteSpawns));
  170. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  171. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  172. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  173. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  174. TogglePlayerControllable(para1, 0);
  175. SelectChar[para1] = 255;
  176. SelectCharID[para1] = PlayerInfo[para1][pMember];
  177. SelectCharPlace[para1] = 1;
  178. PlayerInfo[para1][pJob] = 0;
  179. PlayerInfo[para1][pContractTime] = 0;
  180. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  181. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  182. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  183. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  184. }
  185. else
  186. {
  187. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  188. return 1;
  189. }
  190. }
  191. }//not connected
  192. }
  193. else if (PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5 && PlayerInfo[playerid][pRank] == 9)
  194. {
  195. if(IsPlayerConnected(para1))
  196. {
  197. if(para1 != INVALID_PLAYER_ID)
  198. {
  199. if (PlayerInfo[para1][pMember] == 0)
  200. {
  201. if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "La Cosa Nostra"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 120); }
  202. else { return 1; }
  203. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  204. GetPlayerName(playerid, sendername, sizeof(sendername));
  205. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  206. PlayerInfo[para1][pRank] = 1;
  207. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  208. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  209. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  210. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  211. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  212. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  213. SetPlayerInterior(para1,0);
  214. new rand = random(sizeof(gInviteSpawns));
  215. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  216. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  217. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  218. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  219. TogglePlayerControllable(para1, 0);
  220. SelectChar[para1] = 255;
  221. SelectCharID[para1] = PlayerInfo[para1][pMember];
  222. SelectCharPlace[para1] = 1;
  223. PlayerInfo[para1][pJob] = 0;
  224. PlayerInfo[para1][pContractTime] = 0;
  225. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  226. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  227. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  228. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  229. }
  230. else
  231. {
  232. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  233. return 1;
  234. }
  235. }
  236. }//not connected
  237. }
  238. else if (PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pRank] == 9)
  239. {
  240. if(IsPlayerConnected(para1))
  241. {
  242. if(para1 != INVALID_PLAYER_ID)
  243. {
  244. if (PlayerInfo[para1][pMember] == 0)
  245. {
  246. if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "Yakuza"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 258); }
  247. else { return 1; }
  248. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  249. GetPlayerName(playerid, sendername, sizeof(sendername));
  250. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  251. PlayerInfo[para1][pRank] = 1;
  252. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  253. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  254. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  255. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  256. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  257. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  258. SetPlayerInterior(para1,0);
  259. new rand = random(sizeof(gInviteSpawns));
  260. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  261. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  262. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  263. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  264. TogglePlayerControllable(para1, 0);
  265. SelectChar[para1] = 255;
  266. SelectCharID[para1] = PlayerInfo[para1][pMember];
  267. SelectCharPlace[para1] = 1;
  268. PlayerInfo[para1][pJob] = 0;
  269. PlayerInfo[para1][pContractTime] = 0;
  270. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  271. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  272. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  273. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  274. }
  275. else
  276. {
  277. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  278. return 1;
  279. }
  280. }
  281. }//not connected
  282. }
  283. else if (PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pRank] == 5)
  284. {
  285. if(IsPlayerConnected(para1))
  286. {
  287. if(para1 != INVALID_PLAYER_ID)
  288. {
  289. if (PlayerInfo[para1][pMember] == 0)
  290. {
  291. if(PlayerInfo[playerid][pLeader] == 7) { PlayerInfo[para1][pTeam] = 7; gTeam[para1] = 7; ftext = "Мэрия"; ChosenSkin[para1] = 51; SetPlayerSkin(para1, 51); }
  292. else { return 1; }
  293. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  294. GetPlayerName(playerid, sendername, sizeof(sendername));
  295. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  296. PlayerInfo[para1][pRank] = 1;
  297. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  298. format(string, sizeof(string), "Вы были приняты в организация %s, по приглашению лидера %s", ftext, sendername);
  299. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  300. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  301. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  302. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  303. SetPlayerInterior(para1,0);
  304. new rand = random(sizeof(gInviteSpawns));
  305. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  306. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  307. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  308. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  309. TogglePlayerControllable(para1, 0);
  310. SelectChar[para1] = 255;
  311. SelectCharID[para1] = PlayerInfo[para1][pMember];
  312. SelectCharPlace[para1] = 1;
  313. PlayerInfo[para1][pJob] = 0;
  314. PlayerInfo[para1][pContractTime] = 0;
  315. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  316. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  317. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  318. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  319. }
  320. else
  321. {
  322. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  323. return 1;
  324. }
  325. }
  326. }//not connected
  327. }
  328. else if (PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8 && PlayerInfo[playerid][pRank] == 13)
  329. {
  330. if(IsPlayerConnected(para1))
  331. {
  332. if(para1 != INVALID_PLAYER_ID)
  333. {
  334. if (PlayerInfo[para1][pMember] == 0)
  335. {
  336. if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 8; gTeam[para1] = 8; ftext = "SFPD"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
  337. else { return 1; }
  338. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  339. GetPlayerName(playerid, sendername, sizeof(sendername));
  340. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  341. PlayerInfo[para1][pRank] = 1;
  342. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  343. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  344. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  345. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  346. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  347. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  348. SetPlayerInterior(para1,0);
  349. new rand = random(sizeof(gInviteSpawns));
  350. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  351. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  352. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  353. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  354. TogglePlayerControllable(para1, 0);
  355. SelectChar[para1] = 255;
  356. SelectCharID[para1] = PlayerInfo[para1][pMember];
  357. SelectCharPlace[para1] = 1;
  358. PlayerInfo[para1][pJob] = 0;
  359. PlayerInfo[para1][pContractTime] = 0;
  360. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  361. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  362. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  363. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  364. }
  365. else
  366. {
  367. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  368. return 1;
  369. }
  370. }
  371. }//not connected
  372. }
  373. else if (PlayerInfo[playerid][pLeader] == 9 || PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pRank] == 9)
  374. {
  375. if(IsPlayerConnected(para1))
  376. {
  377. if(para1 != INVALID_PLAYER_ID)
  378. {
  379. if (PlayerInfo[para1][pMember] == 0)
  380. {
  381. if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 9; gTeam[para1] = 9; ftext = "SF News"; ChosenSkin[para1] = 250; SetPlayerSkin(para1, 250); }
  382. else { return 1; }
  383. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  384. GetPlayerName(playerid, sendername, sizeof(sendername));
  385. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  386. PlayerInfo[para1][pRank] = 1;
  387. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  388. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  389. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  390. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  391. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  392. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  393. SetPlayerInterior(para1,0);
  394. new rand = random(sizeof(gInviteSpawns));
  395. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  396. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  397. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  398. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  399. TogglePlayerControllable(para1, 0);
  400. SelectChar[para1] = 255;
  401. SelectCharID[para1] = PlayerInfo[para1][pMember];
  402. SelectCharPlace[para1] = 1;
  403. PlayerInfo[para1][pJob] = 0;
  404. PlayerInfo[para1][pContractTime] = 0;
  405. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  406. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  407. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  408. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  409. }
  410. else
  411. {
  412. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  413. return 1;
  414. }
  415. }
  416. }//not connected
  417. }
  418. else if (PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10 && PlayerInfo[playerid][pRank] == 4)
  419. {
  420. if(IsPlayerConnected(para1))
  421. {
  422. if(para1 != INVALID_PLAYER_ID)
  423. {
  424. if (PlayerInfo[para1][pMember] == 0)
  425. {
  426. if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 10; ftext = "Hitman Agency"; ChosenSkin[para1] = 171; SetPlayerSkin(para1, 171); }
  427. else { return 1; }
  428. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  429. GetPlayerName(playerid, sendername, sizeof(sendername));
  430. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  431. PlayerInfo[para1][pRank] = 1;
  432. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  433. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  434. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  435. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  436. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  437. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  438. SetPlayerInterior(para1,0);
  439. new rand = random(sizeof(gInviteSpawns));
  440. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  441. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  442. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  443. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  444. TogglePlayerControllable(para1, 0);
  445. SelectChar[para1] = 255;
  446. SelectCharID[para1] = PlayerInfo[para1][pMember];
  447. SelectCharPlace[para1] = 1;
  448. PlayerInfo[para1][pJob] = 0;
  449. PlayerInfo[para1][pContractTime] = 0;
  450. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  451. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  452. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  453. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  454. }
  455. else
  456. {
  457. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  458. return 1;
  459. }
  460. }
  461. }//not connected
  462. }
  463. else if (PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pRank] == 1)
  464. {
  465. if(IsPlayerConnected(para1))
  466. {
  467. if(para1 != INVALID_PLAYER_ID)
  468. {
  469. if (PlayerInfo[para1][pMember] == 0)
  470. {
  471. if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 11; gTeam[para1] = 11; ftext = "Инструкторы"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }
  472. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  473. GetPlayerName(playerid, sendername, sizeof(sendername));
  474. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  475. PlayerInfo[para1][pRank] = 1;
  476. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  477. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  478. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  479. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  480. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  481. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  482. SetPlayerInterior(para1,0);
  483. new rand = random(sizeof(gInviteSpawns));
  484. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  485. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  486. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  487. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  488. TogglePlayerControllable(para1, 0);
  489. SelectChar[para1] = 255;
  490. SelectCharID[para1] = PlayerInfo[para1][pMember];
  491. SelectCharPlace[para1] = 1;
  492. PlayerInfo[para1][pJob] = 0;
  493. PlayerInfo[para1][pContractTime] = 0;
  494. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  495. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  496. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  497. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  498. }
  499. else
  500. {
  501. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  502. return 1;
  503. }
  504. }
  505. }//not connected
  506. }
  507. else if (PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12 && PlayerInfo[playerid][pRank] == 13)
  508. {
  509. if(IsPlayerConnected(para1))
  510. {
  511. if(para1 != INVALID_PLAYER_ID)
  512. {
  513. if (PlayerInfo[para1][pMember] == 0)
  514. {
  515. if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "LVPD"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
  516. else { return 1; }
  517. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  518. GetPlayerName(playerid, sendername, sizeof(sendername));
  519. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  520. PlayerInfo[para1][pRank] = 1;
  521. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  522. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  523. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  524. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  525. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  526. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  527. SetPlayerInterior(para1,0);
  528. new rand = random(sizeof(gInviteSpawns));
  529. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  530. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  531. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  532. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  533. TogglePlayerControllable(para1, 0);
  534. SelectChar[para1] = 255;
  535. SelectCharID[para1] = PlayerInfo[para1][pMember];
  536. SelectCharPlace[para1] = 1;
  537. PlayerInfo[para1][pJob] = 0;
  538. PlayerInfo[para1][pContractTime] = 0;
  539. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  540. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  541. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  542. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  543. }
  544. else
  545. {
  546. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  547. return 1;
  548. }
  549. }
  550. }//not connected
  551. }
  552. else if (PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pRank] == 9)
  553. {
  554. if(IsPlayerConnected(para1))
  555. {
  556. if(para1 != INVALID_PLAYER_ID)
  557. {
  558. if (PlayerInfo[para1][pMember] == 0)
  559. {
  560. if(PlayerInfo[playerid][pLeader] == 13) { PlayerInfo[para1][pTeam] = 13; gTeam[para1] = 13; ftext = "Русская мафия"; ChosenSkin[para1] = 112; SetPlayerSkin(para1, 112); }
  561. else { return 1; }
  562. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  563. GetPlayerName(playerid, sendername, sizeof(sendername));
  564. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  565. PlayerInfo[para1][pRank] = 1;
  566. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  567. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  568. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  569. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  570. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  571. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  572. SetPlayerInterior(para1,0);
  573. new rand = random(sizeof(gInviteSpawns));
  574. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  575. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  576. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  577. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  578. TogglePlayerControllable(para1, 0);
  579. SelectChar[para1] = 255;
  580. SelectCharID[para1] = PlayerInfo[para1][pMember];
  581. SelectCharPlace[para1] = 1;
  582. PlayerInfo[para1][pJob] = 0;
  583. PlayerInfo[para1][pContractTime] = 0;
  584. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  585. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  586. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  587. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  588. }
  589. else
  590. {
  591. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  592. return 1;
  593. }
  594. }
  595. }//not connected
  596. }
  597. else if (PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 14 && PlayerInfo[playerid][pRank] == 9)
  598. {
  599. if(IsPlayerConnected(para1))
  600. {
  601. if(para1 != INVALID_PLAYER_ID)
  602. {
  603. if (PlayerInfo[para1][pMember] == 0)
  604. {
  605. if(PlayerInfo[playerid][pLeader] == 14) { PlayerInfo[para1][pTeam] = 14; gTeam[para1] = 14; ftext = "Grove Street Gang"; ChosenSkin[para1] = 270; SetPlayerSkin(para1, 270); }
  606. else { return 1; }
  607. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  608. GetPlayerName(playerid, sendername, sizeof(sendername));
  609. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  610. PlayerInfo[para1][pRank] = 1;
  611. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  612. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  613. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  614. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  615. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  616. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  617. SetPlayerInterior(para1,0);
  618. new rand = random(sizeof(gInviteSpawns));
  619. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  620. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  621. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  622. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  623. TogglePlayerControllable(para1, 0);
  624. SelectChar[para1] = 255;
  625. SelectCharID[para1] = PlayerInfo[para1][pMember];
  626. SelectCharPlace[para1] = 1;
  627. PlayerInfo[para1][pJob] = 0;
  628. PlayerInfo[para1][pContractTime] = 0;
  629. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  630. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  631. //CheckConnectedPlayer(para1);
  632. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  633. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  634. }
  635. else
  636. {
  637. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  638. return 1;
  639. }
  640. }
  641. }//not connected
  642. }
  643. else if (PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15 && PlayerInfo[playerid][pRank] == 9)
  644. {
  645. if(IsPlayerConnected(para1))
  646. {
  647. if(para1 != INVALID_PLAYER_ID)
  648. {
  649. if (PlayerInfo[para1][pMember] == 0)
  650. {
  651. if(PlayerInfo[playerid][pLeader] == 15) { PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "Aztecas Gang"; ChosenSkin[para1] = 114; SetPlayerSkin(para1, 114); }
  652. else { return 1; }
  653. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  654. GetPlayerName(playerid, sendername, sizeof(sendername));
  655. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  656. PlayerInfo[para1][pRank] = 1;
  657. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  658. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  659. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  660. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  661. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  662. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  663. SetPlayerInterior(para1,0);
  664. new rand = random(sizeof(gInviteSpawns));
  665. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  666. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  667. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  668. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  669. TogglePlayerControllable(para1, 0);
  670. SelectChar[para1] = 255;
  671. SelectCharID[para1] = PlayerInfo[para1][pMember];
  672. SelectCharPlace[para1] = 1;
  673. PlayerInfo[para1][pJob] = 0;
  674. PlayerInfo[para1][pContractTime] = 0;
  675. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  676. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  677. //CheckConnectedPlayer(para1);
  678. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  679. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  680. }
  681. else
  682. {
  683. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  684. return 1;
  685. }
  686. }
  687. }//not connected
  688. }
  689. else if (PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 16 && PlayerInfo[playerid][pRank] == 9)
  690. {
  691. if(IsPlayerConnected(para1))
  692. {
  693. if(para1 != INVALID_PLAYER_ID)
  694. {
  695. if (PlayerInfo[para1][pMember] == 0)
  696. {
  697. if(PlayerInfo[playerid][pLeader] == 16) { PlayerInfo[para1][pTeam] = 16; gTeam[para1] = 16; ftext = "The Ballas Gang"; ChosenSkin[para1] = 102; SetPlayerSkin(para1, 102); }
  698. else { return 1; }
  699. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  700. GetPlayerName(playerid, sendername, sizeof(sendername));
  701. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  702. PlayerInfo[para1][pRank] = 1;
  703. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  704. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  705. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  706. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  707. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  708. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  709. SetPlayerInterior(para1,0);
  710. new rand = random(sizeof(gInviteSpawns));
  711. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  712. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  713. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  714. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  715. TogglePlayerControllable(para1, 0);
  716. SelectChar[para1] = 255;
  717. SelectCharID[para1] = PlayerInfo[para1][pMember];
  718. SelectCharPlace[para1] = 1;
  719. PlayerInfo[para1][pJob] = 0;
  720. PlayerInfo[para1][pContractTime] = 0;
  721. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  722. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  723. //CheckConnectedPlayer(para1);
  724. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  725. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  726. }
  727. else
  728. {
  729. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  730. return 1;
  731. }
  732. }
  733. }//not connected
  734. }
  735. else if (PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17 && PlayerInfo[playerid][pRank] == 9)
  736. {
  737. if(IsPlayerConnected(para1))
  738. {
  739. if(para1 != INVALID_PLAYER_ID)
  740. {
  741. if (PlayerInfo[para1][pMember] == 0)
  742. {
  743. if(PlayerInfo[playerid][pLeader] == 17) { PlayerInfo[para1][pTeam] = 17; gTeam[para1] = 17; ftext = "The Rifa Gang"; ChosenSkin[para1] = 173; SetPlayerSkin(para1, 173); }
  744. else { return 1; }
  745. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  746. GetPlayerName(playerid, sendername, sizeof(sendername));
  747. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  748. PlayerInfo[para1][pRank] = 1;
  749. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  750. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  751. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  752. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  753. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  754. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  755. SetPlayerInterior(para1,0);
  756. new rand = random(sizeof(gInviteSpawns));
  757. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  758. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  759. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  760. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  761. TogglePlayerControllable(para1, 0);
  762. SelectChar[para1] = 255;
  763. SelectCharID[para1] = PlayerInfo[para1][pMember];
  764. SelectCharPlace[para1] = 1;
  765. PlayerInfo[para1][pJob] = 0;
  766. PlayerInfo[para1][pContractTime] = 0;
  767. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  768. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  769. //CheckConnectedPlayer(para1);
  770. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  771. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  772. }
  773. else
  774. {
  775. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  776. return 1;
  777. }
  778. }
  779. }//not connected
  780. }
  781. else if (PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18 && PlayerInfo[playerid][pRank] == 9)
  782. {
  783. if(IsPlayerConnected(para1))
  784. {
  785. if(para1 != INVALID_PLAYER_ID)
  786. {
  787. if (PlayerInfo[para1][pMember] == 0)
  788. {
  789. if(PlayerInfo[playerid][pLeader] == 18) { PlayerInfo[para1][pTeam] = 18; gTeam[para1] = 18; ftext = "Los Santos Vagos Gang"; ChosenSkin[para1] = 108; SetPlayerSkin(para1, 108); }
  790. else { return 1; }
  791. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  792. GetPlayerName(playerid, sendername, sizeof(sendername));
  793. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  794. PlayerInfo[para1][pRank] = 1;
  795. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  796. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  797. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  798. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  799. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  800. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  801. SetPlayerInterior(para1,0);
  802. new rand = random(sizeof(gInviteSpawns));
  803. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  804. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  805. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  806. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  807. TogglePlayerControllable(para1, 0);
  808. SelectChar[para1] = 255;
  809. SelectCharID[para1] = PlayerInfo[para1][pMember];
  810. SelectCharPlace[para1] = 1;
  811. PlayerInfo[para1][pJob] = 0;
  812. PlayerInfo[para1][pContractTime] = 0;
  813. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  814. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  815. //CheckConnectedPlayer(para1);
  816. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  817. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  818. }
  819. else
  820. {
  821. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  822. return 1;
  823. }
  824. }
  825. }//not connected
  826. }
  827. else if (PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 19 && PlayerInfo[playerid][pRank] == 14)
  828. {
  829. if(IsPlayerConnected(para1))
  830. {
  831. if(para1 != INVALID_PLAYER_ID)
  832. {
  833. if (PlayerInfo[para1][pMember] == 0)
  834. {
  835. if(PlayerInfo[playerid][pLeader] == 19) { PlayerInfo[para1][pTeam] = 19; gTeam[para1] = 19; ftext = "Армия ЛВ"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
  836. else { return 1; }
  837. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  838. GetPlayerName(playerid, sendername, sizeof(sendername));
  839. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  840. PlayerInfo[para1][pRank] = 1;
  841. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  842. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  843. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  844. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  845. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  846. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  847. SetPlayerInterior(para1,0);
  848. new rand = random(sizeof(gInviteSpawns));
  849. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  850. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  851. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  852. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  853. TogglePlayerControllable(para1, 0);
  854. SelectChar[para1] = 255;
  855. SelectCharID[para1] = PlayerInfo[para1][pMember];
  856. SelectCharPlace[para1] = 1;
  857. PlayerInfo[para1][pJob] = 0;
  858. PlayerInfo[para1][pContractTime] = 0;
  859. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  860. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  861. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  862. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  863. }
  864. else
  865. {
  866. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  867. return 1;
  868. }
  869. }
  870. }//not connected
  871. }
  872. else if (PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 20 && PlayerInfo[playerid][pRank] == 9)
  873. {
  874. if(IsPlayerConnected(para1))
  875. {
  876. if(para1 != INVALID_PLAYER_ID)
  877. {
  878. if (PlayerInfo[para1][pMember] == 0)
  879. {
  880. if(PlayerInfo[playerid][pLeader] == 20) { PlayerInfo[para1][pTeam] = 20; gTeam[para1] = 20; ftext = "LS News"; ChosenSkin[para1] = 250; SetPlayerSkin(para1, 250); }
  881. else { return 1; }
  882. GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  883. GetPlayerName(playerid, sendername, sizeof(sendername));
  884. PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
  885. PlayerInfo[para1][pRank] = 1;
  886. printf("[RP]GoldenGround[RUS/UA] (0.3c): %s пригласил %s присоединяться %s.", sendername, giveplayer, ftext);
  887. format(string, sizeof(string), "Вы были приняты в %s, по приглашению %s", ftext, sendername);
  888. SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  889. format(string, sizeof(string), "Вы пригласили %s в организацию %s", giveplayer,ftext);
  890. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  891. SendClientMessage(para1, COLOR_LIGHTBLUE, "Вы уволены с работы");
  892. SetPlayerInterior(para1,0);
  893. new rand = random(sizeof(gInviteSpawns));
  894. SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  895. SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  896. SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  897. SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  898. TogglePlayerControllable(para1, 0);
  899. SelectChar[para1] = 255;
  900. SelectCharID[para1] = PlayerInfo[para1][pMember];
  901. SelectCharPlace[para1] = 1;
  902. PlayerInfo[para1][pJob] = 0;
  903. PlayerInfo[para1][pContractTime] = 0;
  904. PlayerInfo[para1][pModel] = ChosenSkin[para1];
  905. PlayerInfo[para1][pChar] = ChosenSkin[para1];
  906. SendClientMessage(para1, COLOR_LIGHTRED, "* используйте 'next'чтобы выбрать следущий скин.");
  907. SendClientMessage(para1, COLOR_LIGHTRED, "* Если вы выбрали скин, и вы хотите использовать его, напечататайте 'done'.");
  908. }
  909. else
  910. {
  911. SendClientMessage(playerid, COLOR_GREY, "Игрок не подходит лвл/Розыск/Находиться во фракции/Ранг");
  912. return 1;
  913. }
  914. }
  915. }//not connected
  916. }
  917. else
  918. {
  919. SendClientMessage(playerid, COLOR_GRAD1, "Вы не уполномочены использовать эту команду!");
  920. }
  921. }
  922. return 1;
Add Comment
Please, Sign In to add comment