SkiZZoExpert

Untitled

Dec 28th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.59 KB | None | 0 0
  1. public SetPlayerUnjail()
  2. {
  3. CustomPickups();
  4. if(serverrestart2 > 0)
  5. {
  6. serverrestart2 = serverrestart2-1;
  7. new stringers[256];
  8. format(stringers, sizeof(stringers), "SERVERUL SE VA RESTARTA IN %d SECUNDE", serverrestart2);
  9. TextDrawSetString(textile, stringers);
  10. foreach(Player,i)
  11. {
  12. TextDrawShowForPlayer(i, textile);
  13. }
  14. if(serverrestart2 < 1)
  15. {
  16. foreach(Player,i)
  17. {
  18. OnPlayerDateUpdateX2(i);
  19. Update(i, pPayDayx);
  20. Update(i, pPayCheckx);
  21. Update(i, pFpunishx);
  22. Update(i, pConnectTimex);
  23. Update(i, pLawyerx);
  24. Update(i, pBank);
  25. Update(i, pCashx);
  26. Update(i, pRP);
  27. Update(i, pJailTimex);
  28. Update(i, pLevelx);
  29. }
  30. serverrestart2 = -1;
  31. SendRconCommand("changemode ExpertGameGM");
  32. }
  33. }
  34. if(painttime > 0)
  35. {
  36. painttime--;
  37. }
  38. new string[256],stringg[256];
  39. for(new i = 1; i < sizeof(Turfs); i++)
  40. {
  41. new attackers = WarInfo[i][wAttacker],
  42. defenders = WarInfo[i][wFaction],
  43. count=0,
  44. warid,
  45. var100[500];
  46. if(WarInfo[i][wTime] > 0)
  47. {
  48. WarInfo[i][wTime]--;
  49. foreach(Player,j)
  50. {
  51. if(PlayerInfo[j][pMember] == attackers)
  52. {
  53. format(string,sizeof(string),"~w~TURF TIMER:~h~~y~ %s",CalculeazaTimp2(WarInfo[i][wTime]));
  54. PlayerTextDrawSetString(j, TimeLeftWar1[j], string);
  55. PlayerTextDrawShow(j, TimeLeftWar1[j]);
  56. }
  57. if(PlayerInfo[j][pMember] == defenders)
  58. {
  59. format(string,sizeof(string),"~w~TURF TIMER:~h~~y~ %s",CalculeazaTimp2(WarInfo[i][wTime]));
  60. PlayerTextDrawSetString(j, TimeLeftWar1[j], string);
  61. PlayerTextDrawShow(j, TimeLeftWar1[j]);
  62. }
  63. }
  64. if(WarInfo[i][wTime] == 1)
  65. {
  66. new atscore = 0,
  67. defscore = 0,
  68. winner;
  69. atscore = WarScoreF[attackers][i];
  70. defscore = WarScoreF[defenders][i];
  71. foreach(Player,j)
  72. {
  73. if(PlayerInfo[j][pMember] == attackers)
  74. {
  75. GangZoneStopFlashForPlayer(j,Turfs[i]);
  76. }
  77. if(PlayerInfo[j][pMember] == defenders)
  78. {
  79. GangZoneStopFlashForPlayer(j,Turfs[i]);
  80. }
  81. }
  82. if(atscore > defscore)
  83. {
  84. winner = 1;
  85. }
  86. else
  87. {
  88. winner = 2;
  89. }
  90. if(atscore == defscore)
  91. {
  92. winner = 2;
  93. }
  94. if(winner == 1)
  95. {
  96. new str[128],stringyy[MAX_STRING];
  97. format(var100, sizeof(var100),"INSERT INTO `wars` (`Attacker`,`Defender`,`Atscore`,`Defscore`,`Result`) VALUES ('%d','%d','%d','%d','1')",attackers,defenders,atscore,defscore);
  98. mysql_query(SQL,var100);
  99. warid = mysql_insert_id();
  100. TurfInfo[i][zOwned] = WarInfo[i][wAttacker];
  101. mysql_format(SQL,str,128,"UPDATE `turfs` SET `Owned`='%d' WHERE `ID`='%d'",TurfInfo[i][zOwned],i);
  102. mysql_tquery(SQL,str,"","");
  103. format(stringyy, sizeof(stringyy), "NR AdmBot: Gruparea mafiota %s a cucerit teritoriul #%d ce era detinut de mafia %s.",NumeFactiune(WarInfo[i][wAttacker]),i,NumeFactiune(WarInfo[i][wFaction]));
  104. OOCNews(COLOR_ORANGE,stringyy);
  105. }
  106. if(winner == 2)
  107. {
  108. new stringyy[MAX_STRING];
  109. format(var100, sizeof(var100),"INSERT INTO `wars` (`Attacker`,`Defender`,`Atscore`,`Defscore`,`Result`) VALUES ('%d','%d','%d','%d','2')",attackers,defenders,atscore,defscore);
  110. mysql_query(SQL,var100);
  111. warid = mysql_insert_id();
  112. format(stringyy, sizeof(stringyy), "NR AdmBot: Gruparea mafiota %s a aparat teritoriul #%d atacat de mafia %s.",NumeFactiune(WarInfo[i][wFaction]),i,NumeFactiune(WarInfo[i][wAttacker]));
  113. OOCNews(COLOR_ORANGE,stringyy);
  114. }
  115. format(stringg,sizeof(stringg),"------------ [ war overview #%d ] ------------", warid);
  116. SendFamilyMessage(attackers, COLOR_GREEN, stringg);
  117. SendFamilyMessage(defenders, COLOR_GREEN, stringg);
  118. if(winner == 1)
  119. {
  120. format(stringg,sizeof(stringg),"Score: %s %d - %d %s.",NumeFactiune(WarInfo[i][wAttacker]),atscore,defscore,NumeFactiune(WarInfo[i][wFaction]));
  121. SendFamilyMessage(attackers, COLOR_GREEN, stringg);
  122. SendFamilyMessage(defenders, COLOR_GREEN, stringg);
  123. }
  124. if(winner == 2)
  125. {
  126. format(stringg,sizeof(stringg),"Score: %s %d - %d %s.",NumeFactiune(WarInfo[i][wFaction]),defscore,atscore,NumeFactiune(WarInfo[i][wAttacker]));
  127. SendFamilyMessage(attackers, COLOR_GREEN, stringg);
  128. SendFamilyMessage(defenders, COLOR_GREEN, stringg);
  129. }
  130. new id = CalculateBestScore(i),
  131. id2 = CalculateWorstScore(i),
  132. bestnamee[30],
  133. worstnamee[30];
  134. GetPlayerName(id, bestnamee, sizeof(bestnamee));
  135. GetPlayerName(id2, worstnamee, sizeof(worstnamee));
  136. format(stringg,sizeof(stringg),"Best score: %s with a score of %d (%d kills, %d deaths). Worst score: %s with a score of %d (%d kills, %d deaths).", bestnamee, ucideri[id][i]-decese[id][i], ucideri[id][i], decese[id][i], worstnamee, ucideri[id2][i]-decese[id2][i], ucideri[id2][i], decese[id2][i]);
  137. SendFamilyMessage(attackers, COLOR_GREEN, stringg);
  138. SendFamilyMessage(defenders, COLOR_GREEN, stringg);
  139. foreach(Player, j)
  140. {
  141. if((PlayerInfo[j][pMember] == attackers) || (PlayerInfo[j][pMember] == defenders))
  142. {
  143. format(stringg,sizeof(stringg),"Your personal score: %d (%d kills, %d deaths).",ucideri[j][i]-decese[j][i],ucideri[j][i], decese[j][i]);
  144. SendClientMessage(j, COLOR_GREEN,stringg);
  145. PlayerTextDrawHide(j, TimeLeftWar1[j]);
  146. for (new sss = 0; sss != 5; ++sss) SendDeathMessageToPlayer(j, 1001, 1001, 1001);
  147. }
  148. }
  149. SendFamilyMessage(attackers, COLOR_GREEN,"------------------------------------");
  150. SendFamilyMessage(defenders, COLOR_GREEN,"------------------------------------");
  151. WarScoreF[defenders][i] = 0;
  152. WarScoreF[attackers][i] = 0;
  153. InWar[attackers] = 0;
  154. InWar[defenders] = 0;
  155. waitwar[attackers] = 60;
  156. waitwar[defenders] = 60;
  157. foreach(Player, j)
  158. {
  159. if((PlayerInfo[j][pMember] == attackers) || (PlayerInfo[j][pMember] == defenders))
  160. {
  161. SendClientMessage(j, COLOR_YELLOW, "Ai fost transferat in Virtual World-ul normal (0).");
  162. if(GetPlayerInterior(j) < 1)
  163. {
  164. SetPlayerVirtualWorld(j, 0);
  165. }
  166. if(attackers == 4 || defenders == 4)
  167. {
  168. for(new veh; veh < sizeof(Aztecasc); veh++)
  169. {
  170. SetVehicleVirtualWorld(Aztecasc[veh], 0);
  171. }
  172. }
  173. if(attackers == 5 || defenders == 5)
  174. {
  175. for(new veh; veh < sizeof(Grovec); veh++)
  176. {
  177. SetVehicleVirtualWorld(Grovec[veh], 0);
  178. }
  179. }
  180. if(attackers == 6 || defenders == 6)
  181. {
  182. for(new veh; veh < sizeof(Vagosc); veh++)
  183. {
  184. SetVehicleVirtualWorld(Vagosc[veh], 0);
  185. }
  186. }
  187. if(attackers == 10 || defenders == 10)
  188. {
  189. for(new veh; veh < sizeof(Ballasc); veh++)
  190. {
  191. SetVehicleVirtualWorld(Ballasc[veh], 0);
  192. }
  193. }
  194. if(attackers == 21 || defenders == 21)
  195. {
  196. for(new veh; veh < sizeof(Rifac); veh++)
  197. {
  198. SetVehicleVirtualWorld(Rifac[veh], 0);
  199. }
  200. }
  201. if(attackers == 22 || defenders == 22)
  202. {
  203. for(new veh; veh < sizeof(Russc); veh++)
  204. {
  205. SetVehicleVirtualWorld(Russc[veh], 0);
  206. }
  207. }
  208. if(attackers == 23 || defenders == 23)
  209. {
  210. for(new veh; veh < sizeof(dragc); veh++)
  211. {
  212. SetVehicleVirtualWorld(dragc[veh], 0);
  213. }
  214. }
  215. if(attackers == 24 || defenders == 24)
  216. {
  217. for(new veh; veh < sizeof(dragc); veh++)
  218. {
  219. SetVehicleVirtualWorld(Italianc[veh], 0);
  220. }
  221. }
  222. if(attackers == 25 || defenders == 25)
  223. {
  224. for(new veh; veh < sizeof(sfbikec); veh++)
  225. {
  226. SetVehicleVirtualWorld(sfbikec[veh], 0);
  227. }
  228. }
  229. mysql_format(SQL, var100, sizeof(var100),"INSERT INTO `warlogs` (`PlayerID`,`WarID`,`Kills`,`Deaths`,`Faction`) VALUES ('%d','%d','%d','%d','%d')",PlayerInfo[j][pSQLID],warid,ucideri[j][i],decese[j][i],PlayerInfo[j][pMember]);
  230. mysql_tquery(SQL,var100,"","");
  231. ucideri[j][i] = 0;
  232. decese[j][i] = 0;
  233. }
  234. }
  235. if(winner == 1)
  236. {
  237. foreach(Player, j)
  238. {
  239. if(TurfsDisp[j] == 1)
  240. {
  241. GangZoneHideForPlayerEx(j,Turfs[i]);
  242. if(attackers == 4)
  243. {
  244. GangZoneShowForPlayerEx(j,Turfs[i],0xCC000099);
  245. }
  246. if(attackers == 5)
  247. {
  248. GangZoneShowForPlayerEx(j,Turfs[i],0x40863CAA);
  249. }
  250. if(attackers == 6)
  251. {
  252. GangZoneShowForPlayerEx(j,Turfs[i],0x2F2F2F99);
  253. }
  254. if(attackers == 10)
  255. {
  256. GangZoneShowForPlayerEx(j,Turfs[i],0x88572499);
  257. }
  258. if(attackers == 21)
  259. {
  260. GangZoneShowForPlayerEx(j,Turfs[i],0x6A4444AA);
  261. }
  262. if(attackers == 22)
  263. {
  264. GangZoneShowForPlayerEx(j,Turfs[i],0x2F2F2FAA);
  265. }
  266. if(attackers == 23)
  267. {
  268. GangZoneShowForPlayerEx(j,Turfs[i],0x660000AA);
  269. }
  270. if(attackers == 24)
  271. {
  272. GangZoneShowForPlayerEx(j,Turfs[i],0x24FF0AB9);
  273. }
  274. }
  275. }
  276. DeelayWar[WarInfo[i][wFaction]] = 600;
  277. DeelayWar[WarInfo[i][wAttacker]] = 1800;
  278. }
  279. if(winner == 2)
  280. {
  281. DeelayWar[WarInfo[i][wFaction]] = 600;
  282. DeelayWar[WarInfo[i][wAttacker]] = 1800;
  283. }
  284. WarInfo[i][wTime] = 0;
  285. WarInfo[i][wFaction] = 0;
  286. WarInfo[i][wAttacker] = 0;
  287. worstscoreat[i] = 0;
  288. worstmemberat[i] = 999;
  289. bestscoreat[i] = 0;
  290. bestmemberat[i] = 999;
  291. worstscoredf[i] = 0;
  292. worstmemberdf[i] = 999;
  293. bestscoredf[i] = 0;
  294. bestmemberdf[i] = 999;
  295. }
  296. if(WarInfo[i][wTime] > 2)
  297. {
  298. foreach(Player,j)
  299. {
  300. if(IsPlayerInTurf(j, i))
  301. {
  302. if(IsPlayerInAnyVehicle(j))
  303. {
  304. if(PlayerInfo[j][pMember] == attackers || PlayerInfo[j][pMember] == defenders)
  305. {
  306. SendClientMessage(j, COLOR_WHITE, "Nu ai voie sa folosesti masini in war area.");
  307. SetVehicleToRespawn(GetPlayerVehicleID(j));
  308. SetVehicleVirtualWorld(GetPlayerVehicleID(j), 1024);
  309. }
  310. }
  311. }
  312. if(PlayerInfo[j][pMember] == attackers || PlayerInfo[j][pMember] == defenders)
  313. {
  314. if(WarInfo[i][wAttacker] == 4)
  315. {
  316. GangZoneFlashForPlayer(j,Turfs[i], 0xCC000099);
  317. }
  318. else if(WarInfo[i][wAttacker] == 5)
  319. {
  320. GangZoneFlashForPlayer(j,Turfs[i], 0x66857399);
  321. }
  322. else if(WarInfo[i][wAttacker] == 6)
  323. {
  324. GangZoneFlashForPlayer(j,Turfs[i], 0x2F2F2F99);
  325. }
  326. else if(WarInfo[i][wAttacker] == 10)
  327. {
  328. GangZoneFlashForPlayer(j,Turfs[i], 0x88572499);
  329. }
  330. else if(WarInfo[i][wAttacker] == 21)
  331. {
  332. GangZoneFlashForPlayer(j,Turfs[i], 0x6A4444AA);
  333. }
  334. else if(WarInfo[i][wAttacker] == 22)
  335. {
  336. GangZoneFlashForPlayer(j,Turfs[i], 0x2F2F2FAA);
  337. }
  338. else if(WarInfo[i][wAttacker] == 23)
  339. {
  340. GangZoneFlashForPlayer(j,Turfs[i], 0x660000AA);
  341. }
  342. else if(WarInfo[i][wAttacker] == 24)
  343. {
  344. GangZoneFlashForPlayer(j,Turfs[i], 0x24FF0AB9);
  345. }
  346. }
  347. if(IsPlayerInTurf(j, i))
  348. {
  349. if(PlayerInfo[j][pMember] == attackers)
  350. {
  351. count++;
  352. }
  353. }
  354. }
  355. if(count < 1)
  356. {
  357. if(waitwar[attackers] > 0)
  358. {
  359. waitwar[attackers]--;
  360. }
  361. if(waitwar[attackers] == 0)
  362. {
  363. waitwar[attackers] = 0;
  364. new atscore = 0,
  365. defscore = 0,
  366. winner;
  367. atscore = WarScoreF[attackers][i];
  368. defscore = WarScoreF[defenders][i];
  369. foreach(Player,j)
  370. {
  371. if(PlayerInfo[j][pMember] == attackers)
  372. {
  373. GangZoneStopFlashForPlayer(j,Turfs[i]);
  374. }
  375. if(PlayerInfo[j][pMember] == defenders)
  376. {
  377. GangZoneStopFlashForPlayer(j,Turfs[i]);
  378. }
  379. }
  380. if(atscore > defscore)
  381. {
  382. winner = 1;
  383. }
  384. else
  385. {
  386. winner = 2;
  387. }
  388. if(atscore == defscore)
  389. {
  390. winner = 2;
  391. }
  392. format(var100, sizeof(var100),"INSERT INTO `wars` (`Attacker`,`Defender`,`Atscore`,`Defscore`,`Result`) VALUES ('%d','%d','%d','%d','3')",attackers,defenders,atscore,defscore);
  393. mysql_query(SQL,var100);
  394. warid = mysql_insert_id();
  395. format(stringg,sizeof(stringg),"[WAR] %s failed to win turf %d owned by %s because they left the turf.",NumeFactiune(WarInfo[i][wAttacker]),i,NumeFactiune(WarInfo[i][wFaction]));
  396. SendFamilyMessage(attackers, COLOR_GREEN, stringg);
  397. SendFamilyMessage(defenders, COLOR_GREEN, stringg);
  398. format(stringg,sizeof(stringg),"------------ [ war overview #%d ] ------------", warid);
  399. SendFamilyMessage(attackers, COLOR_GREEN, stringg);
  400. SendFamilyMessage(defenders, COLOR_GREEN, stringg);
  401. if(winner == 1)
  402. {
  403. format(stringg,sizeof(stringg),"Score: %s %d - %d %s.",NumeFactiune(WarInfo[i][wAttacker]),atscore,defscore,NumeFactiune(WarInfo[i][wFaction]));
  404. SendFamilyMessage(attackers, COLOR_GREEN, stringg);
  405. SendFamilyMessage(defenders, COLOR_GREEN, stringg);
  406. }
  407. if(winner == 2)
  408. {
  409. format(stringg,sizeof(stringg),"Score: %s %d - %d %s.",NumeFactiune(WarInfo[i][wFaction]),defscore,atscore,NumeFactiune(WarInfo[i][wAttacker]));
  410. SendFamilyMessage(attackers, COLOR_GREEN, stringg);
  411. SendFamilyMessage(defenders, COLOR_GREEN, stringg);
  412. }
  413. new id = CalculateBestScore(i),
  414. id2 = CalculateWorstScore(i),
  415. bestnamee[30],
  416. worstnamee[30];
  417. GetPlayerName(id, bestnamee, sizeof(bestnamee));
  418. GetPlayerName(id2, worstnamee, sizeof(worstnamee));
  419. format(stringg,sizeof(stringg),"Best score: %s with a score of %d (%d kills, %d deaths). Worst score: %s with a score of %d (%d kills, %d deaths).", bestnamee, ucideri[id][i]-decese[id][i], ucideri[id][i], decese[id][i], worstnamee, ucideri[id2][i]-decese[id2][i], ucideri[id2][i], decese[id2][i]);
  420. SendFamilyMessage(attackers, COLOR_GREEN, stringg);
  421. SendFamilyMessage(defenders, COLOR_GREEN, stringg);
  422. foreach(Player, j)
  423. {
  424. if((PlayerInfo[j][pMember] == attackers) || (PlayerInfo[j][pMember] == defenders))
  425. {
  426. format(stringg,sizeof(stringg),"Your personal score: %d (%d kills, %d deaths).",ucideri[j][i]-decese[j][i],ucideri[j][i], decese[j][i]);
  427. SendClientMessage(j, COLOR_GREEN,stringg);
  428. PlayerTextDrawHide(j, TimeLeftWar1[j]);
  429. for (new sss = 0; sss != 5; ++sss) SendDeathMessageToPlayer(j, 1001, 1001, 1001);
  430. }
  431. }
  432. SendFamilyMessage(attackers, COLOR_GREEN,"------------------------------------");
  433. SendFamilyMessage(defenders, COLOR_GREEN,"------------------------------------");
  434. WarScoreF[defenders][i] = 0;
  435. WarScoreF[attackers][i] = 0;
  436. InWar[attackers] = 0;
  437. InWar[defenders] = 0;
  438. foreach(Player, j)
  439. {
  440. if((PlayerInfo[j][pMember] == attackers) || (PlayerInfo[j][pMember] == defenders))
  441. {
  442. SendClientMessage(j, COLOR_YELLOW, "Ai fost transferat in Virtual World-ul normal (0).");
  443. if(GetPlayerInterior(j) < 1)
  444. {
  445. SetPlayerVirtualWorld(j, 0);
  446. }
  447. if(attackers == 4 || defenders == 4)
  448. {
  449. for(new veh; veh < sizeof(Aztecasc); veh++)
  450. {
  451. SetVehicleVirtualWorld(Aztecasc[veh], 0);
  452. }
  453. }
  454. if(attackers == 5 || defenders == 5)
  455. {
  456. for(new veh; veh < sizeof(Grovec); veh++)
  457. {
  458. SetVehicleVirtualWorld(Grovec[veh], 0);
  459. }
  460. }
  461. if(attackers == 6 || defenders == 6)
  462. {
  463. for(new veh; veh < sizeof(Vagosc); veh++)
  464. {
  465. SetVehicleVirtualWorld(Vagosc[veh], 0);
  466. }
  467. }
  468. if(attackers == 10 || defenders == 10)
  469. {
  470. for(new veh; veh < sizeof(Ballasc); veh++)
  471. {
  472. SetVehicleVirtualWorld(Ballasc[veh], 0);
  473. }
  474. }
  475. if(attackers == 21 || defenders == 21)
  476. {
  477. for(new veh; veh < sizeof(Rifac); veh++)
  478. {
  479. SetVehicleVirtualWorld(Rifac[veh], 0);
  480. }
  481. }
  482. if(attackers == 22 || defenders == 22)
  483. {
  484. for(new veh; veh < sizeof(Russc); veh++)
  485. {
  486. SetVehicleVirtualWorld(Russc[veh], 0);
  487. }
  488. }
  489. if(attackers == 23 || defenders == 23)
  490. {
  491. for(new veh; veh < sizeof(dragc); veh++)
  492. {
  493. SetVehicleVirtualWorld(dragc[veh], 0);
  494. }
  495. }
  496. if(attackers == 24 || defenders == 24)
  497. {
  498. for(new veh; veh < sizeof(Italianc); veh++)
  499. {
  500. SetVehicleVirtualWorld(Italianc[veh], 0);
  501. }
  502. }
  503. if(attackers == 25 || defenders == 25)
  504. {
  505. for(new veh; veh < sizeof(sfbikec); veh++)
  506. {
  507. SetVehicleVirtualWorld(sfbikec[veh], 0);
  508. }
  509. }
  510. mysql_format(SQL, var100, sizeof(var100),"INSERT INTO `warlogs` (`PlayerID`,`WarID`,`Kills`,`Deaths`,`Faction`) VALUES ('%d','%d','%d','%d','%d')",PlayerInfo[j][pSQLID],warid,ucideri[j][i],decese[j][i],PlayerInfo[j][pMember]);
  511. mysql_tquery(SQL,var100,"","");
  512. ucideri[j][i] = 0;
  513. decese[j][i] = 0;
  514. }
  515. }
  516. DeelayWar[WarInfo[i][wFaction]] = 600;
  517. DeelayWar[WarInfo[i][wAttacker]] = 1800;
  518. WarInfo[i][wTime] = 0;
  519. WarInfo[i][wFaction] = 0;
  520. WarInfo[i][wAttacker] = 0;
  521. worstscoreat[i] = 0;
  522. worstmemberat[i] = 999;
  523. bestscoreat[i] = 0;
  524. bestmemberat[i] = 999;
  525. worstscoredf[i] = 0;
  526. worstmemberdf[i] = 999;
  527. bestscoredf[i] = 0;
  528. bestmemberdf[i] = 999;
  529. }
  530. }
  531. else
  532. {
  533. waitwar[attackers] = 60;
  534. }
  535. }
  536. }
  537. }
  538. foreach(Player,i)
  539. {
  540. if(IsPlayerConnected(i))
  541. {
  542. if(gPlayerLogged[i] == 1)
  543. {
  544. for(new sf = 0; sf < MAX_SAFEZONES; sf++)
  545. {
  546. if(SafeZone[sf][szRange] >= 15)
  547. {
  548. if(PlayerToPoint(SafeZone[sf][szRange], i, SafeZone[sf][szX], SafeZone[sf][szY], SafeZone[sf][szZ]))
  549. {
  550. if(Showed[i] == 0)
  551. {
  552. Showed[i] = 1;
  553. SFID[i] = sf;
  554. TextDrawShowForPlayer(i, SafeTD[0]);
  555. }
  556. }
  557. else if(!PlayerToPoint(SafeZone[SFID[i]][szRange], i, SafeZone[SFID[i]][szX], SafeZone[SFID[i]][szY], SafeZone[SFID[i]][szZ]))
  558. {
  559. if(Showed[i] == 1)
  560. {
  561. Showed[i] = 0;
  562. SFID[i] = 0;
  563. TextDrawHideForPlayer(i, SafeTD[0]);
  564. }
  565. }
  566. }
  567. }
  568. }
  569. if(SafeTime[i] > 0)
  570. {
  571. SafeTime[i]--;
  572. }
  573. if(SafeTime[i] == 1)
  574. {
  575. if(gPlayerAccount[i] == 1 && gPlayerLogged[i] == 0)
  576. {
  577. ShowPlayerDialog(i,DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD,"SERVER: Login","Welcome to the ExpertGame RPG Server.\n\nPlease enter your password below!","Login","Cancel");
  578. }
  579. }
  580. new newcar = GetPlayerVehicleID(i),
  581. level = PlayerInfo[i][pLevel];
  582. if(level >= 0 && level <= 2) { PlayerInfo[i][pPayCheck] += 2; }
  583. else if(level >= 3 && level <= 4) { PlayerInfo[i][pPayCheck] += 3; }
  584. else if(level >= 5 && level <= 6) { PlayerInfo[i][pPayCheck] += 4; }
  585. else if(level >= 7 && level <= 8) { PlayerInfo[i][pPayCheck] += 5; }
  586. else if(level >= 9 && level <= 10) { PlayerInfo[i][pPayCheck] += 6; }
  587. else if(level >= 11 && level <= 12) { PlayerInfo[i][pPayCheck] += 7; }
  588. else if(level >= 13 && level <= 14) { PlayerInfo[i][pPayCheck] += 8; }
  589. else if(level >= 15 && level <= 16) { PlayerInfo[i][pPayCheck] += 9; }
  590. else if(level >= 17 && level <= 18) { PlayerInfo[i][pPayCheck] += 10; }
  591. else if(level >= 19 && level <= 20) { PlayerInfo[i][pPayCheck] += 11; }
  592. else if(level >= 21) { PlayerInfo[i][pPayCheck] += 12; }
  593. if(PlayerInfo[i][pJailed] > 0)
  594. {
  595. if(PlayerInfo[i][pJailTime] > 0)
  596. {
  597. if(gPlayerLogged[i] == 1)
  598. {
  599. PlayerInfo[i][pJailTime]--;
  600. PlayerTextDrawShow(i, Jailtime[i]);
  601. new string3[60];
  602. format(string3,sizeof(string3),"ELIBERAT IN: ~r~%d MINUTE", PlayerInfo[i][pJailTime]/60+1);
  603. PlayerTextDrawSetString(i, Jailtime[i], string3);
  604. }
  605. }
  606. if(PlayerInfo[i][pJailTime] <= 0)
  607. {
  608. PlayerInfo[i][pJailTime] = 0;
  609. if(PlayerInfo[i][pJailed] == 1)
  610. {
  611. SetPlayerInterior(i, 6);
  612. SetPlayerPosEx(i, 258.3347,82.5203,1002.4453);
  613. }
  614. if(PlayerInfo[i][pJailed] == 2)
  615. {
  616. SetPlayerInterior(i, 6);
  617. SetPlayerVirtualWorld(i, 0);
  618. SetPlayerPosEx(i, 258.3347,82.5203,1002.4453);
  619. }
  620. PlayerInfo[i][pJailed] = 0;
  621. SendClientMessage(i, COLOR_WHITE, "Your time is up! You have been relased from jail/prison.");
  622. SetPlayerSpecialAction(i,SPECIAL_ACTION_NONE);
  623. RemovePlayerAttachedObject(i,1);
  624. PlayerTextDrawHide(i, Jailtime[i]);
  625. SetPlayerSkin(i, PlayerInfo[i][pModel]);
  626. ClearCrime(i);
  627. SetPlayerToTeamColor(i);
  628. TogglePlayerControllable(i, 1);
  629. }
  630. }
  631. if(RobTime[i] >= 0)
  632. {
  633. RobTime[i]++;
  634. }
  635. if(QuestWait[i] > 0)
  636. {
  637. QuestWait[i]--;
  638. }
  639. if(PlayerInfo[i][pNextNotification] > 0)
  640. {
  641. PlayerInfo[i][pNextNotification]--;
  642. }
  643. if(instatime[i] > 0)
  644. {
  645. instatime[i]--;
  646. if(instatime[i] == 0)
  647. {
  648. SendClientMessage(i, COLOR_GREY, "Job reload time ended.");
  649. instatime[i] = 0;
  650. }
  651. }
  652. if(pizzatime[i] > 0)
  653. {
  654. pizzatime[i]--;
  655. if(pizzatime[i] == 0)
  656. {
  657. SendClientMessage(i, COLOR_GREY, "Job reload time ended.");
  658. pizzatime[i] = 0;
  659. }
  660. }
  661. if(fixtime[i] > 0)
  662. {
  663. fixtime[i]--;
  664. if(fixtime[i] == 0)
  665. {
  666. SendClientMessage(i, COLOR_GREY, "Your time when you can't use /fix has elapsed.");
  667. fixtime[i] = 0;
  668. }
  669. }
  670. if(fliptime[i] > 0)
  671. {
  672. fliptime[i]--;
  673. if(fliptime[i] == 0)
  674. {
  675. SendClientMessage(i, COLOR_GREY, "Your time when you can't use /fix has elapsed.");
  676. fliptime[i] = 0;
  677. }
  678. }
  679. if(failpizza[i] > 0)
  680. {
  681. failpizza[i]--;
  682. if(failpizza[i] == 0)
  683. {
  684. DisablePlayerRaceCheckpoint(i);
  685. pizzaj[i] = 0;
  686. pizzatime[i] = 0;
  687. failpizza[i] = -1;
  688. PizzaCP[i] = 0;
  689. pizzaprize[i] = 0;
  690. }
  691. }
  692. if(timerrent[i] > 0)
  693. {
  694. timerrent[i]--;
  695. if(timerrent[i] == 0)
  696. {
  697. new engine,lights,alarm,doors,bonnet,boot,objective;
  698. gCarLock[HireCar[i]] = 0;
  699. GetVehicleParamsEx(HireCar[i],engine,lights,alarm,doors,bonnet,boot,objective);
  700. SetVehicleParamsEx(HireCar[i],engine,lights,alarm,0,bonnet,boot,objective);
  701. vehEngine[HireCar[i]] = 0;
  702. GetVehicleParamsEx(HireCar[i],engine,lights,alarm,doors,bonnet,boot,objective);
  703. SetVehicleParamsEx(HireCar[i],VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
  704. HireCar[i] = -1;
  705. GameTextForPlayer(i, "~w~You no longer rent a car.", 5000, 3);
  706. SetVehicleToRespawn(HireCar[i]);
  707. timerrent[i] = 0;
  708. }
  709. }
  710. if(PlayerInfo[i][pSleeping] == 1)
  711. {
  712. SetPlayerHealthEx(i, 100);
  713. }
  714. if(JackAcc[i] > 0)
  715. {
  716. JackAcc[i]--;
  717. if(JackAcc[i] == 0) SCM(i,COLOR_WHITE,"You can now drop vehicles again at the crane.");
  718. }
  719. if(PlayerInfo[i][pAdmin] >= 1)
  720. {
  721. new reports=0,cheaters=0,strr[128];
  722. foreach(Player,id)
  723. {
  724. if(strcmp(reporttext[id], "NULL", true))
  725. {
  726. reports++;
  727. }
  728. if(reportcheater[id] != -1)
  729. {
  730. cheaters++;
  731. }
  732. }
  733. if(reports > 0)
  734. {
  735. PlayerTextDrawShow(i, Reportss[i]);
  736. format(strr,sizeof(strr),"REPORTS: ~r~%d~w~ / CHEATERS: ~r~%d",reports,cheaters);
  737. PlayerTextDrawSetString(i, Reportss[i], strr);
  738. }
  739. else if(reports == 0)
  740. {
  741. PlayerTextDrawHide(i, Reportss[i]);
  742. }
  743. }
  744. else
  745. {
  746. PlayerTextDrawHide(i, Reportss[i]);
  747. }
  748. if(GetPlayerState(i) == PLAYER_STATE_DRIVER && Speedlimit[i])
  749. {
  750. new a, b, c;
  751. GetPlayerKeys(i, a, b ,c);
  752. if(a == 8 && GetVehicleSpeed(GetPlayerVehicleID(i), 0) > Speedlimit[i])
  753. {
  754. new newspeed = GetVehicleSpeed(GetPlayerVehicleID(i), 0) - Speedlimit[i];
  755. ModifyVehicleSpeed(GetPlayerVehicleID(i), -newspeed);
  756. }
  757. }
  758. if(CellTime[i] > 0)
  759. {
  760. CellTime[i] = CellTime[i] +1;
  761. if(PlayerInfo[i][pCredits] > 0)
  762. {
  763. CallCost[i] = CallCost[i] +1;
  764. }
  765. else
  766. {
  767. new caller = Mobile[i];
  768. CellTime[i] = 0;
  769. CellTime[caller] = 0;
  770. CellTime[i] = 0;
  771. SendClientMessage(i,COLOR_WHITE,"{B8FFDB}You hung up because you don't have enough credits.");
  772. Mobile[caller] = -1;
  773. }
  774. }
  775. if(CellTime[i] == 0 && CallCost[i] > 0)
  776. {
  777. format(string, sizeof(string), "~w~The call cost~n~~r~~h~%d credits",CallCost[i]);
  778. PlayerInfo[i][pCredits] = PlayerInfo[i][pCredits] - CallCost[i];
  779. GameTextForPlayer(i, string, 5000, 1);
  780. Update(i, pCreditsx);
  781. CallCost[i] = 0;
  782. }
  783. if(PlayerInfo[i][pNewbieTimeout] > 0)
  784. {
  785. PlayerInfo[i][pNewbieTimeout]--;
  786. if(PlayerInfo[i][pNewbieTimeout] == 0)
  787. {
  788. PlayerInfo[i][pNMessage2] = 0;
  789. PlayerInfo[i][pNMessage] = 0;
  790. PlayerInfo[i][pNMessage] = 1;
  791. PlayerInfo[i][pFirstAnswer] = 0;
  792. SendClientMessage(i, COLOR_WHITE, "You may now speak in the newbie chat channel again.");
  793. }
  794. }
  795.  
  796. if(PlayerInfo[i][pNMuted] > 0)
  797. {
  798. PlayerInfo[i][pNMuted]--;
  799. Update(i,pNMutedx);
  800. if(PlayerInfo[i][pNMuted] == 0) SendClientMessage(i, COLOR_WHITE, "You may now speak in the newbie chat channel again.");
  801. }
  802. if(TransportTime[i] > 0)
  803. {
  804. if(TransportTime[i] >= 16)
  805. {
  806. TransportTime[i] = 1;
  807. if(TransportDriver[i] < 999)
  808. {
  809. if(IsPlayerConnected(TransportDriver[i]))
  810. {
  811. TransportCost[i] += TransportValue[TransportDriver[i]];
  812. TransportCost[TransportDriver[i]] = TransportCost[i];
  813. }
  814. }
  815. }
  816. TransportTime[i] += 1;
  817. format(string, sizeof(string), "~r~~h~%d ~w~: ~g~$%d",TransportTime[i],TransportCost[i]);
  818. GameTextForPlayer(i, string, 15000, 6);
  819. }
  820. new idcar = GetPlayerVehicleID(i);
  821. if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsAPlane(idcar))
  822. {
  823. new speed = Carspeed(i),
  824. antispeed[300],
  825. sendername[25];
  826. GetPlayerName(i,sendername,sizeof(sendername));
  827. if(speed > 222)
  828. {
  829. format(antispeed, sizeof(antispeed), "(N) %s (%d, level %d) may be using speed hack, vehicle: %s, speed: %.0d.",sendername,i,PlayerInfo[i][pLevel],aVehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400],speed);
  830. ABroadCast(COLOR_RED,antispeed,1);
  831. }
  832. }
  833. if(PlayerInfo[i][pWantedLevel] > 0)
  834. {
  835. wantedlost[i]--;
  836. if(wantedlost[i] <= 0)
  837. {
  838. PlayerInfo[i][pWantedLevel] -= 1;
  839. DestroyDynamic3DTextLabel(WantedScris[i]);
  840. if(GetPlayerWantedLevel(i) > 0)
  841. {
  842. Tigaanel[i] = 1;
  843. new str2[256];
  844. format(str2,sizeof(str2),"{FF00FF}Wanted Level: %d",PlayerInfo[i][pWantedLevel]);
  845. UpdateDynamic3DTextLabelText(WantedScris[i], COLOR_WHITE, str2);
  846. }
  847. new name[25];
  848. GetPlayerName(i,name,sizeof(name));
  849. SCM(i,COLOR_LIGHTBLUE,"You lost one wanted points because you ran 30 minutes by police.");
  850. Update(i,pWantedLevelx);
  851. format(string,sizeof(string),"%s(%d) lost one wanted points because it ran 30 minutes by police.",name,i);
  852. SendTeamMessage(3, COLOR_DBLUE, string);
  853. SendTeamMessage(2, COLOR_DBLUE, string);
  854. SendTeamMessage(1, COLOR_DBLUE, string);
  855. SendTeamMessage(8, COLOR_DBLUE, string);
  856. SendTeamMessage(20, COLOR_DBLUE, string);
  857. wantedlost[i] = 600;
  858. if(PlayerInfo[i][pWantedLevel] <= 0)
  859. {
  860. ClearCrime(i);
  861. }
  862. }
  863. }
  864. if(PlayerInfo[i][pHitT] > 0)
  865. {
  866. PlayerInfo[i][pHitT] -= 1;
  867. }
  868. if(RepairTime[i] > 0)
  869. {
  870. RepairTime[i] = RepairTime[i] - 1;
  871. }
  872. if(PlayerInfo[i][pMuted] > 0)
  873. {
  874. if(PlayerInfo[i][pMuteTime] > 0)
  875. {
  876. PlayerInfo[i][pMuteTime]--;
  877. }
  878. if(PlayerInfo[i][pMuteTime] <= 0)
  879. {
  880. PlayerInfo[i][pMuteTime] = 0;
  881. SendClientMessage(i, COLOR_LIGHTRED, "* Your time of silence has ended.");
  882. PlayerInfo[i][pMuted] = 0;
  883. }
  884. }
  885. if(targetfind[i] >= 0 && UsedFind[i] == 1)
  886. {
  887. new target;
  888. target = targetfind[i];
  889. if(InBussines[target] > -1)
  890. {
  891. new j;
  892. j = InBussines[target];
  893. SetPlayerCheckpoint(i,BizzInfo[j][bEntranceX], BizzInfo[j][bEntranceY], BizzInfo[j][bEntranceZ],4);
  894. }
  895. else if(InHouse[target] > -1)
  896. {
  897. new j;
  898. j = InHouse[target];
  899. SetPlayerCheckpoint(i,HouseInfo[j][hEntrancex],HouseInfo[j][hEntrancey],HouseInfo[j][hEntrancez],4);
  900. }
  901. else if(InHQ[target] > -1)
  902. {
  903. SetPlayerCheckpoint(i,xhq[InHQ[target]],yhq[InHQ[target]],zhq[InHQ[target]],4);
  904. }
  905. else
  906. {
  907. new Float: x, Float: y, Float: z;
  908. GetPlayerPos(target,x,y,z);
  909. SetPlayerCheckpoint(i,x,y,z,4);
  910. }
  911. }
  912. if(IsABoat(newcar))
  913. {
  914. if(PlayerInfo[i][pBoatLic] < 1 && GetPlayerState(i) == 2 && TakingLesson[i] != 2)
  915. {
  916. RemovePlayerFromVehicleEx(i);
  917. }
  918. }
  919. else if(IsAPlane(newcar))
  920. {
  921. if(PlayerInfo[i][pFlyLic] < 1 && GetPlayerState(i) == 2)
  922. {
  923. if(TakingLesson[i] == 1 || TakingLesson[i] == 2) { }
  924. else { RemovePlayerFromVehicleEx(i); }
  925. }
  926. }
  927. else
  928. {
  929. if(PlayerInfo[i][pCarLic] < 1 && IsPlayerInAnyVehicle(i) && GetPlayerState(i) == 2)
  930. {
  931. if(TakingLesson[i] == 1) { }
  932. }
  933. }//Done with car check
  934. if(TutTime[i] >= 1)
  935. {
  936. TutTime[i] += 1;
  937. if(TutTime[i] == 3)
  938. {
  939. PlayerTextDrawShow(i, Step[i][1]);
  940. PlayerTextDrawShow(i, Tutorial[i]);
  941. mysql_query(SQL, "SELECT * FROM users");
  942. mysql_store_result();
  943. new registered = mysql_num_rows();
  944. mysql_free_result();
  945. SendClientMessage(i, COLOR_WHITE, "");
  946. SendClientMessage(i, COLOR_WHITE, "");
  947. SendClientMessage(i, COLOR_WHITE, "");
  948. SendClientMessage(i, COLOR_WHITE, "");
  949. SendClientMessage(i, COLOR_WHITE, "");
  950. SetPlayerVirtualWorld(i, 0);
  951. if(PlayerInfo[i][pLanguage] == 2)
  952. {
  953. new name[MAX_PLAYER_NAME];
  954. GetPlayerName(i, name, sizeof name);
  955. SetPlayerPosEx(i, 366.0407,-1892.6018,1.6999);
  956. SetPlayerCameraPos(i, 558.3660,-1964.6206,85.2497);
  957. SetPlayerCameraLookAt(i, 419.0543,-1888.1879,23.8108);
  958. TogglePlayerControllable(i,0);
  959. format(string, sizeof(string), "Salutare, %s! Bun venit pe RPG.EXPERTGAME.RO!", name);
  960. SendClientMessage(i, COLOR_WHITE, string);
  961. SendClientMessage(i, COLOR_WHITE, "Serverul RPG.EXPERTGAME.RO a fost deschis pe 23 Iunie 2016.");
  962. format(string, sizeof(string), "Avem %d playeri inregistrati, iar acum sunt %d playeri online.",registered,GetOnLinePlayers());
  963. SendClientMessage(i, COLOR_WHITE, string);
  964. SendClientMessage(i, COLOR_WHITE, "Sunt 100 case si 53 business-uri pe server, iar in dealership sunt disponibile 101 modele diferite de masini.");
  965. SendClientMessage(i, COLOR_WHITE, "Daca joci pe RPG.EXPERTGAME.RO, ai siguranta ca nu vor fi resetate niciodata datele(wipe) niciodata asa cum se intampla pe alte servere.");
  966. SendClientMessage(i, COLOR_WHITE, "Se fac updateuri frecvente la server, iar bugurile aparute sunt reparate rapid.");
  967. SendClientMessage(i, COLOR_WHITE, "Adminii si helperii sunt bine alesi si te pot ajuta cu orice problema.");
  968. SendClientMessage(i, COLOR_WHITE, "Intrebarile despre server le poti pune pe /n, iar daca ai o problema poti folosi /report.");
  969. SendClientMessage(i, COLOR_WHITE, "In continuare iti vom prezenta cateva informatii despre joc.");
  970. }
  971. else
  972. {
  973. new name[MAX_PLAYER_NAME];
  974. GetPlayerName(i, name, sizeof name);
  975. format(string, sizeof(string), "Hi, %s! Welcome to RPG.EXPERTGAME.RO!", name);
  976. SendClientMessage(i, COLOR_WHITE, string);
  977. SendClientMessage(i, COLOR_WHITE, "Our server, RPG.EXPERTGAME.RO, has opened on March 18th, 2016.");
  978. format(string, sizeof(string), "We have %d players registered and now there are %d players online.",registered,GetOnLinePlayers());
  979. SendClientMessage(i, COLOR_WHITE, string);
  980. SendClientMessage(i, COLOR_WHITE, "There are 100 houses and 53 businesses on our server and there are 101 different car models that you can buy from our dealership.");
  981. SendClientMessage(i, COLOR_WHITE, "If you play on RPG.EXPERTGAME.RO, you'll never have to worry about server wipes.");
  982. SendClientMessage(i, COLOR_WHITE, "Our server is frequently updated and the bugs are fixed quickly.");
  983. SendClientMessage(i, COLOR_WHITE, "The admins and helpers can help you with any problem you may have.");
  984. SendClientMessage(i, COLOR_WHITE, "If you have any questions, use /n. If you have any problems, use /report.");
  985. }
  986. }
  987. else if(TutTime[i] == 15)
  988. {
  989. PlayerTextDrawHide(i, Step[i][1]);
  990. PlayerTextDrawShow(i, Step[i][2]);
  991. SetPlayerPosEx(i, 1857.4175,-1847.2292,13.5815);
  992. SetPlayerCameraPos(i, 1794.2242,-1819.9382,38.3741);
  993. SetPlayerCameraLookAt(i, 1830.4750,-1840.9551,15.9818);
  994. SendClientMessage(i, COLOR_WHITE, "");
  995. SendClientMessage(i, COLOR_WHITE, "");
  996. SendClientMessage(i, COLOR_WHITE, "");
  997. SendClientMessage(i, COLOR_WHITE, "");
  998. SendClientMessage(i, COLOR_WHITE, "");
  999. SendClientMessage(i, COLOR_WHITE, "");
  1000. if(PlayerInfo[i][pLanguage] == 2)
  1001. {
  1002. SendClientMessage(i, COLOR_WHITE, "Acesta este un magazin 24/7, magazin de unde poti cumpara mai multe lucruri utile:");
  1003. SendClientMessage(i, COLOR_WHITE, "- telefon - dupa ce cumperi un telefon, vei putea suna un player sau ii poti da sms.");
  1004. SendClientMessage(i, COLOR_WHITE, "- agenda telefonica - vei putea afla numerele de telefon ale altor playeri folosind comanda /number.");
  1005. SendClientMessage(i, COLOR_WHITE, "- credit pentru telefon - pe serverul nostru telefoanele folosesc credit pentru apeluri si sms-uri.");
  1006. SendClientMessage(i, COLOR_WHITE, "- walkie-talkie - walkie-talkie poate fi folosit pentru a discuta cu un grup de prieteni.");
  1007. SendClientMessage(i, COLOR_WHITE, "Te lasam pe tine sa descoperi ce altceva poti cumpara din magazine.");
  1008. }
  1009. else
  1010. {
  1011. SendClientMessage(i, COLOR_WHITE, "This is a 24/7 store. You can buy the following products from here:");
  1012. SendClientMessage(i, COLOR_WHITE, "- phone - you can use the phone to make calls(/call) and send texts(/sms).");
  1013. SendClientMessage(i, COLOR_WHITE, "- phonebook - you'll be able to find the phone number another player using /number.");
  1014. SendClientMessage(i, COLOR_WHITE, "- prepay credit - on this server the phones use prepay credit. when it runs out, buy some more.");
  1015. SendClientMessage(i, COLOR_WHITE, "- walkie-talkie - this can be used to talk with a group of friends.");
  1016. SendClientMessage(i, COLOR_WHITE, "We'll let you discover what else can be bought from the stores.");
  1017. }
  1018. }
  1019. else if(TutTime[i] == 27)
  1020. {
  1021. PlayerTextDrawHide(i, Step[i][2]);
  1022. PlayerTextDrawShow(i, Step[i][3]);
  1023. SetPlayerPosEx(i, 1223.5475,-1881.3280,30.6971);
  1024. SetPlayerCameraPos(i, 1199.0161,-1862.7023,46.3864);
  1025. SetPlayerCameraLookAt(i, 1220.9999,-1838.0793,29.3740);
  1026. SendClientMessage(i, COLOR_WHITE, "");
  1027. SendClientMessage(i, COLOR_WHITE, "");
  1028. SendClientMessage(i, COLOR_WHITE, "");
  1029. SendClientMessage(i, COLOR_WHITE, "");
  1030. SendClientMessage(i, COLOR_WHITE, "");
  1031. SendClientMessage(i, COLOR_WHITE, "");
  1032. if(PlayerInfo[i][pLanguage] == 2)
  1033. {
  1034. SendClientMessage(i, COLOR_WHITE, "Aici poti da examen pentru a obtine permisul de conducere.");
  1035. SendClientMessage(i, COLOR_WHITE, "Nu stii cum sa ajungi aici? Nicio problema. Poti folosi comanda /gps si vei putea alege 'Los Santos DMV' din lista.");
  1036. SendClientMessage(i, COLOR_WHITE, "Comanda /gps poate fi folosita si pentru a afla unde sunt alte locatii importante de pe server.");
  1037. SendClientMessage(i, COLOR_WHITE, "Dupa ce vei lua examenul vei primi permisul de conducere, vei putea conduce masini, dar nu avioane sau barci.");
  1038. SendClientMessage(i, COLOR_WHITE, "Cand vei face level 3 vei putea cumpara si licenta pentru a putea conduce un avion, o barca sau pentru a cumpara arme.");
  1039. SendClientMessage(i, COLOR_WHITE, "Licentele vor expira dupa 100 ore de joc si va trebui sa dai examenele din nou pentru a le obtine.");
  1040. }
  1041. else
  1042. {
  1043. SendClientMessage(i, COLOR_WHITE, "Here is the place where you can get your driver's licence.");
  1044. SendClientMessage(i, COLOR_WHITE, "If you don't know to get here, you can use /gps and choose 'Los Santos DMV' from the list.");
  1045. SendClientMessage(i, COLOR_WHITE, "You can also use /gps to find out where other important locations are.Or you could call a cab using /service taxi.");
  1046. SendClientMessage(i, COLOR_WHITE, "Once you'll get your driver's license, you'll able to drive cars, but not planes or boats.");
  1047. SendClientMessage(i, COLOR_WHITE, "To be able to drive planes and boats, you'll need to contact an instructor once you reach level 3.");
  1048. SendClientMessage(i, COLOR_WHITE, "The licenses expires after 100 hours spent in game.");
  1049. }
  1050. }
  1051. else if(TutTime[i] == 39)
  1052. {
  1053. PlayerTextDrawHide(i, Step[i][3]);
  1054. PlayerTextDrawShow(i, Step[i][4]);
  1055. SetPlayerPosEx(i, 414.1995,-1512.3070,31.5960);
  1056. SetPlayerCameraPos(i, 428.3816,-1493.0682,69.4719);
  1057. SetPlayerCameraLookAt(i, 338.5612,-1515.7255,45.6690);
  1058. SendClientMessage(i, COLOR_WHITE, "");
  1059. SendClientMessage(i, COLOR_WHITE, "");
  1060. SendClientMessage(i, COLOR_WHITE, "");
  1061. SendClientMessage(i, COLOR_WHITE, "");
  1062. SendClientMessage(i, COLOR_WHITE, "");
  1063. SendClientMessage(i, COLOR_WHITE, "");
  1064. if(PlayerInfo[i][pLanguage] == 2)
  1065. {
  1066. SendClientMessage(i, COLOR_WHITE, "Aici este Dealership-ul, adica locul de unde poti cumpara masini.");
  1067. SendClientMessage(i, COLOR_WHITE, "Pentru a cumpara o masina personala ai nevoie de level 3 si de bani suficienti.");
  1068. SendClientMessage(i, COLOR_WHITE, "Cea mai ieftina masina este Bike $250,000, iar cea mai scumpa este Infernus si are pretul de $45,000,000.");
  1069. SendClientMessage(i, COLOR_WHITE, "Sunt disponibile 101 modele diferite de masini in dealership.");
  1070. SendClientMessage(i, COLOR_WHITE, "Dupa ce vei cumpara o masina personala vei putea incuia usile, o vei putea parca unde vrei si o vei putea localiza.");
  1071. SendClientMessage(i, COLOR_WHITE, "Vei putea deasemenea sa vinzi masina sau sa faci schimb de masini cu un alt player.");
  1072. SendClientMessage(i, COLOR_WHITE, "Poti detine maxim 2 masini personale sau 4 daca ai cont premium, iar toate masinile vor ramane spawnate.");
  1073. SendClientMessage(i, COLOR_WHITE, "Pana ajungi la level 3 poti munci la unul in joburile disponibile.");
  1074. }
  1075. else
  1076. {
  1077. SendClientMessage(i, COLOR_WHITE, "That is the dealership, the place where players can buy personal vehicles.");
  1078. SendClientMessage(i, COLOR_WHITE, "To buy your own vehicle you need level 3 and enough money.");
  1079. SendClientMessage(i, COLOR_WHITE, "The cheapest car is Bike with price of $250,000 and the most expensive is Infernus and it costs $45,000,000.");
  1080. SendClientMessage(i, COLOR_WHITE, "There are 101 different car models available in our vehicle dealership.");
  1081. SendClientMessage(i, COLOR_WHITE, "Once you'll get your own car, you'll able to lock the doors of your car and you'll be able to park it wherever you want.");
  1082. SendClientMessage(i, COLOR_WHITE, "You can have 2 personal vehicles or 4 if you have a premium account.");
  1083. SendClientMessage(i, COLOR_WHITE, "Untill you reach level 3, you can use one of the 10+ jobs available.");
  1084. }
  1085. }
  1086. else if(TutTime[i] == 51)
  1087. {
  1088. PlayerTextDrawHide(i, Step[i][4]);
  1089. PlayerTextDrawShow(i, Step[i][5]);
  1090. SetPlayerPosEx(i, -35.6509,-1152.9932,1.1770);
  1091. SetPlayerCameraPos(i, -74.3290,-1074.9336,18.7807);
  1092. SetPlayerCameraLookAt(i, -65.9360,-1128.8743,1.0781);
  1093. SendClientMessage(i, COLOR_WHITE, "");
  1094. SendClientMessage(i, COLOR_WHITE, "");
  1095. SendClientMessage(i, COLOR_WHITE, "");
  1096. SendClientMessage(i, COLOR_WHITE, "");
  1097. SendClientMessage(i, COLOR_WHITE, "");
  1098. SendClientMessage(i, COLOR_WHITE, "");
  1099. if(PlayerInfo[i][pLanguage] == 2)
  1100. {
  1101. SendClientMessage(i, COLOR_WHITE, "Trucker (sofer de tir) este unul din cele 10 job-uri disponibile pe serverul nostru.");
  1102. SendClientMessage(i, COLOR_WHITE, "La acest job trebuie sa livrezi marfa dintr-un oras in altul.");
  1103. SendClientMessage(i, COLOR_WHITE, "");
  1104. SendClientMessage(i, COLOR_WHITE, "Pentru a vedea o lista cu joburile de pe server, foloseste comanda /jobs.");
  1105. SendClientMessage(i, COLOR_WHITE, "La toate joburile se castiga la fel de multi bani, cu exceptia jobului de detectiv unde nu se castiga bani.");
  1106. SendClientMessage(i, COLOR_WHITE, "Poti testa toate joburile pentru a testa care iti place mai mult.");
  1107. SendClientMessage(i, COLOR_WHITE, "Daca te plictisesti de un job, vei putea folosi comanda /quitjob pentru a renunta la el oricand.");
  1108. }
  1109. else
  1110. {
  1111. SendClientMessage(i, COLOR_WHITE, "Trucker is one of the 10+ jobs available on our server.");
  1112. SendClientMessage(i, COLOR_WHITE, "This job requires you to deliver stuff from one city to another.");
  1113. SendClientMessage(i, COLOR_WHITE, "");
  1114. SendClientMessage(i, COLOR_WHITE, "To see list of all available jobs, you can use the command /jobs.");
  1115. SendClientMessage(i, COLOR_WHITE, "One most jobs you'll earn the same ammount of money.");
  1116. SendClientMessage(i, COLOR_WHITE, "You can test all jobs to find out which one you like better.");
  1117. SendClientMessage(i, COLOR_WHITE, "If you get bored, you can use /quitjob and take another job.");
  1118. }
  1119. }
  1120. else if(TutTime[i] == 63)
  1121. {
  1122. PlayerTextDrawHide(i, Step[i][5]);
  1123. PlayerTextDrawShow(i, Step[i][6]);
  1124. SetPlayerPosEx(i, 1504.0387,-1664.6865,14.0031);
  1125. SetPlayerCameraPos(i, 1506.8416,-1697.2029,38.8016);
  1126. SetPlayerCameraLookAt(i, 1533.4709,-1680.9561,29.7199);
  1127. SendClientMessage(i, COLOR_WHITE, "");
  1128. SendClientMessage(i, COLOR_WHITE, "");
  1129. SendClientMessage(i, COLOR_WHITE, "");
  1130. SendClientMessage(i, COLOR_WHITE, "");
  1131. SendClientMessage(i, COLOR_WHITE, "");
  1132. SendClientMessage(i, COLOR_WHITE, "");
  1133. if(PlayerInfo[i][pLanguage] == 2)
  1134. {
  1135. SendClientMessage(i, COLOR_WHITE, "Politistii sunt impartiti in 4 factiuni: Los Santos Police Department, Las Venturas Police Department, FBI si National Guard.");
  1136. SendClientMessage(i, COLOR_WHITE, "Vei putea aplica la una din cele 4 factiuni de politisti incepand cu level 7.");
  1137. SendClientMessage(i, COLOR_WHITE, "Pana ajungi la level 7, vei putea aplica la factiunile Taxi, Paramedic, News Reporters, School Instructors incepand cu level 5.");
  1138. SendClientMessage(i, COLOR_WHITE, "La factiunea Hitman Agency sau la una din cele 4 mafii, vei putea aplica incepand cu level 6.");
  1139. SendClientMessage(i, COLOR_WHITE, "Aplicatiile se fac pe forum (www.ExpertGame.ro).");
  1140. SendClientMessage(i, COLOR_WHITE, "Cei care fac parte din factiuni primesc salarii saptamanale de la liderul factiunii.");
  1141. }
  1142. else
  1143. {
  1144. SendClientMessage(i, COLOR_WHITE, "Cops are divided in 4 factions: Los Santos Police Department, Las Venturas Police Department, FBI and National Guard.");
  1145. SendClientMessage(i, COLOR_WHITE, "You'll be able to apply to on of the cops factions once you get level 7.");
  1146. SendClientMessage(i, COLOR_WHITE, "You can apply to the factions Taxi, Paramedic, News Reporters and School Instructors once you get level 5.");
  1147. SendClientMessage(i, COLOR_WHITE, "You'll need level 6 to become a Hitman or a gang member.");
  1148. SendClientMessage(i, COLOR_WHITE, "You can apply to join a faction on our forum (www.ExpertGame.ro).");
  1149. }
  1150. }
  1151. else if(TutTime[i] == 75)
  1152. {
  1153. PlayerTextDrawHide(i, Step[i][6]);
  1154. PlayerTextDrawShow(i, Step[i][7]);
  1155. SetPlayerPosEx(i, 1463.5978,-1050.0614,24.0156);
  1156. SetPlayerCameraPos(i, 1484.4119,-1049.7178,39.7065);
  1157. SetPlayerCameraLookAt(i, 1465.3987,-1025.0939,29.2015);
  1158. SendClientMessage(i, COLOR_WHITE, "");
  1159. SendClientMessage(i, COLOR_WHITE, "");
  1160. SendClientMessage(i, COLOR_WHITE, "");
  1161. SendClientMessage(i, COLOR_WHITE, "");
  1162. SendClientMessage(i, COLOR_WHITE, "");
  1163. SendClientMessage(i, COLOR_WHITE, "");
  1164. if(PlayerInfo[i][pLanguage] == 2)
  1165. {
  1166. SendClientMessage(i, COLOR_WHITE, "Aceasta este banca din orasul Los Santos. Mai exista o banca si in orasul Las Venturas.");
  1167. SendClientMessage(i, COLOR_WHITE, "Banca poate fi folosita pentru a depune si retrage bani sau pentru a transfera bani unui alt player.");
  1168. SendClientMessage(i, COLOR_WHITE, "Pentru banii depusi in banca vei primi dobanda odata pe ora.");
  1169. SendClientMessage(i, COLOR_WHITE, "Banii primiti din payday ajung in contul bancar si va trebui sa mergeti la banca pentru a-i retrage.");
  1170. SendClientMessage(i, COLOR_WHITE, "Te sfatuim sa nu imprumuti bani altor playeri deoarece nu au nicio garantie ca iti vor fi inapoiati.");
  1171. SendClientMessage(i, COLOR_WHITE, "De asemenea, afacerile cu bani reali sau bunuri ce nu tin de joc(conturi steam, conturi pe alte server) sunt interzise.");
  1172. SendClientMessage(i, COLOR_WHITE, "Daca cineva iti propune sa cumperi o masina in joc pentru bani reali, te sfatuim sa-l raportezi folosind comanda /report.");
  1173. SendClientMessage(i, COLOR_WHITE, "Playerii ce promit ca iti vor vinde bunuri in joc pentru bani reali nu iti vor da bunurile promise.");
  1174. }
  1175. else
  1176. {
  1177. SendClientMessage(i, COLOR_WHITE, "This is the Los Santos Bank. There is also a bank in Las Venturas.");
  1178. SendClientMessage(i, COLOR_WHITE, "The bank can be used to deposit and withdraw money from your bank account or transfer money to another player.");
  1179. SendClientMessage(i, COLOR_WHITE, "You'll get interest from the bank for the money you have deposited in your bank account.");
  1180. SendClientMessage(i, COLOR_WHITE, "Don't loan money for other players. You'll have no guaratees that you'll get them back.");
  1181. SendClientMessage(i, COLOR_WHITE, "Also, buying in game goods(money, cars, houses) with real life money from other players is forbidden.");
  1182. SendClientMessage(i, COLOR_WHITE, "Most People that offering in game goods for real money are scammers.");
  1183. SendClientMessage(i, COLOR_WHITE, "You can get some stuff by donating(ExpertGame.ro/premium). The money from donations are used to support the server.");
  1184. }
  1185. }
  1186. else if(TutTime[i] == 87)
  1187. {
  1188. PlayerTextDrawHide(i, Step[i][7]);
  1189. PlayerTextDrawShow(i, Step[i][8]);
  1190. SetPlayerPosEx(i, 1093.7021,-1485.0731,15.7074);
  1191. SetPlayerCameraPos(i, 1065.9988,-1418.0643,56.6048);
  1192. SetPlayerCameraLookAt(i, 1127.9037,-1486.0226,22.7690);
  1193. SendClientMessage(i, COLOR_WHITE, "");
  1194. SendClientMessage(i, COLOR_WHITE, "");
  1195. SendClientMessage(i, COLOR_WHITE, "");
  1196. SendClientMessage(i, COLOR_WHITE, "");
  1197. SendClientMessage(i, COLOR_WHITE, "");
  1198. SendClientMessage(i, COLOR_WHITE, "");
  1199. if(PlayerInfo[i][pLanguage] == 2)
  1200. {
  1201. SendClientMessage(i, COLOR_WHITE, "Aici este CNN Los Santos, adica locul unde poti plasa anunturi pe server.");
  1202. SendClientMessage(i, COLOR_WHITE, "Anunturile sunt vazute de toti playerii de pe server si sunt folosite pentru a vinde/cumpara/schimba bunuri pe server.");
  1203. SendClientMessage(i, COLOR_WHITE, "Anunturile se folosesc doar pentru vanzari, cumparari si schimburi de bunuri.");
  1204. SendClientMessage(i, COLOR_WHITE, "Vei putea scrie un anunt incepand cu level 5.");
  1205. SendClientMessage(i, COLOR_WHITE, "");
  1206. SendClientMessage(i, COLOR_WHITE, "Si pe forumul nostru www.ExpertGame.ro exista o sectiune de vanzari unde playerii pot posta anunturi.");
  1207. }
  1208. else
  1209. {
  1210. SendClientMessage(i, COLOR_WHITE, "This is CNN Los Santos, the place where players can place ads to buy, sell or trade stuff.");
  1211. SendClientMessage(i, COLOR_WHITE, "This ads are seen by all players on the server. You'll be able to place an /ad once you reach level 5.");
  1212. SendClientMessage(i, COLOR_WHITE, "Players can also use our forum (www.ExpertGame.ro) to advertise for stuff.");
  1213. }
  1214. }
  1215. else if(TutTime[i] == 99)
  1216. {
  1217. PlayerTextDrawHide(i, Step[i][8]);
  1218. PlayerTextDrawHide(i, Tutorial[i]);
  1219. SendClientMessage(i, COLOR_WHITE, "");
  1220. SendClientMessage(i, COLOR_WHITE, "");
  1221. SendClientMessage(i, COLOR_WHITE, "");
  1222. SendClientMessage(i, COLOR_WHITE, "");
  1223. SendClientMessage(i, COLOR_WHITE, "");
  1224. if(PlayerInfo[i][pLanguage] == 2)
  1225. {
  1226. SendClientMessage(i, COLOR_YELLOW, "Ai ajuns la sfarsitul tutorialului. Daca ai fost atent, ar trebui sa stii cateva lucruri despre joc.");
  1227. SendClientMessage(i, COLOR_YELLOW, "Daca ai vreo intrebare legata de joc, foloseste /n si helperii vor incerca sa te ajute.");
  1228. SendClientMessage(i, COLOR_YELLOW, "Poti folosi si /help pentru comenzi de baza.");
  1229. SendClientMessage(i, COLOR_YELLOW, "Distractie placuta!");
  1230. SendClientMessage(i, COLOR_YELLOW, "");
  1231. }
  1232. else
  1233. {
  1234. SendClientMessage(i, COLOR_YELLOW, "We reached the end of the tutorial. We hope you learned something about the game.");
  1235. SendClientMessage(i, COLOR_YELLOW, "If you have any game-questions, you can use /n and our helpers will try to help you.");
  1236. SendClientMessage(i, COLOR_YELLOW, "You cand also use /help for basic commands.");
  1237. SendClientMessage(i, COLOR_YELLOW, "Have fun!");
  1238. SendClientMessage(i, COLOR_YELLOW, "");
  1239. }
  1240. CP[i] = 43;
  1241. SetPlayerCheckpoint(i, 1219.0502,-1812.7823,16.5938, 4.0);
  1242. StopAudioStreamForPlayer(i);
  1243. }
  1244. else if(TutTime[i] == 101)
  1245. {
  1246. TutTime[i] = 0; PlayerInfo[i][pTut] = 1;
  1247. gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0;
  1248. TogglePlayerControllable(i, 1);
  1249. SetCameraBehindPlayer(i);
  1250. TogglePlayerSpectating(i, 0);
  1251. SetPlayerSpawn(i);
  1252. PlayerInfo[i][pPremiumPoints] = 20;
  1253. Update(i, pPremiumPointsx);
  1254. PlayerInfo[i][pAccount] = 10000;
  1255. ResetPlayerCash(i);
  1256. GivePlayerCash(i,10000000);
  1257. Update(i, pCashx);
  1258. PlayerInfo[i][pLevel] = 3;
  1259. Update(i, pLevelx);
  1260. SetPlayerInterior(i,0);
  1261. SetPlayerScore(i, PlayerInfo[i][pLevel]);
  1262. SetPlayerVirtualWorld(i,0);
  1263. TogglePlayerControllable(i,true);
  1264. new str1[256];
  1265. mysql_format(SQL,str1,256,"UPDATE users SET `Tutorial`='1',`Bank`='10000',`Money`='10000000' WHERE `name`='%s'",PlayerInfo[i][pNormalName]);
  1266. mysql_tquery(SQL,str1,"","");
  1267. }
  1268. }
  1269. if(PlayerTazeTime[i] >= 1)
  1270. {
  1271. PlayerTazeTime[i] += 1;
  1272. if(PlayerTazeTime[i] == 15)
  1273. {
  1274. PlayerTazeTime[i] = 0;
  1275. }
  1276. else
  1277. {
  1278. new Float:angle;
  1279. GetPlayerFacingAngle(i, angle);
  1280. SetPlayerFacingAngle(i, angle + 90);
  1281. }
  1282. }
  1283. if(PlayerDrunk[i] >= 5)
  1284. {
  1285. PlayerDrunkTime[i] += 1;
  1286. if(PlayerDrunkTime[i] == 8)
  1287. {
  1288. PlayerDrunkTime[i] = 0;
  1289. new Float:angle;
  1290. GetPlayerFacingAngle(i, angle);
  1291. if(IsPlayerInAnyVehicle(i))
  1292. {
  1293. if(GetPlayerState(i) == 2)
  1294. {
  1295. SetVehicleZAngle(GetPlayerVehicleID(i), angle + 15);
  1296. SetPlayerDrunkLevel (i, 5000);
  1297. }
  1298. }
  1299. else
  1300. {
  1301. LoopingAnim(i,"PED","WALK_DRUNK",4.0,1,1,1,1,0);
  1302. SetPlayerDrunkLevel (i, 5000);
  1303. }
  1304. }
  1305. }
  1306. if(GarbageEndTime[i] >= 1)//garbagejob
  1307. {
  1308. GarbageEndTime[i] += 1;
  1309. if(GarbageEndTime[i] == 5)
  1310. {
  1311. SendClientMessage(i, COLOR_WHITE, "{3385FF}Garbage Collected");
  1312. SendClientMessage(i, COLOR_LIGHTBLUE, "Return to the depot for your Pay Check.");
  1313. GarbageEndTime[i] = 0;
  1314. TogglePlayerControllable(i, 1);
  1315. }
  1316. }
  1317. if(GarbageTime[i] >= 1)//garbagejob
  1318. {
  1319. GarbageTime[i] += 1;
  1320. if(GarbageTime[i] == 5)
  1321. {
  1322. SendClientMessage(i, COLOR_WHITE, "{3385FF}Garbage Collected");
  1323. GarbageTime[i] = 0;
  1324. TogglePlayerControllable(i, 1);
  1325. }
  1326. }
  1327. if(BinTime[i] >= 1)//garbagejob
  1328. {
  1329. BinTime[i] += 1;
  1330. if(BinTime[i] == 5)
  1331. {
  1332. SendClientMessage(i, COLOR_WHITE, "{3385FF}The bin has been emptied");
  1333. BinTime[i] = 0;
  1334. TogglePlayerControllable(i, 1);
  1335. }
  1336. }
  1337. if(PlayerInfo[i][pGarbageTime] > 0)
  1338. {
  1339. if(PlayerInfo[i][pGarbageTime] == 1)
  1340. {
  1341. if(PlayerInfo[i][pJob] == 10)
  1342. {
  1343. SendClientMessage(i, COLOR_WHITE, "{999999}You can do another Garbage run now.");
  1344. PlayerInfo[i][pGarbageTime] -= 1;
  1345. }
  1346. else
  1347. {
  1348. PlayerInfo[i][pGarbageTime] -= 1;
  1349. }
  1350. }
  1351. else if(PlayerInfo[i][pGarbageTime] <= 0)
  1352. {
  1353. PlayerInfo[i][pGarbageTime] = 0;
  1354. }
  1355. else
  1356. {
  1357. PlayerInfo[i][pGarbageTime] -= 1;
  1358. }
  1359. }
  1360. if(PlayerStoned[i] >= 2)
  1361. {
  1362. new Float:angle;
  1363. GetPlayerFacingAngle(i, angle);
  1364. if(IsPlayerInAnyVehicle(i))
  1365. {
  1366. if(GetPlayerState(i) == 2)
  1367. {
  1368. SetVehicleZAngle(GetPlayerVehicleID(i), angle + 15);
  1369. SetPlayerDrunkLevel (i, 5000);
  1370. }
  1371. }
  1372. else
  1373. {
  1374. SetPlayerDrunkLevel (i, 5000);
  1375. }
  1376. }
  1377. if(TaxiCallTime[i] > 0)
  1378. {
  1379. if(TaxiAccepted[i] < 999)
  1380. {
  1381. if(IsPlayerConnected(TaxiAccepted[i]))
  1382. {
  1383. new Float:X,Float:Y,Float:Z;
  1384. GetPlayerPos(TaxiAccepted[i], X, Y, Z);
  1385. SetPlayerCheckpoint(i, X, Y, Z, 5);
  1386. }
  1387. }
  1388. }
  1389. if(MedicCallTime[i] > 0)
  1390. {
  1391. if(MedicCallTime[i] == 300)
  1392. {
  1393. MedicCallTime[i] = 0;
  1394. DisablePlayerCheckpoint(i);
  1395. GameTextForPlayer(i, "~r~~h~RedMarker gone", 2500, 1);
  1396. }
  1397. else
  1398. {
  1399. format(string, sizeof(string), "%d", 300 - MedicCallTime[i]);
  1400. GameTextForPlayer(i, string, 1500, 6);
  1401. MedicCallTime[i] += 1;
  1402. }
  1403. }
  1404. if(MechanicCallTime[i] > 0)
  1405. {
  1406. if(MechanicCallTime[i] == 300)
  1407. {
  1408. MechanicCallTime[i] = 0;
  1409. DisablePlayerCheckpoint(i);
  1410. GameTextForPlayer(i, "~r~~h~RedMarker gone", 2500, 1);
  1411. }
  1412. else
  1413. {
  1414. format(string, sizeof(string), "%d", 300 - MechanicCallTime[i]);
  1415. GameTextForPlayer(i, string, 1500, 6);
  1416. MechanicCallTime[i] += 1;
  1417. }
  1418. }
  1419. if(PlayerCuffed[i] == 1)
  1420. {
  1421. if(PlayerCuffedTime[i] <= 0)
  1422. {
  1423. TogglePlayerControllable(i, 1);
  1424. PlayerCuffed[i] = 0;
  1425. PlayerCuffedTime[i] = 0;
  1426. PlayerTazeTime[i] = 1;
  1427. }
  1428. else
  1429. {
  1430. PlayerCuffedTime[i] -= 1;
  1431. }
  1432. }
  1433. if(PlayerCuffed[i] == 2)
  1434. {
  1435. if(PlayerCuffedTime[i] <= 0)
  1436. {
  1437. GameTextForPlayer(i, "~r~~h~You broke the Cuffs, you are free!", 2500, 3);
  1438. TogglePlayerControllable(i, 1);
  1439. PlayerCuffed[i] = 0;
  1440. PlayerCuffedTime[i] = 0;
  1441. }
  1442. else
  1443. {
  1444. PlayerCuffedTime[i] -= 1;
  1445. }
  1446. }
  1447. if(Cash[i] != GetPlayerMoney(i))
  1448. {
  1449. new hack = GetPlayerMoney(i) - Cash[i];
  1450. if(hack != 0)
  1451. {
  1452. ResetPlayerMoney(i);
  1453. GivePlayerMoney(i, Cash[i]);
  1454. }
  1455. }
  1456. if(Undercover[i] == 1)
  1457. {
  1458. PlayerTextDrawShow(i, UndercoverText[i]);
  1459. }
  1460. else
  1461. {
  1462. PlayerTextDrawHide(i, UndercoverText[i]);
  1463. }
  1464. }
  1465. }
  1466. return 1;
  1467. }
Add Comment
Please, Sign In to add comment