Guest User

Untitled

a guest
Apr 17th, 2012
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.82 KB | None | 0 0
  1. public OnPlayerUpdate(playerid)
  2. {
  3. if(playerVariables[playerid][pTutorial] == 1) {
  4. new
  5. Keys,
  6. ud,
  7. lr;
  8.  
  9. GetPlayerKeys(playerid, Keys, ud, lr);
  10. if(lr > 0) {
  11. if(playerVariables[playerid][pSkinCount]+1 >= sizeof(tutorialSkins)) {
  12. SetPlayerSkin(playerid, 0);
  13. playerVariables[playerid][pSkinCount] = 0;
  14. PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  15. }
  16. else {
  17. playerVariables[playerid][pSkinCount]++;
  18. SetPlayerSkin(playerid, tutorialSkins[playerVariables[playerid][pSkinCount]]);
  19. }
  20. }
  21. else if(lr < 0) {
  22. if(playerVariables[playerid][pSkinCount]-1 < 0) {
  23. SetPlayerSkin(playerid, 0);
  24. playerVariables[playerid][pSkinCount] = 0;
  25. PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  26. }
  27. else {
  28. playerVariables[playerid][pSkinCount]--;
  29. SetPlayerSkin(playerid, tutorialSkins[playerVariables[playerid][pSkinCount]]);
  30. }
  31. }
  32. }
  33.  
  34. if(playerVariables[playerid][pOnRequest] != INVALID_PLAYER_ID) {
  35. new
  36. Keys,
  37. ud,
  38. lr;
  39.  
  40. GetPlayerKeys(playerid, Keys, ud, lr);
  41.  
  42. if(lr > 0) {
  43. GetPlayerPos(playerVariables[playerid][pOnRequest], playerVariables[playerVariables[playerid][pOnRequest]][pPos][0], playerVariables[playerVariables[playerid][pOnRequest]][pPos][1], playerVariables[playerVariables[playerid][pOnRequest]][pPos][2]);
  44.  
  45. SetPlayerPos(playerid, playerVariables[playerVariables[playerid][pOnRequest]][pPos][0], playerVariables[playerVariables[playerid][pOnRequest]][pPos][1], playerVariables[playerVariables[playerid][pOnRequest]][pPos][2]);
  46. TextDrawHideForPlayer(playerid, textdrawVariables[1]);
  47.  
  48. SendClientMessage(playerid, COLOR_WHITE, "You have teleported to the player who has requested help.");
  49.  
  50. playerVariables[playerid][pOnRequest] = INVALID_PLAYER_ID;
  51. }
  52. else if(lr < 0) {
  53. TextDrawHideForPlayer(playerid, textdrawVariables[1]);
  54. playerVariables[playerid][pOnRequest] = INVALID_PLAYER_ID;
  55. }
  56. }
  57.  
  58. if(playerVariables[playerid][pTabbed] == 1) {
  59. playerVariables[playerid][pTabbed] = 0;
  60. DestroyDynamic3DTextLabel(playerVariables[playerid][pAFKLabel]);
  61. if(playerVariables[playerid][pOutstandingWeaponRemovalSlot] >= 1) {
  62. if(playerVariables[playerid][pOutstandingWeaponRemovalSlot] == 40) {
  63. ResetPlayerWeapons(playerid);
  64. }
  65. else {
  66. ResetPlayerWeapons(playerid);
  67. playerVariables[playerid][pWeapons][playerVariables[playerid][pOutstandingWeaponRemovalSlot]] = 0;
  68. givePlayerWeapons(playerid);
  69. }
  70. playerVariables[playerid][pAnticheatExemption] = 6;
  71. }
  72. }
  73.  
  74. if(playerVariables[playerid][pTutorial] >= 4 && playerVariables[playerid][pTutorial] < 14 && GetPVarInt(playerid, "tutTime") > 0)
  75. TextDrawShowForPlayer(playerid, textdrawVariables[8]);
  76.  
  77. if(playerVariables[playerid][pTutorial] >= 4 && playerVariables[playerid][pTutorial] < 14 && GetPVarInt(playerid, "tutTime") < 1) {
  78. new
  79. Keys,
  80. ud,
  81. lr;
  82.  
  83. GetPlayerKeys(playerid, Keys, ud, lr);
  84. if(lr > 0) {
  85. playerVariables[playerid][pTutorial]++;
  86. switch(playerVariables[playerid][pTutorial]) {
  87. case 5: {
  88. SendClientMessage(playerid, COLOR_YELLOW, "Overview");
  89. SendClientMessage(playerid, COLOR_WHITE, "This is a roleplay server, which means you act out a character as if it were real.");
  90. SendClientMessage(playerid, COLOR_WHITE, "Pressing the button to open the textbox (usually T) and simply typing a message,");
  91. SendClientMessage(playerid, COLOR_WHITE, "will broadcast what you've typed to the people around you as an 'IC' (in character) message.");
  92. SendClientMessage(playerid, COLOR_WHITE, " ");
  93. SendClientMessage(playerid, COLOR_WHITE, "Using /b and typing your message (e.g. /b hello) will enclose what you've written in double parenthesis.");
  94. SendClientMessage(playerid, COLOR_WHITE, "This will broadcast your message to the people around you as an 'OOC' (out of character) message.");
  95. SendClientMessage(playerid, COLOR_WHITE, " ");
  96. SendClientMessage(playerid, COLOR_WHITE, "Similarly, using /o has the same purpose as /b, though this time the message will be broadcasted throughout the entire server.");
  97.  
  98. SetPVarInt(playerid, "tutTime", 10);
  99. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  100. SendClientMessage(playerid, COLOR_YELLOW, "");
  101. }
  102. case 6: {
  103. clearScreen(playerid);
  104. SendClientMessage(playerid, COLOR_YELLOW, "Locations:");
  105. SendClientMessage(playerid, COLOR_YELLOW, "");
  106.  
  107. SendClientMessage(playerid, COLOR_YELLOW, "The Bank");
  108. SendClientMessage(playerid, COLOR_WHITE, "This is the place you'll want to go to make your various monetary transactions.");
  109. SendClientMessage(playerid, COLOR_WHITE, "The following commands will be useful:");
  110. SendClientMessage(playerid, COLOR_WHITE, "/balance, /withdraw and /deposit");
  111.  
  112. SetPlayerVirtualWorld(playerid, 0);
  113. SetPlayerInterior(playerid, 0);
  114.  
  115. SetPlayerCameraPos(playerid, 608.430480, -1203.073608, 17.801227);
  116. SetPlayerCameraLookAt(playerid, 594.246276, -1237.907348, 17.801227);
  117. SetPlayerPos(playerid, 526.8502, -1261.1985, 16.2272-30);
  118.  
  119. SetPVarInt(playerid, "tutTime", 4);
  120. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  121. SendClientMessage(playerid, COLOR_YELLOW, "");
  122. }
  123. case 7: {
  124. SendClientMessage(playerid, COLOR_YELLOW, "The Crane");
  125. SendClientMessage(playerid, COLOR_WHITE, "At the crane, you can drop off vehicles for money.");
  126. SendClientMessage(playerid, COLOR_WHITE, "Use the command /dropcar to drive the vehicle to the red marker.");
  127.  
  128. SetPlayerCameraPos(playerid, 2637.447265, -2226.906738, 16.296875);
  129. SetPlayerCameraLookAt(playerid, 2651.442626, -2227.208496, 16.296875);
  130. SetPlayerPos(playerid, 2641.4473, -2226.9067, 16.2969-30);
  131.  
  132. SetPVarInt(playerid, "tutTime", 5);
  133. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  134. SendClientMessage(playerid, COLOR_YELLOW, "");
  135. }
  136. case 8: {
  137. SendClientMessage(playerid, COLOR_YELLOW, "Los Santos Police Department");
  138. SendClientMessage(playerid, COLOR_WHITE, "This is the place where you'll find police officers.");
  139. SendClientMessage(playerid, COLOR_WHITE, "Inside, you should wait in lobby before being served.");
  140. SendClientMessage(playerid, COLOR_WHITE, "If you want to apply to the LSPD, please visit our forum.");
  141.  
  142. SetPlayerCameraPos(playerid, 1495.273925, -1675.542358, 28.382812);
  143. SetPlayerCameraLookAt(playerid, 1535.268432, -1675.874023, 13.382812);
  144. SetPlayerPos(playerid, 2641.4473, -2226.9067, 16.2969-30);
  145.  
  146. SetPVarInt(playerid, "tutTime", 6);
  147. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  148. SendClientMessage(playerid, COLOR_YELLOW, "");
  149. }
  150. case 9: {
  151. clearScreen(playerid);
  152. SendClientMessage(playerid, COLOR_YELLOW, "Jobs:");
  153. SendClientMessage(playerid, COLOR_YELLOW, "");
  154.  
  155. SendClientMessage(playerid, COLOR_WHITE, "Having a job gives you something to do. ");
  156. SendClientMessage(playerid, COLOR_WHITE, "Your job may also have a skill depending on the job you have.");
  157. SendClientMessage(playerid, COLOR_WHITE, "All jobs are productive in some way.");
  158.  
  159. SetPVarInt(playerid, "tutTime", 2);
  160. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  161. SendClientMessage(playerid, COLOR_YELLOW, "");
  162. }
  163. case 10: {
  164. SendClientMessage(playerid, COLOR_YELLOW, "Mechanic Job");
  165. SendClientMessage(playerid, COLOR_WHITE, "You can find the Mechanic job near the crane at Ocean Docks.");
  166. SendClientMessage(playerid, COLOR_WHITE, "A mechanic can repair vehicles, add nitrous and even repaint vehicles.");
  167.  
  168. SetPlayerCameraPos(playerid, 2314.167724, -2328.139892, 21.382812);
  169. SetPlayerCameraLookAt(playerid, 2323.291748, -2321.122314, 13.382812);
  170. SetPlayerPos(playerid, 2316.1677, -2328.1399, 13.3828-30);
  171.  
  172. SetPVarInt(playerid, "tutTime", 5);
  173. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  174. SendClientMessage(playerid, COLOR_YELLOW, "");
  175. }
  176. case 11: {
  177. SendClientMessage(playerid, COLOR_YELLOW, "Arms Dealer Job");
  178. SendClientMessage(playerid, COLOR_WHITE, "You can find the Arms Dealer job at the front of LS Ammunation.");
  179. SendClientMessage(playerid, COLOR_WHITE, "An arms dealer goes on material runs to obtain materials.");
  180. SendClientMessage(playerid, COLOR_WHITE, "They can then use those materials to create weapons.");
  181. SendClientMessage(playerid, COLOR_WHITE, "There are ten weapon levels.");
  182. SendClientMessage(playerid, COLOR_WHITE, "Each level unlocks a new weapon. Every 50 weapons levels you up.");
  183.  
  184. SetPlayerCameraPos(playerid, 1353.600097, -1301.909790, 19.382812);
  185. SetPlayerCameraLookAt(playerid, 1361.592285, -1285.515136, 13.382812);
  186. SetPlayerPos(playerid, 1351.6001, -1285.9098, 13.3828-30);
  187.  
  188. SetPVarInt(playerid, "tutTime", 6);
  189. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  190. SendClientMessage(playerid, COLOR_YELLOW, "");
  191. }
  192. case 12: {
  193. SendClientMessage(playerid, COLOR_YELLOW, "Detective Job");
  194. SendClientMessage(playerid, COLOR_WHITE, "You can find the Detective job near the bank.");
  195. SendClientMessage(playerid, COLOR_WHITE, "A detective can track people, vehicles and houses");
  196. SendClientMessage(playerid, COLOR_WHITE, "To track vehicles and houses, however, you'll need to level up.");
  197. SendClientMessage(playerid, COLOR_WHITE, "As with the arms dealer job, there are 10 levels.");
  198. SendClientMessage(playerid, COLOR_WHITE, "Every 50 searches levels you up.");
  199.  
  200. SetPlayerCameraPos(playerid, 622.514709, -1458.283691, 22.256816);
  201. SetPlayerCameraLookAt(playerid, 612.514709, -1458.298583, 14.256817);
  202. SetPlayerPos(playerid, 622.5147, -1458.2837, 14.2568-30);
  203.  
  204. SetPVarInt(playerid, "tutTime", 10);
  205. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  206. }
  207. case 13: {
  208. SendClientMessage(playerid, COLOR_YELLOW, "Levels");
  209. SendClientMessage(playerid, COLOR_WHITE, "A very new feature to this script is a levels system.");
  210. SendClientMessage(playerid, COLOR_WHITE, "");
  211. SendClientMessage(playerid, COLOR_WHITE, "You can now gain OOC levels which will benefit you throughout the server.");
  212. SendClientMessage(playerid, COLOR_WHITE, "As of present, levels don't really do much - but future updates shall introduce a bunch of new features!");
  213. SendClientMessage(playerid, COLOR_WHITE, "");
  214. SendClientMessage(playerid, COLOR_WHITE, "You can only level up every X hours, and it costs money from your character's bank account.");
  215.  
  216. SetPlayerCameraPos(playerid, 622.514709, -1458.283691, 22.256816);
  217. SetPlayerCameraLookAt(playerid, 612.514709, -1458.298583, 14.256817);
  218. SetPlayerPos(playerid, 622.5147, -1458.2837, 14.2568-30);
  219.  
  220. SetPVarInt(playerid, "tutTime", 10);
  221. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  222. }
  223. case 14: {
  224. SendClientMessage(playerid, COLOR_YELLOW, "Conclusion");
  225. SendClientMessage(playerid, COLOR_WHITE, "Thanks for reading/watching the tutorial, your character will now spawn. ");
  226. SendClientMessage(playerid, COLOR_WHITE, "If you have any questions or concerns which relate to gameplay on our server, please use "EMBED_GREY"/n"EMBED_WHITE".");
  227. SendClientMessage(playerid, COLOR_WHITE, "If you wish to obtain help from an official member of staff, please use "EMBED_GREY"/helpme"EMBED_WHITE".");
  228. SendClientMessage(playerid, COLOR_WHITE, "If you see any players breaking rules, please use "EMBED_GREY"/report"EMBED_WHITE".");
  229.  
  230. format(szMessage, sizeof(szMessage), "Last, but not least, please make sure that you register on our community forums: "EMBED_GREY"%s"EMBED_WHITE".", szServerWebsite);
  231. SendClientMessage(playerid, COLOR_WHITE, szMessage);
  232.  
  233. firstPlayerSpawn(playerid);
  234. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  235. }
  236. }
  237. }
  238. else if(lr < 0) {
  239. playerVariables[playerid][pTutorial]--;
  240.  
  241. if(playerVariables[playerid][pTutorial] < 5) {
  242. playerVariables[playerid][pTutorial] = 5;
  243. PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  244. }
  245.  
  246. switch(playerVariables[playerid][pTutorial]) {
  247. case 5: {
  248. SendClientMessage(playerid, COLOR_YELLOW, "Overview");
  249. SendClientMessage(playerid, COLOR_WHITE, "This is a roleplay server, which means you act out a character as if it were real.");
  250. SendClientMessage(playerid, COLOR_WHITE, "Pressing the button to open the textbox (usually T) and simply typing a message,");
  251. SendClientMessage(playerid, COLOR_WHITE, "will broadcast what you've typed to the people around you as an 'IC' (in character) message.");
  252. SendClientMessage(playerid, COLOR_WHITE, " ");
  253. SendClientMessage(playerid, COLOR_WHITE, "Using /b and typing your message (e.g. /b hello) will enclose what you've written in double parenthesis.");
  254. SendClientMessage(playerid, COLOR_WHITE, "This will broadcast your message to the people around you as an 'OOC' (out of character) message.");
  255. SendClientMessage(playerid, COLOR_WHITE, " ");
  256. SendClientMessage(playerid, COLOR_WHITE, "Similarly, using /o has the same purpose as /b, though this time the message will be broadcasted throughout the entire server.");
  257.  
  258. SetPVarInt(playerid, "tutTime", 10);
  259. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  260. }
  261. case 6: {
  262. clearScreen(playerid);
  263. SendClientMessage(playerid, COLOR_YELLOW, "Locations:");
  264. SendClientMessage(playerid, COLOR_YELLOW, "");
  265.  
  266. SendClientMessage(playerid, COLOR_YELLOW, "The Bank");
  267. SendClientMessage(playerid, COLOR_WHITE, "This is the place you'll want to go to make your various monetary transactions.");
  268. SendClientMessage(playerid, COLOR_WHITE, "The following commands will be useful:");
  269. SendClientMessage(playerid, COLOR_WHITE, "/balance, /withdraw and /deposit");
  270.  
  271. SetPlayerVirtualWorld(playerid, 0);
  272. SetPlayerInterior(playerid, 0);
  273.  
  274. SetPlayerCameraPos(playerid, 608.430480, -1203.073608, 17.801227);
  275. SetPlayerCameraLookAt(playerid, 594.246276, -1237.907348, 17.801227);
  276. SetPlayerPos(playerid, 526.8502, -1261.1985, 16.2272-30);
  277.  
  278. SetPVarInt(playerid, "tutTime", 4);
  279. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  280. }
  281. case 7: {
  282. SendClientMessage(playerid, COLOR_YELLOW, "The Crane");
  283. SendClientMessage(playerid, COLOR_WHITE, "At the crane, you can drop off vehicles for money.");
  284. SendClientMessage(playerid, COLOR_WHITE, "Use the command /dropcar to drive the vehicle to the red marker.");
  285.  
  286. SetPlayerCameraPos(playerid, 2637.447265, -2226.906738, 16.296875);
  287. SetPlayerCameraLookAt(playerid, 2651.442626, -2227.208496, 16.296875);
  288. SetPlayerPos(playerid, 2641.4473, -2226.9067, 16.2969-30);
  289.  
  290. SetPVarInt(playerid, "tutTime", 5);
  291. TextDrawHideForPlayer(playerid, textdrawVariables[8]);
  292. }
  293. case 8: {
  294. SendClientMessage(playerid, COLOR_YELLOW, "Los Santos Police Department");
  295. SendClientMessage(playerid, COLOR_WHITE, "This is the place where you'll find police officers.");
  296. SendClientMessage(playerid, COLOR_WHITE, "Inside, you should wait in lobby before being served.");
  297. SendClientMessage(playerid, COLOR_WHITE, "If you want to apply to the LSPD, please visit our forum.");
  298.  
  299. SetPlayerCameraPos(playerid, 1495.273925, -1675.542358, 28.382812);
  300. SetPlayerCameraLookAt(playerid, 1535.268432, -1675.874023, 13.382812);
  301. SetPlayerPos(playerid, 2641.4473, -2226.9067, 16.2969-30);
  302.  
  303. SetPVarInt(playerid, "tutTime", 6);
  304. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  305. }
  306. case 9: {
  307. clearScreen(playerid);
  308. SendClientMessage(playerid, COLOR_YELLOW, "Jobs:");
  309. SendClientMessage(playerid, COLOR_YELLOW, "");
  310.  
  311. SendClientMessage(playerid, COLOR_WHITE, "Having a job gives you something to do. ");
  312. SendClientMessage(playerid, COLOR_WHITE, "Your job may also have a skill depending on the job you have.");
  313. SendClientMessage(playerid, COLOR_WHITE, "All jobs are productive in some way.");
  314.  
  315. SetPVarInt(playerid, "tutTime", 5);
  316. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  317. }
  318. case 10: {
  319. SendClientMessage(playerid, COLOR_YELLOW, "Mechanic Job");
  320. SendClientMessage(playerid, COLOR_WHITE, "You can find the Mechanic job near the crane at Ocean Docks.");
  321. SendClientMessage(playerid, COLOR_WHITE, "A mechanic can repair vehicles, add nitrous and even repaint vehicles.");
  322.  
  323. SetPlayerCameraPos(playerid, 2314.167724, -2328.139892, 21.382812);
  324. SetPlayerCameraLookAt(playerid, 2323.291748, -2321.122314, 13.382812);
  325. SetPlayerPos(playerid, 2316.1677, -2328.1399, 13.3828-30);
  326.  
  327. SetPVarInt(playerid, "tutTime", 5);
  328. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  329. }
  330. case 11: {
  331. SendClientMessage(playerid, COLOR_YELLOW, "Arms Dealer Job");
  332. SendClientMessage(playerid, COLOR_WHITE, "You can find the Arms Dealer job at the front of LS Ammunation.");
  333. SendClientMessage(playerid, COLOR_WHITE, "An arms dealer goes on material runs to obtain materials.");
  334. SendClientMessage(playerid, COLOR_WHITE, "They can then use those materials to create weapons.");
  335. SendClientMessage(playerid, COLOR_WHITE, "There are ten weapon levels.");
  336. SendClientMessage(playerid, COLOR_WHITE, "Each level unlocks a new weapon. Every 50 weapons levels you up.");
  337.  
  338. SetPlayerCameraPos(playerid, 1353.600097, -1301.909790, 19.382812);
  339. SetPlayerCameraLookAt(playerid, 1361.592285, -1285.515136, 13.382812);
  340. SetPlayerPos(playerid, 1351.6001, -1285.9098, 13.3828-30);
  341.  
  342. SetPVarInt(playerid, "tutTime", 10);
  343. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  344. }
  345. case 12: {
  346. SendClientMessage(playerid, COLOR_YELLOW, "Detective Job");
  347. SendClientMessage(playerid, COLOR_WHITE, "You can find the Detective job near the bank.");
  348. SendClientMessage(playerid, COLOR_WHITE, "A detective can track people, vehicles and houses");
  349. SendClientMessage(playerid, COLOR_WHITE, "To track vehicles and houses, however, you'll need to level up.");
  350. SendClientMessage(playerid, COLOR_WHITE, "As with the arms dealer job, there are 10 levels.");
  351. SendClientMessage(playerid, COLOR_WHITE, "Every 50 searches levels you up.");
  352.  
  353. SetPlayerCameraPos(playerid, 622.514709, -1458.283691, 22.256816);
  354. SetPlayerCameraLookAt(playerid, 612.514709, -1458.298583, 14.256817);
  355. SetPlayerPos(playerid, 622.5147, -1458.2837, 14.2568-30);
  356.  
  357. SetPVarInt(playerid, "tutTime", 10);
  358. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  359. }
  360. case 13: {
  361. SendClientMessage(playerid, COLOR_YELLOW, "Levels");
  362. SendClientMessage(playerid, COLOR_WHITE, "A very new feature to this script is a levels system.");
  363. SendClientMessage(playerid, COLOR_WHITE, "");
  364. SendClientMessage(playerid, COLOR_WHITE, "You can now gain OOC levels which will benefit you throughout the server.");
  365. SendClientMessage(playerid, COLOR_WHITE, "As of present, levels don't really do much - but future updates shall introduce a bunch of new features!");
  366. SendClientMessage(playerid, COLOR_WHITE, "");
  367. SendClientMessage(playerid, COLOR_WHITE, "You can only level up every X hours, and it costs money from your character's bank account.");
  368.  
  369. SetPlayerCameraPos(playerid, 622.514709, -1458.283691, 22.256816);
  370. SetPlayerCameraLookAt(playerid, 612.514709, -1458.298583, 14.256817);
  371. SetPlayerPos(playerid, 622.5147, -1458.2837, 14.2568-30);
  372.  
  373. SetPVarInt(playerid, "tutTime", 10);
  374. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  375. }
  376. case 14: {
  377. SendClientMessage(playerid, COLOR_YELLOW, "Conclusion");
  378. SendClientMessage(playerid, COLOR_WHITE, "Thanks for reading/watching the tutorial, your character will now spawn. ");
  379. SendClientMessage(playerid, COLOR_WHITE, "If you have any questions or concerns which relate to gameplay on our server, please use "EMBED_GREY"/n"EMBED_WHITE".");
  380. SendClientMessage(playerid, COLOR_WHITE, "If you wish to obtain help from an official member of staff, please use "EMBED_GREY"/helpme"EMBED_WHITE".");
  381. SendClientMessage(playerid, COLOR_WHITE, "If you see any players breaking rules, please use "EMBED_GREY"/report"EMBED_WHITE".");
  382.  
  383. format(szMessage, sizeof(szMessage), "Last, but not least, please make sure that you register on our community forums: "EMBED_GREY"%s"EMBED_WHITE".", szServerWebsite);
  384. SendClientMessage(playerid, COLOR_WHITE, szMessage);
  385.  
  386. firstPlayerSpawn(playerid);
  387. TextDrawHideForPlayer(playerid, textdrawVariables[7]);
  388. }
  389. }
  390. }
  391. }
  392.  
  393. if(GetPlayerState(playerid) == 2) {
  394. for(new v; v < MAX_SPIKES; v++) {
  395. if(spikeVariables[v][sPos][0] != 0 && spikeVariables[v][sPos][1] != 0 && spikeVariables[v][sPos][2] != 0) {
  396. if(IsVehicleInRangeOfPoint(GetPlayerVehicleID(playerid), 2.0, spikeVariables[v][sPos][0], spikeVariables[v][sPos][1], spikeVariables[v][sPos][2])) {
  397.  
  398. new
  399. Damage[4];
  400.  
  401. GetVehicleDamageStatus(GetPlayerVehicleID(playerid), Damage[0], Damage[1], Damage[2], Damage[3]); // Set tires to 15 and watch 'em pop.
  402. UpdateVehicleDamageStatus(GetPlayerVehicleID(playerid), Damage[0], Damage[1], Damage[2], 15);
  403. }
  404. }
  405. }
  406. }
  407. playerVariables[playerid][pConnectedSeconds] = gettime();
  408. return 1;
  409. }
Advertisement
Add Comment
Please, Sign In to add comment