Guest User

Untitled

a guest
Jan 18th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.00 KB | None | 0 0
  1. public SetPlayerUnjail()
  2. {
  3. new string[182];
  4.  
  5. new plname[MAX_PLAYER_NAME];
  6. for(new i = 1; i <= sizeof(TeritoriuData); i++)
  7. {
  8. // new string[256];
  9. new szMessage[256];
  10. new result[128];
  11. if(WarInfo[i][wTime] > 0)
  12. {
  13. foreach(Player, x)
  14. {
  15. if(PlayerInfo[x][pMember] == WarInfo[i][wAttacker] || PlayerInfo[x][pMember] == WarInfo[i][wFaction])
  16. {
  17. if(IsWar)
  18. {
  19. new szFaction[160];
  20. new szAtt[160];
  21. if(WarInfo[i][wFaction] == 11)
  22. {
  23. szFaction = "Grove Street";
  24. }
  25. else if(WarInfo[i][wFaction] == 12)
  26. {
  27. szFaction = "Ballas";
  28. }
  29. else if(WarInfo[i][wFaction] == 13)
  30. {
  31. szFaction = "Los Vagos";
  32. }
  33. else if(WarInfo[i][wFaction] == 14)
  34. {
  35. szFaction = "Los Aztecas";
  36. }
  37. else if(WarInfo[i][wFaction] == 15)
  38. {
  39. szFaction = "The Russian Mafia";
  40. }
  41. else if(WarInfo[i][wFaction] == 16)
  42. {
  43. szFaction = "The Rifa";
  44. }
  45.  
  46. if(WarInfo[i][wAttacker] == 11)
  47. {
  48. szAtt = "Grove Street";
  49. }
  50. else if(WarInfo[i][wAttacker] == 12)
  51. {
  52. szAtt = "Ballas";
  53. }
  54. else if(WarInfo[i][wAttacker] == 13)
  55. {
  56. szAtt = "Los Vagos";
  57. }
  58. else if(WarInfo[i][wAttacker] == 14)
  59. {
  60. szAtt = "Los Aztecas";
  61. }
  62. else if(WarInfo[i][wAttacker] == 15)
  63. {
  64. szAtt = "The Russian Mafia";
  65. }
  66. else if(WarInfo[i][wAttacker] == 16)
  67. {
  68. szAtt = "The Rifa";
  69. }
  70. TextDrawHideForPlayer(x,WarStats);
  71. TextDrawHideForPlayer(x,WarTime);
  72. TextDrawHideForPlayer(x,WarBox);
  73. TextDrawHideForPlayer(x,WarBox2);
  74. PlayerTextDrawHide(x,PlayerWarStats[x]);
  75. TextDrawHideForPlayer(x,WarBox3);
  76. TextDrawHideForPlayer(x,WarBox4);
  77.  
  78. new str1[128],str2[128],str3[128];
  79. new time = WarInfo[i][wTime];
  80. format(str2,128,"War time: %s min",CalculeazaTimp(time));
  81. TextDrawSetString(WarTime,str2);
  82.  
  83. format(str3,128,"Kills: %d~n~Deaths: %d",WarScore[x],WarDeaths[x]);
  84. PlayerTextDrawSetString(x,PlayerWarStats[x],str3);
  85. if(groupVariables[WarInfo[i][wAttacker]][gScore] > groupVariables[WarInfo[i][wFaction]][gScore])
  86. {
  87. format(str1,128,"~g~%s: %d~w~~n~%s: %d",szAtt,groupVariables[WarInfo[i][wAttacker]][gScore],szFaction,groupVariables[WarInfo[i][wFaction]][gScore]);
  88. TextDrawSetString(WarStats,str1);
  89. }
  90. else if(groupVariables[WarInfo[i][wAttacker]][gScore] < groupVariables[WarInfo[i][wFaction]][gScore])
  91. {
  92. format(str1,128,"~g~%s: %d~w~~n~%s: %d",szFaction,groupVariables[WarInfo[i][wFaction]][gScore],szAtt,groupVariables[WarInfo[i][wAttacker]][gScore]);
  93. TextDrawSetString(WarStats,str1);
  94. }
  95. else if(groupVariables[WarInfo[i][wAttacker]][gScore] == groupVariables[WarInfo[i][wFaction]][gScore])
  96. {
  97. format(str1,128,"%s: %d~n~%s: %d",szFaction,groupVariables[WarInfo[i][wFaction]][gScore],szAtt,groupVariables[WarInfo[i][wAttacker]][gScore]);
  98. TextDrawSetString(WarStats,str1);
  99. }
  100.  
  101.  
  102.  
  103.  
  104. //PlayerTextDrawShow(x,PlayerWarStats[x]);
  105. TextDrawShowForPlayer(x,WarStats);
  106. PlayerTextDrawShow(x,PlayerWarStats[x]);
  107. TextDrawShowForPlayer(x,WarTime);
  108. TextDrawShowForPlayer(x,WarBox);
  109. TextDrawShowForPlayer(x,WarBox2);
  110. TextDrawShowForPlayer(x,WarBox3);
  111. TextDrawShowForPlayer(x,WarBox4);
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121. /// printf("Faction: %d | Attacker: %d ",WarInfo[i][wFaction],WarInfo[i][wAttacker]);
  122. // printf(" %s vs %s ",szAtt,szFaction);
  123.  
  124. }
  125. ///GangZoneFlashForPlayer(x, turf[i], COLOR_RED);
  126.  
  127. }
  128. else
  129. {
  130. //TextDrawHideForPlayer(x, tTimer[x]);
  131. //GangZoneStopFlashForPlayer(x, turf[i]);
  132. }
  133. }
  134. WarInfo[i][wTime] -= 1;
  135. if(WarInfo[i][wTime] == 0)
  136. {
  137. new senderwar[MAX_PLAYER_NAME], senderwar1[MAX_PLAYER_NAME];
  138. GetPlayerName(WarMan1, senderwar, sizeof(senderwar));
  139. GetPlayerName(WarMan2, senderwar1, sizeof(senderwar1));
  140. if(!IsPlayerConnected(WarMan1) || WarMan1 == 999) strmid(senderwar, "-", 0, MAX_PLAYER_NAME, MAX_PLAYER_NAME);
  141. if(!IsPlayerConnected(WarMan2) || WarMan2 == 999) strmid(senderwar1, "-", 0, MAX_PLAYER_NAME, MAX_PLAYER_NAME);
  142.  
  143. if(groupVariables[WarInfo[i][wAttacker]][gScore] > groupVariables[WarInfo[i][wFaction]][gScore])
  144. {
  145. foreach(Player, x)
  146. {
  147. if(PlayerInfo[x][pMember] == WarInfo[i][wAttacker] || PlayerInfo[x][pMember] == WarInfo[i][wFaction])
  148. {
  149. if(!IsAMember(x))
  150. {
  151. return 1;
  152. }
  153. TextDrawHideForPlayer(x,WarStats);
  154. TextDrawHideForPlayer(x,WarTime);
  155. TextDrawHideForPlayer(x,WarBox);
  156. TextDrawHideForPlayer(x,WarBox2);
  157. TextDrawHideForPlayer(x,WarBox3);
  158. TextDrawHideForPlayer(x,WarBox4);
  159. PlayerTextDrawHide(x,PlayerWarStats[x]);
  160. format(szMessage, sizeof(szMessage), "Scorul tau! Kills: %d | Deaths: %d",WarScore[x],WarDeaths[x]);
  161. SCM(x, COLOR_TEAL, szMessage);
  162. ClearDeahMessages(x);
  163. if(x == WarMan1)
  164. {
  165. PlayerInfo[WarMan1][pMats] += 100;
  166. PlayerInfo[WarMan1][pDrugs] +=10;
  167. GivePlayerCash(WarMan1,100000);
  168. SCM(WarMan1,COLOR_WHITE,""TAG""G" Ai primit 100.000$, 100 mats si 10 drugs pentru ca ai avut cel mai bun scor la war !");
  169. format(szMessage, sizeof(szMessage), "UPDATE players SET Materials='%d' WHERE id=%d", PlayerInfo[WarMan1][pMats], PlayerInfo[WarMan1][pSQLID]);
  170. mysql_query(szMessage);
  171. format(szMessage, sizeof(szMessage), "UPDATE players SET Drugs='%d' WHERE id=%d", PlayerInfo[WarMan1][pDrugs], PlayerInfo[WarMan1][pSQLID]);
  172. mysql_query(szMessage);
  173. }
  174. }
  175. }
  176. TeritoriuData[i][tOwned] = WarInfo[i][wAttacker];
  177. format(result, sizeof(result), "UPDATE teritorii SET Owned='%d' WHERE Id=%d", TeritoriuData[i][tOwned], i);
  178. mysql_query(result);
  179. new attackerul = WarInfo[i][wAttacker];
  180. new defender = WarInfo[i][wFaction];
  181. // new string[226];
  182. new szFaction[160];
  183. new szAtt[160];
  184. if(WarInfo[i][wFaction] == 11)
  185. {
  186. szFaction = "Grove Street";
  187. }
  188. else if(WarInfo[i][wFaction] == 12)
  189. {
  190. szFaction = "Ballas";
  191. }
  192. else if(WarInfo[i][wFaction] == 13)
  193. {
  194. szFaction = "Los Vagos";
  195. }
  196. else if(WarInfo[i][wFaction] == 14)
  197. {
  198. szFaction = "Los Aztecas";
  199. }
  200. else if(WarInfo[i][wFaction] == 15)
  201. {
  202. szFaction = "The Russian Mafia";
  203. }
  204. else if(WarInfo[i][wFaction] == 16)
  205. {
  206. szFaction = "The Rifa";
  207. }
  208.  
  209. if(WarInfo[i][wAttacker] == 11)
  210. {
  211. szAtt = "Grove Street";
  212. }
  213. else if(WarInfo[i][wAttacker] == 12)
  214. {
  215. szAtt = "Ballas";
  216. }
  217. else if(WarInfo[i][wAttacker] == 13)
  218. {
  219. szAtt = "Los Vagos";
  220. }
  221. else if(WarInfo[i][wAttacker] == 14)
  222. {
  223. szAtt = "Los Aztecas";
  224. }
  225. else if(WarInfo[i][wAttacker] == 15)
  226. {
  227. szAtt = "The Russian Mafia";
  228. }
  229. else if(WarInfo[i][wAttacker] == 16)
  230. {
  231. szAtt = "The Rifa";
  232. }
  233. SeifData[attackerul][sMats] += 0;
  234. SeifData[attackerul][sDrugs] += 0;
  235. SeifData[attackerul][sMoney] += 0;
  236. format(string, sizeof(string), "UPDATE seif SET Mats='%d' WHERE id=%d", SeifData[attackerul][sMats], attackerul);
  237. mysql_query(string);
  238. format(string, sizeof(string), "UPDATE seif SET Drugs='%d' WHERE id=%d", SeifData[attackerul][sDrugs], attackerul);
  239. mysql_query(string);
  240. format(string, sizeof(string), "UPDATE seif SET Money='%d' WHERE id=%d", SeifData[attackerul][sMoney], attackerul);
  241. mysql_query(string);
  242.  
  243. format(szMessage, sizeof(szMessage), "%s: %d points | %s: %d points.", szFaction, groupVariables[attackerul][gScore], szAtt, groupVariables[defender][gScore]);
  244. SendFamilyMessage(attackerul, COLOR_LIGHTGREEN, szMessage);
  245. SendFamilyMessage(defender, COLOR_LIGHTGREEN, szMessage);
  246. format(szMessage, sizeof(szMessage), "NR Bot: %s a castigat teritoriul %i, detinut de %s.", szAtt, i, szFaction);
  247. SendClientMessageToAll(COLOR_PURPLE, szMessage);
  248. format(szMessage, sizeof(szMessage), "NR Bot: Cel mai bun gangster: %s (%d kills) | Cel mai slab gangster: %s (%d deaths) !", senderwar,WarScore1,senderwar1,WarScore2 );
  249. SendClientMessageToAll(COLOR_PURPLE, szMessage);
  250.  
  251.  
  252.  
  253. WarInfo[i][wTime] = 0;
  254. WarInfo[i][wAttacker] = 0;
  255. WarInfo[i][wFaction] = 0;
  256. IsWar = 0;
  257. WarScore1 = 0;
  258. WarScore2 = 0;
  259. WarMan1 = 999;
  260. WarMan2 = 999;
  261.  
  262. groupVariables[WarInfo[i][wAttacker]][gScore] = 0;
  263. groupVariables[WarInfo[i][wFaction]][gScore] = 0;
  264. GangZoneStopFlashForAll(turf[i]);
  265. GangZoneShowForAll(turf[i], GetTeamZoneColor(TeritoriuData[i][tOwned]));
  266. }
  267. if(groupVariables[WarInfo[i][wAttacker]][gScore] < groupVariables[WarInfo[i][wFaction]][gScore])
  268. {
  269.  
  270. foreach(Player, x)
  271. {
  272. if(PlayerInfo[x][pMember] == WarInfo[i][wAttacker] || PlayerInfo[x][pMember] == WarInfo[i][wFaction])
  273. {
  274. if(!IsAMember(x))
  275. {
  276. return 1;
  277. }
  278. TextDrawHideForPlayer(x,WarStats);
  279. TextDrawHideForPlayer(x,WarTime);
  280. TextDrawHideForPlayer(x,WarBox);
  281. TextDrawHideForPlayer(x,WarBox2);
  282. TextDrawHideForPlayer(x,WarBox3);
  283. TextDrawHideForPlayer(x,WarBox4);
  284. PlayerTextDrawHide(x,PlayerWarStats[x]);
  285. ClearDeahMessages(x);
  286. format(szMessage, sizeof(szMessage), "Scorul tau! Kills: %d | Deaths: %d",WarScore[x],WarDeaths[x]);
  287. SCM(x, COLOR_TEAL, szMessage);
  288. format(szMessage, sizeof(szMessage), ""G"Cel mai bun gangster: %s (%d kills) | Cel mai slab gangster: %s (%d deaths) !", senderwar,WarScore1,senderwar1,WarScore2 );
  289. SCM(x, COLOR_LIGHTBLUE, szMessage);
  290. if(x == WarMan1)
  291. {
  292. PlayerInfo[WarMan1][pMats] += 0;
  293. PlayerInfo[WarMan1][pDrugs] +=0;
  294. GivePlayerCash(WarMan1,0);
  295. SCM(WarMan1,COLOR_WHITE,""TAG""G" Felicitari, ai avut cel mai bun scor la war !");
  296. format(szMessage, sizeof(szMessage), "UPDATE players SET Materials='%d' WHERE id=%d", PlayerInfo[WarMan1][pMats], PlayerInfo[WarMan1][pSQLID]);
  297. mysql_query(szMessage);
  298. format(szMessage, sizeof(szMessage), "UPDATE players SET Drugs='%d' WHERE id=%d", PlayerInfo[WarMan1][pDrugs], PlayerInfo[WarMan1][pSQLID]);
  299. mysql_query(szMessage);
  300. }
  301. }
  302. }
  303. new attackerul = WarInfo[i][wAttacker];
  304. new defender = WarInfo[i][wFaction];
  305. new szFaction[160];
  306. new szAtt[160];
  307. if(WarInfo[i][wFaction] == 11)
  308. {
  309. szFaction = "Grove Street";
  310. }
  311. else if(WarInfo[i][wFaction] == 12)
  312. {
  313. szFaction = "Ballas";
  314. }
  315. else if(WarInfo[i][wFaction] == 13)
  316. {
  317. szFaction = "Los Vagos";
  318. }
  319. else if(WarInfo[i][wFaction] == 14)
  320. {
  321. szFaction = "Los Aztecas";
  322. }
  323. else if(WarInfo[i][wFaction] == 15)
  324. {
  325. szFaction = "The Russian Mafia";
  326. }
  327. else if(WarInfo[i][wFaction] == 16)
  328. {
  329. szFaction = "The Rifa";
  330. }
  331.  
  332. if(WarInfo[i][wAttacker] == 11)
  333. {
  334. szAtt = "Grove Street";
  335. }
  336. else if(WarInfo[i][wAttacker] == 12)
  337. {
  338. szAtt = "Ballas";
  339. }
  340. else if(WarInfo[i][wAttacker] == 13)
  341. {
  342. szAtt = "Los Vagos";
  343. }
  344. else if(WarInfo[i][wAttacker] == 14)
  345. {
  346. szAtt = "Los Aztecas";
  347. }
  348. else if(WarInfo[i][wAttacker] == 15)
  349. {
  350. szAtt = "The Russian Mafia";
  351. }
  352. else if(WarInfo[i][wAttacker] == 16)
  353. {
  354. szAtt = "The Rifa";
  355. }
  356. format(szMessage, sizeof(szMessage), "%s : %d points | %s : %d points.", szFaction, groupVariables[attackerul][gScore], szAtt, groupVariables[defender][gScore]);
  357. SendFamilyMessage(attackerul, COLOR_LIGHTGREEN, szMessage);
  358. SendFamilyMessage(defender, COLOR_LIGHTGREEN, szMessage);
  359.  
  360. WarInfo[i][wTime] = 0;
  361. WarInfo[i][wAttacker] = 0;
  362. WarInfo[i][wFaction] = 0;
  363. IsWar = 0;
  364. WarScore1 = 0;
  365. WarScore2 = 0;
  366. WarMan1 = 999;
  367. WarMan2 = 999;
  368.  
  369. groupVariables[WarInfo[i][wAttacker]][gScore] = 0;
  370. groupVariables[WarInfo[i][wFaction]][gScore] = 0;
  371. GangZoneStopFlashForAll(turf[i]);
  372. GangZoneShowForAll(turf[i], GetTeamZoneColor(TeritoriuData[i][tOwned]));
  373. }
  374. if(groupVariables[WarInfo[i][wAttacker]][gScore] == groupVariables[WarInfo[i][wFaction]][gScore])
  375. {
  376.  
  377. new attackerul = WarInfo[i][wAttacker];
  378. new defender = WarInfo[i][wFaction];
  379. foreach(Player, x)
  380. {
  381. if(PlayerInfo[x][pMember] == WarInfo[i][wAttacker] || PlayerInfo[x][pMember] == WarInfo[i][wFaction])
  382. {
  383. if(!IsAMember(x))
  384. {
  385. return 1;
  386. }
  387. TextDrawHideForPlayer(x,WarStats);
  388. TextDrawHideForPlayer(x,WarTime);
  389. TextDrawHideForPlayer(x,WarBox);
  390. TextDrawHideForPlayer(x,WarBox2);
  391. TextDrawHideForPlayer(x,WarBox3);
  392. TextDrawHideForPlayer(x,WarBox4);
  393. PlayerTextDrawHide(x,PlayerWarStats[x]);
  394. ClearDeahMessages(x);
  395. format(szMessage, sizeof(szMessage), "Scorul tau! Kills: %d | Deaths: %d",WarScore[x],WarDeaths[x]);
  396. SCM(x, COLOR_TEAL, szMessage);
  397. format(szMessage, sizeof(szMessage), ""G"Cel mai bun gangster: %s (%d kills) | Cel mai slab gangster: %s (%d deaths) !", senderwar,WarScore1,senderwar1,WarScore2 );
  398. SCM(x, COLOR_LIGHTBLUE, szMessage);
  399. if(x == WarMan1)
  400. {
  401. PlayerInfo[WarMan1][pMats] += 1000;
  402. PlayerInfo[WarMan1][pDrugs] +=100;
  403. GivePlayerCash(WarMan1,90000);
  404. SCM(WarMan1,COLOR_WHITE,""TAG""G" Ai primit 90.000$,1000 mats si 100 drugs pentru ca ai avut cel mai bun scor la war !");
  405. format(szMessage, sizeof(szMessage), "UPDATE players SET Materials='%d' WHERE id=%d", PlayerInfo[WarMan1][pMats], PlayerInfo[WarMan1][pSQLID]);
  406. mysql_query(szMessage);
  407. format(szMessage, sizeof(szMessage), "UPDATE players SET Drugs='%d' WHERE id=%d", PlayerInfo[WarMan1][pDrugs], PlayerInfo[WarMan1][pSQLID]);
  408. mysql_query(szMessage);
  409. }
  410. }
  411. }
  412. new szFaction[160];
  413. new szAtt[160];
  414. if(WarInfo[i][wFaction] == 11)
  415. {
  416. szFaction = "Grove Street";
  417. }
  418. else if(WarInfo[i][wFaction] == 12)
  419. {
  420. szFaction = "Ballas";
  421. }
  422. else if(WarInfo[i][wFaction] == 13)
  423. {
  424. szFaction = "Los Vagos";
  425. }
  426. else if(WarInfo[i][wFaction] == 14)
  427. {
  428. szFaction = "Los Aztecas";
  429. }
  430. else if(WarInfo[i][wFaction] == 15)
  431. {
  432. szFaction = "The Russian Mafia";
  433. }
  434. else if(WarInfo[i][wFaction] == 16)
  435. {
  436. szFaction = "The Rifa";
  437. }
  438.  
  439. if(WarInfo[i][wAttacker] == 11)
  440. {
  441. szAtt = "Grove Street";
  442. }
  443. else if(WarInfo[i][wAttacker] == 12)
  444. {
  445. szAtt = "Ballas";
  446. }
  447. else if(WarInfo[i][wAttacker] == 13)
  448. {
  449. szAtt = "Los Vagos";
  450. }
  451. else if(WarInfo[i][wAttacker] == 14)
  452. {
  453. szAtt = "Los Aztecas";
  454. }
  455. else if(WarInfo[i][wAttacker] == 15)
  456. {
  457. szAtt = "The Russian Mafia";
  458. }
  459. else if(WarInfo[i][wAttacker] == 16)
  460. {
  461. szAtt = "The Rifa";
  462. }
  463. format(szMessage, sizeof(szMessage), "%s : %d points | %s : %d points.", szFaction, groupVariables[attackerul][gScore], szAtt, groupVariables[defender][gScore]);
  464. SendFamilyMessage(attackerul, COLOR_LIGHTGREEN, szMessage);
  465. SendFamilyMessage(defender, COLOR_LIGHTGREEN, szMessage);
  466.  
  467. WarInfo[i][wTime] = 0;
  468. WarInfo[i][wAttacker] = 0;
  469. WarInfo[i][wFaction] = 0;
  470. IsWar = 0;
  471. WarScore1 = 0;
  472. WarScore2 = 0;
  473. WarMan1 = 999;
  474. WarMan2 = 999;
  475.  
  476. groupVariables[WarInfo[i][wAttacker]][gScore] = 0;
  477. groupVariables[WarInfo[i][wFaction]][gScore] = 0;
  478. GangZoneStopFlashForAll(turf[i]);
  479. GangZoneShowForAll(turf[i], GetTeamZoneColor(TeritoriuData[i][tOwned]));
  480. }
  481. IsWar = 0;
  482. WarScore1 = 0;
  483. WarScore2 = 0;
  484. WarMan1 = 999;
  485. WarMan2 = 999;
  486.  
  487.  
  488. }
  489. }
  490.  
  491. }
  492. if(PaintballPlayers >= 2 && PaintballRound != 1 && StartingPaintballRound != 1)
  493. {
  494. StartingPaintballRound = 1;
  495. SetTimer("PreparePaintball", 15000, 0);
  496. }
  497. if(KartingPlayers >= 2 && KartingRound != 1 && StartingKartRound != 1)
  498. {
  499. StartingKartRound = 1;
  500. SetTimer("PrepareKarting", 15000, 0);
  501. }
  502. if(KartingRound != 0 && KartingPlayers < 2)
  503. {
  504. StartingKartRound = 0;
  505. KartingRound = 0;
  506. EndingKartRound = 1;
  507. }
  508. foreach(Player, i)
  509. {
  510.  
  511. new newcar = GetPlayerVehicleID(i);
  512. new query[MAX_STRING];
  513. new level = PlayerInfo[i][pLevel];
  514. if(IsPlayerConnected(i))
  515. {
  516. foreach(Player, v)
  517. {
  518. if(IsPlayerInAnyVehicle(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
  519. {
  520.  
  521. new Speed = GetPlayerSpeed(i, 0);
  522. if(GetPlayerVehicleID(i) == PlayerInfo[v][pPcarkey]) {
  523. PlayerInfo[v][vKM][1] += (Speed*0.16)/1000;
  524. }
  525. else if(GetPlayerVehicleID(i) == PlayerInfo[v][pPcarkey2]) {
  526. PlayerInfo[v][vKM][2] += (Speed*0.16)/1000;
  527. }
  528. else if(GetPlayerVehicleID(i) == PlayerInfo[v][pPcarkey3]) {
  529. PlayerInfo[v][vKM][3] += (Speed*0.16)/1000;
  530. }
  531. else if(GetPlayerVehicleID(i) == PlayerInfo[v][pPcarkey4]) {
  532. PlayerInfo[v][vKM][4] += (Speed*0.16)/1000;
  533. }
  534. }
  535. }
  536. }
  537. if(level >= 0 && level <= 2) { PlayerInfo[i][pPayCheck] += 1; }
  538. else if(level >= 3 && level <= 4) { PlayerInfo[i][pPayCheck] += 2; }
  539. else if(level >= 5 && level <= 6) { PlayerInfo[i][pPayCheck] += 3; }
  540. else if(level >= 7 && level <= 8) { PlayerInfo[i][pPayCheck] += 4; }
  541. else if(level >= 9 && level <= 10) { PlayerInfo[i][pPayCheck] += 5; }
  542. else if(level >= 11 && level <= 12) { PlayerInfo[i][pPayCheck] += 6; }
  543. else if(level >= 13 && level <= 14) { PlayerInfo[i][pPayCheck] += 7; }
  544. else if(level >= 15 && level <= 16) { PlayerInfo[i][pPayCheck] += 8; }
  545. else if(level >= 17 && level <= 18) { PlayerInfo[i][pPayCheck] += 9; }
  546. else if(level >= 19 && level <= 20) { PlayerInfo[i][pPayCheck] += 10; }
  547. else if(level >= 21) { PlayerInfo[i][pPayCheck] += 11; }
  548. if(PlayerInfo[i][pJailed] > 0)
  549. {
  550. if(PlayerInfo[i][pJailTime] > 0 && WantLawyer[i] == 0)
  551. {
  552. PlayerInfo[i][pJailTime]--;
  553. format(query, sizeof(query), "UPDATE players SET JailTime='%d' WHERE id=%d", PlayerInfo[i][pJailTime], PlayerInfo[i][pSQLID]);
  554. mysql_query(query);
  555. }
  556. if(PlayerInfo[i][pJailTime] <= 0 && WantLawyer[i] == 0)
  557. {
  558. PlayerInfo[i][pJailTime] = 0;
  559. if(PlayerInfo[i][pJailed] >= 1)
  560. {
  561. SetPlayerInterior(i, 5);
  562. SetPlayerPosEx(i,1474.0437,-1751.1372,3285.2859);
  563. InteriorFreeze(i);
  564. }
  565. PlayerInfo[i][pJailed] = 0;
  566. SendClientMessage(i, COLOR_GRAD1," Ati platit datoria dumneavoastra fata de societate.");
  567. format(string, sizeof(string), "~g~Freedom~n~~w~Incearca sa fi un civil mai bun");
  568. GameTextForPlayer(i, string, 5000, 1);
  569. if(gTeam[i] == 4) { gTeam[i] = 3; }
  570. ClearCrime(i);
  571. SetPlayerSkin(i, PlayerInfo[i][pChar]);
  572. SetPlayerToTeamColor(i);
  573. PlayerTextDrawHide(i,TDJ[i]);
  574. format(string, sizeof(string), "UPDATE players SET Jailed='%d' WHERE id=%d", PlayerInfo[i][pJailed], PlayerInfo[i][pSQLID]);
  575. mysql_query(string);
  576. }
  577. }
  578. if(GetPlayerCash(i) - CurrentMoney[i] >= 50000 && PlayerInfo[i][pAdmin] < 1)
  579. {
  580. if(ConsumingMoney[i])
  581. {
  582. CurrentMoney[i] = GetPlayerCash(i);
  583. ConsumingMoney[i] = 0;
  584. }
  585. else
  586. {
  587. CurrentMoney[i] = GetPlayerCash(i);
  588. }
  589. }
  590. else
  591. {
  592. CurrentMoney[i] = GetPlayerCash(i);
  593. }
  594. if(IsABoat(newcar))
  595. {
  596. if(PlayerInfo[i][pBoatLic] != 1 && GetPlayerState(i) == 2 && !IsPlayerNPC(i))
  597. {
  598. if(TakingLesson[i] == 1) { }
  599. else
  600. {
  601. RemovePlayerFromVehicle(i);
  602. if(PlayerInfo[i][pBoatLic] == 0)
  603. {
  604. SendClientMessage(i, COLOR_GRAD1,"Nu ai licenta de navigat.");
  605. }
  606. else
  607. {
  608. SendClientMessage(i, COLOR_GRAD1,"Licenta ta de navigat este suspendata.");
  609. }
  610. }
  611. }
  612. }
  613. else if(IsAPlane(newcar))
  614. {
  615. if(PlayerInfo[i][pFlyLic] != 1 && GetPlayerState(i) == 2 && !IsPlayerNPC(i))
  616. {
  617. if(TakingLesson[i] == 1) { }
  618. else
  619. {
  620. RemovePlayerFromVehicle(i);
  621. if(PlayerInfo[i][pFlyLic] == 0)
  622. {
  623. SendClientMessage(i, COLOR_GRAD1,"Nu ai licenta de pilotaj.");
  624. }
  625. else
  626. {
  627. SendClientMessage(i, COLOR_GRAD1,"Licenta ta de pilotaj este suspendata.");
  628. }
  629. }
  630. }
  631. }
  632. else
  633. {
  634. if(PlayerInfo[i][pCarLic] != 1 && IsPlayerInAnyVehicle(i) && GetPlayerState(i) == 2 && !IsPlayerNPC(i))
  635. {
  636. if(TakingLesson[i] == 1 || IsABmx(newcar) || newcar == civcar[0] || newcar == civcar[1] || newcar == civcar[2]||newcar==civcar[3]||newcar==civcar[4]||newcar==civcar[14]) { }
  637. else
  638. {
  639. RemovePlayerFromVehicle(i);
  640. SendClientMessage(i, COLOR_GRAD1,"Nu ai licenta de condus sau licenta ta este suspendata.");
  641. }
  642. }
  643. }//Done with car check
  644. if(UsedFind[i] >= 1)
  645. {
  646. UsedFind[i] += 1;
  647. if(UsedFind[i] >= 60)
  648. {
  649. UsedFind[i] = 0;
  650. }
  651. }
  652. if(MedicTime[i] > 0)
  653. {
  654. if(MedicTime[i] == 3)
  655. {
  656. SetPlayerInterior(i, 5);
  657. new Float:X, Float:Y, Float:Z;
  658. GetPlayerPos(i, X,Y,Z);
  659. SetPlayerCameraPos(i, X + 3, Y, Z);
  660. SetPlayerCameraLookAt(i,X,Y,Z);
  661. }
  662. MedicTime[i] ++;
  663. if(MedicTime[i] >= NeedMedicTime[i])
  664. {
  665. new cut = deathcost; //PlayerInfo[playerid][pLevel]*deathcost;
  666. GivePlayerCash(i, -cut);
  667. format(string, sizeof(string), "DOC: Factura dumneavostra de sanatate a costat $%d, Sa aveti o zi buna.", cut);
  668. SendClientMessage(i, TEAM_CYAN_COLOR, string);
  669. TogglePlayerControllable(i, 1);
  670. MedicBill[i] = 0;
  671. MedicTime[i] = 0;
  672. NeedMedicTime[i] = 0;
  673. PlayerInfo[i][pDeaths] += 1;
  674. format(string, sizeof(string), "UPDATE players SET Deaths='%d' WHERE id=%d", PlayerInfo[i][pDeaths], PlayerInfo[i][pSQLID]);
  675. mysql_query(string);
  676. PlayerFixRadio(i);
  677. // SetSpawnInfo(i, PlayerInfo[i][pTeam], PlayerInfo[i][pModel], 1641.2795,-2239.7483,13.4972, 182.3683, 0, 0, 0, 0, 0, 0);
  678. SpawnPlayer(i);
  679. }
  680. }
  681. if(WantLawyer[i] >= 1)
  682. {
  683. CallLawyer[i] = 111;
  684. if(WantLawyer[i] == 1)
  685. {
  686. SendClientMessage(i, COLOR_LIGHTRED, "Ai nevoie de un avocat? (Scrie yes sau no)");
  687. }
  688. WantLawyer[i] ++;
  689. if(WantLawyer[i] == 8)
  690. {
  691. SendClientMessage(i, COLOR_LIGHTRED, "Ai nevoie de un avocat? (Scrie yes sau no)");
  692. }
  693. if(WantLawyer[i] == 15)
  694. {
  695. SendClientMessage(i, COLOR_LIGHTRED, "Ai nevoie de un avocat? (Scrie yes sau no)");
  696. }
  697. if(WantLawyer[i] == 20)
  698. {
  699. SendClientMessage(i, COLOR_LIGHTRED, "Nu sunt avocati online, asa ca iti vei ispasi pedeapsa.");
  700. WantLawyer[i] = 0;
  701. CallLawyer[i] = 0;
  702. }
  703. }
  704. if(Disguise[i] == 1)
  705. {
  706. for(new a = 0; a < MAX_PLAYERS; a++)
  707. {
  708. ShowPlayerNameTagForPlayer(a, i, false);
  709. }
  710. }
  711. else if(Disguise[i] != 1)
  712. {
  713. for(new a = 0; a < MAX_PLAYERS; a++)
  714. {
  715. ShowPlayerNameTagForPlayer(a, i, true);
  716. }
  717. }
  718. if(TutTime[i] >= 1)
  719. {
  720. TutTime[i] += 1;
  721.  
  722. if(TutTime[i] == 4)// Prezentare Generala
  723. {
  724. TogglePlayerSpectating(i, 1);
  725. // TextDrawShowForPlayer(i, tstep[i]);
  726. ClearChatbox(i, 15);
  727. InterpolateCameraPos(i, 183.647567, -2166.824707, 147.742019, 554.600402, -2104.717041, 51.045173, 20000);
  728. InterpolateCameraLookAt(i, 187.147766, -2164.028564, 145.521575, 550.150512, -2102.569824, 50.278675, 20000);
  729. SendClientMessage(i, COLOR_WHITE, "{a9c4e4}Prezentare Generala ");
  730. SendClientMessage(i, COLOR_WHITE, "");
  731. SendClientMessage(i, COLOR_WHITE, "Salutare! Bun venit pe rpg.gLAND.ro!");
  732. SendClientMessage(i, COLOR_WHITE, "Serverul rpg.gLAND.ro este un server nou aparut si bine lucrat. ");
  733. SendClientMessage(i, COLOR_WHITE, "Sunt 231 case si 25 business-uri pe server, iar in dealership sunt disponibile 121 modele diferite de masini.");
  734. SendClientMessage(i, COLOR_WHITE, "Daca joci pe rpg.gLAND.ro, ai siguranta ca nu vor fi resetate datele (wipe) niciodata asa cum se intampla pe alte servere. ");
  735. SendClientMessage(i, COLOR_WHITE, "Se fac update-uri frecvent la server, iar bugurile aparute sunt reparate rapid. ");
  736. SendClientMessage(i, COLOR_WHITE, "Adminii si helperii sunt bine alesi si te pot ajuta cu orice problema. " );
  737. SendClientMessage(i, COLOR_WHITE, "Intrebarile despre server le poti pune pe /n, iar daca ai o problema poti folosi /report. ");
  738. SendClientMessage(i, COLOR_WHITE, "In continuare iti vom prezenta cateva informatii despre joc. ");
  739. SendClientMessage(i, COLOR_TEAL, "Poti folosit /skip daca nu vrei sa treci prin tutorial !");
  740.  
  741. TogglePlayerControllable(i, false);
  742.  
  743. // TextDrawSetString(tstep[i], " Tutorial ~y~(y~1/8)");
  744.  
  745. }
  746. else if(TutTime[i] == 30)
  747. {
  748. ClearChatbox(i, 15);
  749. InterpolateCameraPos(i, 1780.783081, -1830.763671, 40.788516, 1826.135375, -1841.924560, 15.576026, 20000);
  750. InterpolateCameraLookAt(i, 1785.048706, -1832.006103, 38.494880, 1831.006347, -1842.374023, 14.540605, 20000);
  751. SendClientMessage(i, COLOR_WHITE, "{a9c4e4}Magazinul 24/7 din LS ");
  752. SendClientMessage(i, COLOR_WHITE, "");
  753. SendClientMessage(i, COLOR_WHITE, "Acesta este un magazin 24/7, magazin din care poti cumpara mai multe lucruri utile: ");
  754.  
  755. SendClientMessage(i, COLOR_WHITE, "- Telefon - dupa ce cumperi un telefon, vei putea suna un alt player sau ii vei putea trimite un sms.");
  756.  
  757. SendClientMessage(i, COLOR_WHITE, "- Agenda telefonica - vei putea afla numerele de telefon ale altor playeri folosind comanda /numbr.");
  758.  
  759. SendClientMessage(i, COLOR_WHITE, "- Tigari - pe server poti fuma in liniste folosid comands /smoke.");
  760.  
  761. SendClientMessage(i, COLOR_WHITE, " - Canistra - daca ramai fara benzina la masina , poti folosi /fillcar.");
  762. SendClientMessage(i, COLOR_WHITE, " - Walkie Talkie - te ajuta sa poti discuta cu prietenii tai prin /wt.");
  763.  
  764. SendClientMessage(i, COLOR_WHITE, "Te lasam pe tine sa descoperi ce altceva poti cumpara din magazine.");
  765.  
  766. // TextDrawSetString(tstep[i], " Tutorial ~y~(y~2/8)");
  767. }
  768. else if(TutTime[i] == 50)
  769. {
  770. ClearChatbox(i, 15);
  771. InterpolateCameraPos(i, 1198.766357, -1730.464111, 37.123344, 1101.956787, -1714.557739, 17.345357, 20000);
  772. InterpolateCameraLookAt(i, 1194.400512, -1728.355468, 35.901470, 1097.973999, -1711.619995, 16.632946, 20000);
  773. SendClientMessage(i, COLOR_WHITE, "{a9c4e4}DMV ");
  774. SendClientMessage(i, COLOR_WHITE, "");
  775. SendClientMessage(i, COLOR_WHITE, "Aici poti da examen pentru a obtine permisul de conducere. ");
  776.  
  777. SendClientMessage(i, COLOR_WHITE, "Nu stii cum sa ajungi aici? Nicio problema. Poti folosi comanda /gps si vei putea alege 'Examen LS' din lista. ");
  778.  
  779. SendClientMessage(i, COLOR_WHITE, "Comanda /gps poate fi folosita si pentru a afla unde sunt alte locatii importante pe server. ");
  780.  
  781. SendClientMessage(i, COLOR_WHITE, "Dupa ce vei lua examenul vei primi permisul de conducere, vei putea conduce masini, dar nu avioane sau barci. ");
  782.  
  783. 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. ");
  784.  
  785. SendClientMessage(i, COLOR_WHITE, "Licentele se pot confisca si de admini sau politisti ! Deci ai mare grija !");
  786.  
  787.  
  788. // TextDrawSetString(tstep[i], " Tutorial ~y~(y~3/8)");
  789. }
  790.  
  791. else if(TutTime[i] == 70)
  792. {InterpolateCameraPos(i, 1471.962280, -1024.781005, 44.587802, 1524.528930, -1043.154663, 30.165300, 20000);
  793. InterpolateCameraLookAt(i, 1475.551025, -1027.860717, 42.964138, 1521.048828, -1046.567260, 29.050382, 20000);
  794. ClearChatbox(i, 15);
  795. SendClientMessage(i, COLOR_WHITE, "{a9c4e4}Dealership LS ");
  796. SendClientMessage(i, COLOR_WHITE, "");
  797. SendClientMessage(i, COLOR_WHITE, "Aici este Dealership-ul, adica locul de unde poti cumpara masini. ");
  798.  
  799. SendClientMessage(i, COLOR_WHITE, "Pentru a cumpara o masina personala ai nevoie de level 3 si de bani suficienti. ");
  800.  
  801. SendClientMessage(i, COLOR_WHITE, "Cea mai ieftina masina este Perennial si costa 570,000$, iar cea mai scumpa este HotRacing A si are pretul de 90,000,000$.");
  802.  
  803. SendClientMessage(i, COLOR_WHITE, "Sunt disponibile 121 modele diferite de masini in dealership.");
  804.  
  805. SendClientMessage(i, COLOR_WHITE, "Dupa ce vei cumpara o masina personala vei putea incuia usile, o vei putea parca unde vrei si o avei putea localiza. ");
  806.  
  807. SendClientMessage(i, COLOR_WHITE, "Vei putea de asemenea sa vinzi masina sau sa faci schimb de masini cu un alt player. ");
  808.  
  809. SendClientMessage(i, COLOR_WHITE, "Poti detine maxim 2 masini personale sau 4 daca ai cont premium, iar toate masinile vor ramane spawnate. ");
  810.  
  811. SendClientMessage(i, COLOR_WHITE, "Pana ajungi la level 3 poti munci la unul dintre joburile disponibile(/jobs).");
  812.  
  813.  
  814.  
  815. // TextDrawSetString(tstep[i], " Tutorial ~y~(y~4/8)");
  816. }
  817. else if(TutTime[i] == 85)
  818. {
  819. ClearChatbox(i, 15);
  820. InterpolateCameraPos(i, -203.994903, -483.693786, 59.420005, -202.273147, -373.658416, 31.174304, 20000);
  821. InterpolateCameraLookAt(i, -202.445983, -479.142944, 58.044986, -199.513427, -369.665618, 29.973653, 20000);
  822. SendClientMessage(i, COLOR_WHITE, "{a9c4e4}Job Trucker ");
  823. SendClientMessage(i, COLOR_WHITE, "");
  824. SendClientMessage(i, COLOR_WHITE, " Trucker (sofer de tir) este unul din job-urile disponibile pe serverul nostru. ");
  825.  
  826. SendClientMessage(i, COLOR_WHITE, "La acest job trebuie sa livrezi marfa dintr-un oras in altul. ");
  827.  
  828. SendClientMessage(i, COLOR_WHITE, "Pentru a vedea o lista cu job-urile de pe server, foloseste comanda /jobs. ");
  829.  
  830. SendClientMessage(i, COLOR_WHITE, "La toate joburile se castiga la fel de multi bani, cu exceptia jobului de detectiv unde nu se castiga bani. ");
  831.  
  832. SendClientMessage(i, COLOR_WHITE, "Poti testa toate joburile pentru a testa care iti place mai mult. ");
  833.  
  834. SendClientMessage(i, COLOR_WHITE, "Daca te plictisesti de un job, vei putea folosi comanda /quitjob pentru a renunta la el oricand.");
  835.  
  836.  
  837. /// TextDrawSetString(tstep[i], " Tutorial ~y~(y~5/8)");
  838. }
  839. else if(TutTime[i] == 100)
  840. {
  841. ClearChatbox(i, 15);
  842. InterpolateCameraPos(i, 1468.168823, -1673.465332, 72.490020, 1544.218505, -1675.482421, 17.079647, 20000);
  843. InterpolateCameraLookAt(i, 1472.057373, -1673.610473, 69.350311, 1549.075927, -1675.583984, 18.260986, 20000);
  844. SendClientMessage(i, COLOR_WHITE, "{a9c4e4}LSPD , F.B.I , National Guard ");
  845. SendClientMessage(i, COLOR_WHITE, "");
  846. SendClientMessage(i, COLOR_WHITE, "Politistii sunt impartiti in 3 factiuni: LSPD , National Guard , F.B.I.");
  847.  
  848. SendClientMessage(i, COLOR_WHITE, "Vei putea aplica la una din cele 3 factiuni de politisti incepand cu level 4. ");
  849.  
  850. SendClientMessage(i, COLOR_WHITE, "Pana ajungi la level 4, vei putea aplica la factiunile Taxi, SMURD incepand cu level 3. ");
  851.  
  852. SendClientMessage(i, COLOR_WHITE, "La factiunea School Instructor sau la una din cele 6 mafii, vei putea aplica incepand cu level 5.");
  853.  
  854. SendClientMessage(i, COLOR_WHITE, "Aplicatiile se fac pe forum (www.gLAND.ro/forum). ");
  855.  
  856. SendClientMessage(i, COLOR_WHITE, "Cei ce fac parte din factiuni primesc salarii saptamanale de la liderul factiunii.");
  857.  
  858.  
  859. // TextDrawSetString(tstep[i], " Tutorial ~y~(y~6/8)");
  860. }
  861. else if(TutTime[i] == 120)
  862. {
  863. InterpolateCameraPos(i, 1418.262817, -1044.632324, 39.588813, 1466.479003, -1026.390136, 26.384252, 20000);
  864. InterpolateCameraLookAt(i, 1422.624389, -1042.872070, 37.892280, 1466.563232, -1021.402160, 26.048137, 20000);
  865. ClearChatbox(i, 15);
  866. SendClientMessage(i, COLOR_WHITE, "{a9c4e4}Banca LS");
  867. SendClientMessage(i, COLOR_WHITE, "");
  868. SendClientMessage(i, COLOR_WHITE, "Aceasta este banca din orasul Los Santos. Mai exista o banca si in orasul Las Venturas. ");
  869.  
  870. SendClientMessage(i, COLOR_WHITE, "Banca poate fi folosita pentru a depune si retrage bani sau pentru a transfera bani unui alt player. ");
  871.  
  872. SendClientMessage(i, COLOR_WHITE, "Pentru banii depusi in banca vei primi dobanda o data pe ora. ");
  873.  
  874. SendClientMessage(i, COLOR_WHITE, "Banii primiti din payday ajung automat in contul bancar si va trebui sa mergi la banca pentru a-i retrage. ");
  875.  
  876. SendClientMessage(i, COLOR_WHITE, "Te sfatuim sa nu imprumuti bani altor playeri deoarece nu ai nicio garantie ca iti vor fi inapoiati. ");
  877.  
  878. SendClientMessage(i, COLOR_WHITE, "De asemenea, afacerile cu bani reali sau bunuri ce nu tin de joc (conturi steam, conturi pe alte servere) sunt interzise. ");
  879.  
  880. SendClientMessage(i, COLOR_WHITE, "Daca cineva iti propune sa cumperi o masina in joc pentru bani reali, te sfatuim sa-l raportezi folosim comanda /report. ");
  881.  
  882. SendClientMessage(i, COLOR_WHITE, "Playerii ce promit ca iti vor vinde bunuri in joc pentru bani reali nu iti vor da bunurile promise.");
  883.  
  884.  
  885.  
  886.  
  887.  
  888. /// TextDrawSetString(tstep[i], " Tutorial ~y~(y~7/8)");
  889. }
  890. else if(TutTime[i] == 135)
  891. {
  892. ClearChatbox(i, 15);
  893. InterpolateCameraPos(i, 803.020996, -983.599365, 81.276168, 839.655639, -1034.886718, 27.376045, -1);
  894. InterpolateCameraLookAt(i, 805.362304, -986.750061, 78.179206, 842.722290, -1038.615356, 26.074794, -1);
  895. SendClientMessage(i, COLOR_WHITE, "{a9c4e4}CNN Stuio LS ");
  896. SendClientMessage(i, COLOR_WHITE, "");
  897. SendClientMessage(i, COLOR_WHITE, "Aici este CNN Los Santos, adica locul de unde se pot plasa anunturi pe server. ");
  898.  
  899. SendClientMessage(i, COLOR_WHITE, "Anunturile sunt vazute de toti playerii de pe server si sunt folosite pentru a vinde/cumpara/schimba bunuri de pe server. ");
  900.  
  901. SendClientMessage(i, COLOR_WHITE, "Anunturile se folosesc doar pentru vanzari, cumparari si schimburi de bunuri. ");
  902.  
  903. SendClientMessage(i, COLOR_WHITE, "Vei putea scrie un anunt incepand cu level 3. ");
  904.  
  905.  
  906.  
  907. SendClientMessage(i, COLOR_WHITE, "Si pe forumul nostru www.gLAND.ro/forum exista o sectiune de vanzari unde playerii unde playerii pot posta anunturi.");
  908.  
  909.  
  910.  
  911. SendClientMessage(i, COLOR_WHITE, " Ai ajuns la sfarsitul tutorialului. Daca ai fost atent, ar trebui sa stii cateva lucruri despre joc.");
  912.  
  913. SendClientMessage(i, COLOR_WHITE, "Daca ai vreo intrebare legata de joc, foloseste /n si helperii vor incerca sa te ajute.");
  914.  
  915. SendClientMessage(i, COLOR_WHITE, "Poti folosi si /help pentru comenzi de baza.");
  916.  
  917. SendClientMessage(i, COLOR_WHITE, "Distractie placuta!");
  918.  
  919.  
  920.  
  921.  
  922. // TextDrawSetString(tstep[i], " Tutorial ~y~(y~8/8)");
  923. }
  924. else if(TutTime[i] == 149)
  925. {
  926. ClearChatbox(i, 20);
  927.  
  928. ShowPlayerDialog(i,152,DIALOG_STYLE_INPUT,"Email","Scrie aici adresa ta de email!\n Ea te ajuta la recuperarea contului in caz ca este spart\nExemplu: {ffffff}[email protected]","OK","");
  929. SendClientMessage(i, COLOR_YELLOW2, "Viziteaza www.gLAND.ro/forum pentru mai multe informatii despre server.");
  930. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Bun venit pe gLAND RPG");
  931. new stringn[256], sendernamen[MAX_PLAYER_NAME];
  932. GetPlayerName(i, sendernamen, sizeof(sendernamen));
  933. format(stringn, sizeof(stringn), "SERVER: %s s-a inregistrat! Folositi /goto % pentru a-i face un tur al serverului.", sendernamen, sendernamen);
  934. SBroadCast(COLOR_LIGHTRED, stringn);
  935. format(stringn, sizeof(stringn), "SERVER:%s s-a inregistrat pe server.",sendernamen);
  936. ABroadCast(COLOR_LIGHTRED,stringn,1);
  937. TogglePlayerSpectating(i, 0);
  938. TutTime[i] = 0; PlayerInfo[i][pTut] = 1;
  939. gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0;
  940. TogglePlayerControllable(i, 1);
  941. MedicBill[i] = 0;
  942. // PlayerInfo[i][pLevel] = 1;
  943. PlayerInfo[i][pPPoints] = 0;
  944. PlayerInfo[i][pPcarkey] = -1;
  945. PlayerInfo[i][pPcarkey2] = -1;
  946. PlayerInfo[i][pPcarkey3] = -2;
  947. PlayerInfo[i][pPcarkey4] = -2;
  948. PlayerInfo[i][vModel][3] = -2;
  949. PlayerInfo[i][vModel][4] = -2;
  950.  
  951.  
  952. PlayerInfo[i][vModel][1] = 462;
  953. PlayerInfo[i][vValue][1] = 1;
  954. PlayerInfo[i][vLocX][1] = 2315.9238+random(10);
  955. PlayerInfo[i][vLocY][1] = 1460.6024+random(10);
  956. PlayerInfo[i][vLocZ][1] = 42.8203+random(3);
  957. PlayerInfo[i][vLock][1] = 0;
  958. PlayerInfo[i][vExp][1] = 0;
  959. PlayerInfo[i][vAngle][1] = 0.0;
  960. PlayerInfo[i][pPcarkey] = CreateVehicle(PlayerInfo[i][vModel][1], PlayerInfo[i][vLocX][1], PlayerInfo[i][vLocY][1], PlayerInfo[i][vLocZ][1], PlayerInfo[i][vAngle][1], PlayerInfo[i][vCuloare1][1], PlayerInfo[i][vCuloare2][1], -1);
  961. SetTimerEx("putinveh", 2000, 0, "d", i);
  962. Gas[PlayerInfo[i][pPcarkey]] = 99;
  963. PlayerInfo[i][vFuel][1] = 99;
  964. //new pos[MAX_PLAYERS];
  965. startvpos[i] = 1 + random(3);
  966. switch(startvpos[i])
  967. {
  968. case 1:
  969. {
  970. SetVehiclePos(PlayerInfo[i][pPcarkey], 1078.5137, -1770.3633, 12.9510);
  971. }
  972. case 2:
  973. {
  974. SetVehiclePos(PlayerInfo[i][pPcarkey], 1077.3203,-1761.0994,12.9771);
  975. }
  976. case 3:
  977. {
  978. SetVehiclePos(PlayerInfo[i][pPcarkey], 1062.1116,-1754.4071,13.0331);
  979. }
  980. case 4:
  981. {
  982. SetVehiclePos(PlayerInfo[i][pPcarkey], 1099.0439,-1764.1396,12.9473);
  983. }
  984. }
  985. startvpos[i] = 0;
  986. SCM(i, COLOR_LIGHTRED, "** {FFFFFF}Ai primit un Faggio personal pentru ca esti incepator ! Cand vei atinge level 3 acesta va disparea !");
  987. SCM(i, COLOR_LIGHTRED, "** {FFFFFF}Pentru a vedea comenzile vehiculului, foloseste comanda: /carhelp !");
  988. SCM(i, COLOR_WHITE, "Nu uita sa-ti parchezi masina undeva ( /park ) !");
  989.  
  990.  
  991.  
  992. format(string, sizeof(string), "UPDATE players SET Accusedof='-' WHERE id=%d", PlayerInfo[i][pSQLID]);
  993. mysql_query(string);
  994. format(string, sizeof(string), "UPDATE players SET Victim='-' WHERE id=%d", PlayerInfo[i][pSQLID]);
  995. mysql_query(string);
  996. strmid(PlayerCrime[i][pAccusedof], "-", false, strlen("-"), 10);
  997. strmid(PlayerCrime[i][pVictim], "-", false, strlen("-"), 10);
  998. SetPlayerSpawn(i);
  999. GivePlayerCash(i, 2000);
  1000. SetCameraBehindPlayer(i);
  1001. //Bonus(i);
  1002. CP[i] = 12;
  1003. PlayerInfo[i][pGiftPoints] = 5;
  1004. format(string, sizeof(string), "UPDATE players SET GiftPoints='%d' WHERE id=%d", PlayerInfo[i][pGiftPoints], PlayerInfo[i][pSQLID]);
  1005. mysql_query(string);
  1006. Bonus(i);
  1007.  
  1008. if(PlayerInfo[i][pOrigin] == 1)
  1009. {
  1010. SetPlayerCheckpoint(i,1081.3702,-1699.2769,13.5469,7.0);
  1011. }
  1012. else if(PlayerInfo[i][pOrigin] == 2)
  1013. {
  1014. SetPlayerCheckpoint(i,-2084.10,67.28,34.27,7.0);
  1015. }
  1016. SendClientMessage(i, COLOR_WHITE, "Ti-am pus un checkpoint pe map. Dute la el si da examenul pentru permisul de conducere.");
  1017.  
  1018. format(string, sizeof(string), "UPDATE players SET Tutorial='%d' WHERE id=%d", PlayerInfo[i][pTut], PlayerInfo[i][pSQLID]);
  1019. mysql_query(string);
  1020. format(string, sizeof(string), "UPDATE players SET PlayerLevel='%d' WHERE id=%d", PlayerInfo[i][pLevel], PlayerInfo[i][pSQLID]);
  1021. mysql_query(string);
  1022.  
  1023.  
  1024. }
  1025. }
  1026.  
  1027.  
  1028. if(ScoalaTime[i] >= 1)
  1029. {
  1030. ScoalaTime[i] += 1;
  1031. if(ScoalaTime[i] == 3)
  1032. {
  1033. TogglePlayerControllable(i, 0);
  1034. TextDrawShowForPlayer(i, Chatbox1);
  1035. TextDrawShowForPlayer(i, Chatbox2);
  1036. TextDrawShowForPlayer(i, Chatbox3);
  1037. SetPlayerCameraPos(i, 2247.0215,-1655.0173,17.2856);
  1038. SetPlayerCameraLookAt(i, 2244.6536,-1663.9304,15.4766);
  1039. SetPlayerInterior(i, 0);
  1040. SetPlayerVirtualWorld(i, 99);
  1041. SetPlayerPosEx(i, 2256.3555,-1646.6377,15.4959);
  1042. SendClientMessage(i, COLOR_YELLOW, ":: Magazinul de Haine ::");
  1043. SendClientMessage(i, COLOR_WHITE, " ");
  1044. SendClientMessage(i, COLOR_YELLOW2, "Hainele acelea nu arata prea bine... De ce nu cumperi cateva de aici?");
  1045. SendClientMessage(i, COLOR_YELLOW2, "Cand esti in magazin tasteaza /buyskin pentru a alege niste haine.");
  1046. SendClientMessage(i, COLOR_YELLOW2, "Pentru a-ti lua hainele adecvate factiunii tale, tasteaza /clothes.");
  1047. }
  1048. else if(ScoalaTime[i] == 18)
  1049. {
  1050. SetPlayerPosEx(i, 1514.3059,-1667.8116,14.0469);
  1051. SetPlayerCameraPos(i, 1485.9294,-1770.9418,18.7958);
  1052. SetPlayerCameraLookAt(i, 1484.8512,-1771.4022,18.7958);
  1053. SetPlayerInterior(i, 0);
  1054. SetPlayerVirtualWorld(i, 99);
  1055. SendClientMessage(i, COLOR_YELLOW, ":: Level si Joburi ::");
  1056. SendClientMessage(i, COLOR_WHITE, " ");
  1057. SendClientMessage(i, COLOR_YELLOW2, "Acesta este primaria Los Santos.De aici iti poti lua joburi(slujbe).");
  1058. SendClientMessage(i, COLOR_YELLOW2, "Exemple de joburi:Camionagiu,Detectiv, Dealer de droguri , dealer de arme ..");
  1059. SendClientMessage(i, COLOR_YELLOW2, "Cand atinti numarul de RP necesar pentru cresterea level-ului, acesta creste automat.");
  1060. SendClientMessage(i, COLOR_YELLOW2, "RP-urile le poti face jucand pe server (la fiecare ora jucata primesti un RP).");
  1061. }
  1062. if(ScoalaTime[i] == 33)
  1063. {
  1064. SetPlayerPosEx(i, 1514.3059,-1667.8116,14.0469);
  1065. SetPlayerCameraPos(i, 1535.9584,-1676.1428,18.3828);
  1066. SetPlayerCameraLookAt(i, 1553.7861,-1676.4270,16.1953);
  1067. SetPlayerInterior(i, 0);
  1068. SendClientMessage(i, COLOR_YELLOW, ":: Politia ::");
  1069. SendClientMessage(i, COLOR_WHITE, " ");
  1070. SendClientMessage(i, COLOR_YELLOW2, "Politia gLAND RPG e in oras ca sa te ajute.");
  1071. SendClientMessage(i, COLOR_YELLOW2, "Oamenii care comit crime vor fi pedepsiti fiind arestati.");
  1072. SendClientMessage(i, COLOR_YELLOW2, "Pentru a suna la un politist, foloseste /call 112.");
  1073. }
  1074. if(ScoalaTime[i] == 48)
  1075. {
  1076. SetPlayerPosEx(i, 1221.7010,-1328.6449,13.4821);
  1077. SetPlayerCameraPos(i, 1204.3781,-1313.3323,16.3984);
  1078. SetPlayerCameraLookAt(i, 1174.7167,-1323.4485,14.5938);
  1079. SetPlayerInterior(i, 0);
  1080. SendClientMessage(i, COLOR_YELLOW, ":: Spitalul gLAND RPG ::");
  1081. SendClientMessage(i, COLOR_WHITE, " ");
  1082. SendClientMessage(i, COLOR_YELLOW2, "Te simti rau? Vino aici pentru a te trata.");
  1083. SendClientMessage(i, COLOR_YELLOW2, "Daca e o urgenta, suna la /call 112.");
  1084.  
  1085. }
  1086. if(ScoalaTime[i] == 63)
  1087. {
  1088. SetPlayerPosEx(i, 1475.7020,-1050.9489,23.8246);
  1089. SetPlayerCameraPos(i, 1458.3872,-1042.2423,24.8281);
  1090. SetPlayerCameraLookAt(i, 1458.5930,-1019.9205,24.5264);
  1091. SetPlayerInterior(i, 0);
  1092. SendClientMessage(i, COLOR_YELLOW, ":: Banca ::");
  1093. SendClientMessage(i, COLOR_WHITE, " ");
  1094. SendClientMessage(i, COLOR_YELLOW2, "Nu poti tine toti banii in mana, mafiotii vor incerca sa te jefuiasca.");
  1095. SendClientMessage(i, COLOR_YELLOW2, "Poti sa folosesti /deposit(pentru a depozita), /withdraw(pentru a lua bani din cont) si /wiretransfer(pentru a transfera).");
  1096. SendClientMessage(i, COLOR_YELLOW2, "Vrem sa iti reamintim ca Economia este scazuta pe serverul nostru.");
  1097. SendClientMessage(i, COLOR_YELLOW2, "De exemplu, afacerile si casele sunt mult mai ieftine, exact ca in viata reala !");
  1098. }
  1099. else if(ScoalaTime[i] == 78)
  1100. {
  1101. SendClientMessage(i, COLOR_YELLOW, ":: Finalul ::");
  1102. SendClientMessage(i, COLOR_WHITE, " ");
  1103. SendClientMessage(i, COLOR_YELLOW2, "Scoala gLAND RPG iti multumeste pentru ca ai fost atent la lectie!");
  1104. SendClientMessage(i, COLOR_YELLOW2, "Poti folosi chat-ul /newbie(/n) pentru intrebari.");
  1105. SendClientMessage(i, COLOR_LIGHTGREEN, "Profesor:{FFFFFF} Lectia te costat 5000$");
  1106. SendClientMessage(i, COLOR_LIGHTGREEN, "Profesor:{FFFFFF} Sper ca ti-am fost de folos , distractie placuta in continuare !");
  1107. TogglePlayerSpectating(i, 0);
  1108. TogglePlayerControllable(i, 1);
  1109. TextDrawHideForPlayer(i, Chatbox1);
  1110. TextDrawHideForPlayer(i, Chatbox2);
  1111. TextDrawHideForPlayer(i, Chatbox3);
  1112. MedicBill[i] = 0;
  1113. ScoalaTime[i] = 0;
  1114. SetPlayerPosEx(i, 1397.4089,-1571.7703,14.2684);
  1115. GivePlayerCash(i, -5000);
  1116. SetCameraBehindPlayer(i);
  1117. }
  1118. }
  1119. if(RestartPrepare[i] >= 1)
  1120. {
  1121. RestartPrepare[i] += 1;
  1122. if(RestartPrepare[i] == 3)
  1123. {
  1124. SendClientMessage(i, COLOR_LIGHTBLUE,"* Serverul se va restarta in 60 de secunde !");
  1125. }
  1126. else if(RestartPrepare[i] == 50)
  1127. {
  1128. SendClientMessage(i, COLOR_WHITE,"* Serverul se va restarta in 10 secunde !");
  1129. }
  1130. else if(RestartPrepare[i] == 51)
  1131. {
  1132. SendClientMessage(i, COLOR_LIGHTBLUE,"* Serverul se va restarta in 9 secunde !");
  1133. }
  1134. else if(RestartPrepare[i] == 52)
  1135. {
  1136. SendClientMessage(i, COLOR_WHITE,"* Serverul se va restarta in 8 secunde !");
  1137. }
  1138. else if(RestartPrepare[i] == 53)
  1139. {
  1140. SendClientMessage(i, COLOR_LIGHTBLUE,"* Serverul se va restarta in 7 secunde !");
  1141. }
  1142. else if(RestartPrepare[i] == 54)
  1143. {
  1144. SendClientMessage(i, COLOR_WHITE,"* Serverul se va restarta in 6 secunde !");
  1145. }
  1146. else if(RestartPrepare[i] == 55)
  1147. {
  1148. SendClientMessage(i, COLOR_LIGHTBLUE,"* Serverul se va restarta in 5 secunde !");
  1149. }
  1150. else if(RestartPrepare[i] == 56)
  1151. {
  1152. SendClientMessage(i, COLOR_WHITE,"* Serverul se va restarta in 4 secunde !");
  1153. }
  1154. else if(RestartPrepare[i] == 57)
  1155. {
  1156. SendClientMessage(i, COLOR_LIGHTBLUE,"* Serverul se va restarta in 3 secunde !");
  1157. }
  1158. else if(RestartPrepare[i] == 58)
  1159. {
  1160. SendClientMessage(i, COLOR_WHITE,"* Serverul se va restarta in 2 secunde !");
  1161. }
  1162. else if(RestartPrepare[i] == 59)
  1163. {
  1164. SendClientMessage(i, COLOR_LIGHTBLUE,"* Serverul se va restarta in 1 secunda !");
  1165. SendClientMessage(i, COLOR_LIGHTRED,"* Sa revii dupa acest restart. ");
  1166. RestartPrepare[i] = 0;
  1167. }
  1168. }
  1169. if(DMVTime[i] >= 1)
  1170. {
  1171. DMVTime[i] += 1;
  1172. if(DMVTime[i] == 3)
  1173. {
  1174. ClearChatbox(i, 10);
  1175. SendClientMessage(i, COLOR_YELLOW, ":: Bine ai venit! ::");
  1176. SendClientMessage(i, COLOR_WHITE, " ");
  1177. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Bine ai venit! Eu voi fi instructorul tau de condus.");
  1178. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Iti voi spune niste notiuni esentiale, asa ca fii ochi si urechi, pentru ca iti vor folosi.");
  1179. }
  1180. else if(DMVTime[i] == 15)
  1181. {
  1182. ClearChatbox(i, 10);
  1183. SendClientMessage(i, COLOR_YELLOW, ":: In General ::");
  1184. SendClientMessage(i, COLOR_WHITE, " ");
  1185. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}{ee5555}Intotdeauna{a9c4e4} conduci pe banda din dreapta.");
  1186. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Daca esti intr-o intersectie, trebuie sa ii acorzi prioritate celui care vine din {ee5555}partea dreapta.");
  1187. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Organele Politiei au {ee5555}intotdeauna{a9c4e4} dreptul de a te amenda daca");
  1188. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}incalci regulile prezentate in acest ghid.");
  1189. }
  1190. else if(DMVTime[i] == 28)
  1191. {
  1192. ClearChatbox(i, 10);
  1193. SendClientMessage(i, COLOR_YELLOW, ":: Vorbitul la telefon in timpul condusului ::");
  1194. SendClientMessage(i, COLOR_WHITE, " ");
  1195. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Pentru a nu provoca un accident, trebuie {ee5555}NEAPARAT{a9c4e4} sa iti inchizi telefonul");
  1196. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}in timp ce conduci. Daca nu vei face asta vei sfarsi provocand un accident si vei fi amendat");
  1197. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}de catre politie pentru condus imprudent.");
  1198. }
  1199. else if(DMVTime[i] == 42)
  1200. {
  1201. ClearChatbox(i, 10);
  1202. SendClientMessage(i, COLOR_YELLOW, ":: Stationatul ::");
  1203. SendClientMessage(i, COLOR_WHITE, " ");
  1204. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Daca vrei sa stationezi, {ee5555}nu{a9c4e4} o fa in mijlocul drumului.");
  1205. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Trage pe dreapta si eventual poti parca masina intr-o {ee5555}parcare.");
  1206. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}De asemenea, daca o masina de politie sau o ambulanta avand girofarurile aprinse");
  1207. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}trece pe strada pe care conduci si tu, trage pe dreapta.");
  1208. }
  1209. else if(DMVTime[i] == 55)
  1210. {
  1211. ClearChatbox(i, 10);
  1212. SendClientMessage(i, COLOR_YELLOW, ":: Sanctionari Posibile ::");
  1213. SendClientMessage(i, COLOR_WHITE, " ");
  1214. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Stationatul neregulamentar va fi amendat, la fel si");
  1215. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}nerespectarea ordinelor organului politiei. De asemenea, jignirea acestuia poate duce la");
  1216. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}amenda. Restul amenzilor le poti afla pe forum-ul nostru, care este:");
  1217. SendClientMessage(i, COLOR_YELLOW2, "{ee5555}http://www.gLAND.ro/");
  1218. }
  1219. else if(DMVTime[i] == 72)
  1220. {
  1221. ClearChatbox(i, 10);
  1222. SendClientMessage(i, COLOR_YELLOW, ":: Sfarsit ::");
  1223. SendClientMessage(i, COLOR_WHITE, " ");
  1224. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Speram ca vei tine cont de notiunile invatate.");
  1225. SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Acum va incepe examenul practic, asa ca va trebui sa conduci masina scolii de condus.");
  1226. SendClientMessage(i, COLOR_YELLOW2, "{ee5555}Mult Succes !!");
  1227. // CP[i] = 200;
  1228. SetPVarInt(i, "checkpoint", 0);
  1229. SetPlayerVirtualWorld(i, 0);
  1230. SetPlayerInterior(i, 0);
  1231. SetPlayerPosEx(i, 937.4717,-1739.2224,13.5469);
  1232. SetPlayerRaceCheckpoint(i,0,testex[0][0],testex[0][1],testex[0][2],testex[1][0],testex[1][1],testex[1][2],10);
  1233. TakingLesson[i] = 1;
  1234. DMVTest[i] = 1;
  1235. if(!IsVehicleOccupied(dmv)) { PutPlayerInVehicle(i, dmv, 0);}
  1236. else if(!IsVehicleOccupied(dmv1)) { PutPlayerInVehicle(i, dmv1, 0); }
  1237. else if(!IsVehicleOccupied(dmv2)) { PutPlayerInVehicle(i, dmv2, 0); }
  1238. else if(!IsVehicleOccupied(dmv3)) { PutPlayerInVehicle(i, dmv3, 0); }
  1239. else if(!IsVehicleOccupied(dmv3) && !IsVehicleOccupied(dmv2) && !IsVehicleOccupied(dmv1) && !IsVehicleOccupied(dmv)) { SendClientMessage(i, COLOR_LIGHTBLUE, "{DC0C0C}DMV: {FFFFFF}Nu mai sunt locuri disponibile!"); }
  1240. SendClientMessage(i, COLOR_LIGHTBLUE, "{DC0C0C}Masina: Atunci cand motorul este oprit, il poti porni folosind comanda /engine sau apasand tasta 2.");
  1241. TogglePlayerControllable(i, 1);
  1242. PlayerTextDrawShow(i,checkpoints[i]);
  1243. PlayerTextDrawSetString(i, checkpoints[i],"Checkpoints:0/20");
  1244.  
  1245.  
  1246. GetVehicleParamsEx(GetPlayerVehicleID(i),engine,lights,alarm,doors,bonnet,boot,objective);
  1247. SetVehicleParamsEx(GetPlayerVehicleID(i),VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
  1248. }
  1249. }
  1250. if(PlayerTazeTime[i] >= 1)
  1251. {
  1252. PlayerTazeTime[i] += 1;
  1253. if(PlayerTazeTime[i] == 15)
  1254. {
  1255. PlayerTazeTime[i] = 0;
  1256. }
  1257. else
  1258. {
  1259. new Float:angle;
  1260. GetPlayerFacingAngle(i, angle);
  1261. SetPlayerFacingAngle(i, angle + 90);
  1262. }
  1263. }
  1264. if(PlayerDrunk[i] >= 5)
  1265. {
  1266. PlayerDrunkTime[i] += 1;
  1267. if(PlayerDrunkTime[i] == 8)
  1268. {
  1269. PlayerDrunkTime[i] = 0;
  1270. new Float:angle;
  1271. GetPlayerFacingAngle(i, angle);
  1272. if(IsPlayerInAnyVehicle(i))
  1273. {
  1274. if(GetPlayerState(i) == 2)
  1275. {
  1276. SetVehicleZAngle(GetPlayerVehicleID(i), angle + 25);
  1277. }
  1278. }
  1279. else
  1280. {
  1281. ApplyAnimation(i,"PED", "WALK_DRUNK",4.0,0,1,0,0,0);
  1282. }
  1283. }
  1284. }
  1285. if(JFKick[i] == 2)
  1286. {
  1287. SendClientMessage(i,0xE42217FF,"AdmBOT: Ai primit kick pentru lupte in puscarie!");
  1288. GetPlayerName(i, plname, sizeof(plname));
  1289. format(string, sizeof(string), "AdmBOT: %s a primit kick pentru lupte in puscarie!", plname);
  1290. SendClientMessageToAll(COLOR_LIGHTRED, string);
  1291. Kick(i);
  1292. }
  1293. if(WantedLevel[i] == 1)
  1294. {
  1295. SetPlayerWantedLevel(i,1);
  1296. }
  1297. if(WantedLevel[i] == 0)
  1298. {
  1299. SetPlayerWantedLevel(i,0);
  1300. }
  1301. if(WantedLevel[i] == 2)
  1302. {
  1303. SetPlayerWantedLevel(i,2);
  1304. }
  1305. if(WantedLevel[i] == 3)
  1306. {
  1307. SetPlayerWantedLevel(i,3);
  1308. }
  1309. if(WantedLevel[i] == 4)
  1310. {
  1311. SetPlayerWantedLevel(i,4);
  1312. }
  1313. if(WantedLevel[i] == 5)
  1314. {
  1315. SetPlayerWantedLevel(i,5);
  1316. }
  1317. if(WantedLevel[i] >= 6)
  1318. {
  1319. SetPlayerWantedLevel(i,6);
  1320. }
  1321. if(PlayerStoned[i] >= 2)
  1322. {
  1323. PlayerStoned[i] += 1;
  1324. if(PlayerStoned[i] == 10)
  1325. {
  1326. PlayerStoned[i] = 2;
  1327. new Float:angle;
  1328. GetPlayerFacingAngle(i, angle);
  1329. if(IsPlayerInAnyVehicle(i))
  1330. {
  1331. if(GetPlayerState(i) == 2)
  1332. {
  1333. SetVehicleZAngle(GetPlayerVehicleID(i), angle + 25);
  1334. }
  1335. }
  1336. else
  1337. {
  1338. SetPlayerFacingAngle(i, angle + 90);
  1339. }
  1340. }
  1341. }
  1342. if(PlayerInfo[i][pCarTime] > 0)
  1343. {
  1344. if(PlayerInfo[i][pCarTime] <= 0)
  1345. {
  1346. PlayerInfo[i][pCarTime] = 0;
  1347. format(string, sizeof(string), "UPDATE players SET CarTime='%d' WHERE id=%d", PlayerInfo[i][pCarTime], PlayerInfo[i][pSQLID]);
  1348. mysql_query(string);
  1349. }
  1350. else
  1351. {
  1352. PlayerInfo[i][pCarTime] -= 1;
  1353. format(string, sizeof(string), "UPDATE players SET CarTime='%d' WHERE id=%d", PlayerInfo[i][pCarTime], PlayerInfo[i][pSQLID]);
  1354. mysql_query(string);
  1355. }
  1356. }
  1357. if(PlayerInfo[i][pCGunoiTime] > 0)
  1358. {
  1359. if(PlayerInfo[i][pCGunoiTime] <= 0)
  1360. {
  1361. PlayerInfo[i][pCGunoiTime] = 0;
  1362. format(string, sizeof(string), "UPDATE players SET CGunoiTime='%d' WHERE id=%d", PlayerInfo[i][pCGunoiTime], PlayerInfo[i][pSQLID]);
  1363. mysql_query(string);
  1364. }
  1365. else
  1366. {
  1367. PlayerInfo[i][pCGunoiTime] -= 1;
  1368. format(string, sizeof(string), "UPDATE players SET CGunoiTime='%d' WHERE id=%d", PlayerInfo[i][pCGunoiTime], PlayerInfo[i][pSQLID]);
  1369. mysql_query(string);
  1370. }
  1371. }
  1372. if(BoxWaitTime[i] > 0)
  1373. {
  1374. if(BoxWaitTime[i] >= BoxDelay)
  1375. {
  1376. BoxDelay = 0;
  1377. BoxWaitTime[i] = 0;
  1378. PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
  1379. GameTextForPlayer(i, "~g~Meciul a inceput", 5000, 1);
  1380. TogglePlayerControllable(i, 1);
  1381. RoundStarted = 1;
  1382. }
  1383. else
  1384. {
  1385. format(string, sizeof(string), "%d", BoxDelay - BoxWaitTime[i]);
  1386. GameTextForPlayer(i, string, 1500, 6);
  1387. BoxWaitTime[i] += 1;
  1388. }
  1389. }
  1390. if(RoundStarted > 0)
  1391. {
  1392. if(PlayerBoxing[i] > 0)
  1393. {
  1394. new trigger = 0;
  1395. new Lost = 0;
  1396. new Float:angle;
  1397. new Float:health;
  1398. GetPlayerHealth(i, health);
  1399. if(health < 12)
  1400. {
  1401. if(i == Boxer1) { Lost = 1; trigger = 1; }
  1402. else if(i == Boxer2) { Lost = 2; trigger = 1; }
  1403. }
  1404. if(health < 28) { GetPlayerFacingAngle(i, angle); SetPlayerFacingAngle(i, angle + 85); }
  1405. if(trigger)
  1406. {
  1407. new winner[MAX_PLAYER_NAME];
  1408. new loser[MAX_PLAYER_NAME];
  1409. new titel[MAX_PLAYER_NAME];
  1410. if(Lost == 1)
  1411. {
  1412. if(IsPlayerConnected(Boxer1) && IsPlayerConnected(Boxer2))
  1413. {
  1414. SetPlayerPosEx(Boxer1, 765.8433,3.2924,1000.7186); SetPlayerPosEx(Boxer2, 765.8433,3.2924,1000.7186);
  1415. SetPlayerInterior(Boxer1, 5); SetPlayerInterior(Boxer2, 5);
  1416. GetPlayerName(Boxer1, loser, sizeof(loser));
  1417. GetPlayerName(Boxer2, winner, sizeof(winner));
  1418. if(PlayerInfo[Boxer1][pJob] == 12)
  1419. {
  1420. PlayerInfo[Boxer1][pLoses] += 1;
  1421. format(string, sizeof(string), "UPDATE players SET Loses='%d' WHERE id=%d", PlayerInfo[Boxer1][pLoses], PlayerInfo[Boxer1][pSQLID]);
  1422. mysql_query(string);
  1423. }
  1424. if(PlayerInfo[Boxer2][pJob] == 12)
  1425. {
  1426. PlayerInfo[Boxer2][pWins] += 1;
  1427. format(string, sizeof(string), "UPDATE players SET Wins='%d' WHERE id=%d", PlayerInfo[Boxer2][pWins], PlayerInfo[Boxer2][pSQLID]);
  1428. mysql_query(string);
  1429. }
  1430. if(TBoxer < 255)
  1431. {
  1432. if(IsPlayerConnected(TBoxer))
  1433. {
  1434. if(TBoxer != Boxer2)
  1435. {
  1436. if(PlayerInfo[Boxer2][pJob] == 10)
  1437. {
  1438. TBoxer = Boxer2;
  1439. GetPlayerName(TBoxer, titel, sizeof(titel));
  1440. new nstring[MAX_PLAYER_NAME];
  1441. format(nstring, sizeof(nstring), "%s", titel);
  1442. strmid(Titel[TitelName], nstring, 0, strlen(nstring), 255);
  1443. Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
  1444. Titel[TitelLoses] = PlayerInfo[TBoxer][pLoses];
  1445. SaveBoxer();
  1446. format(string, sizeof(string), "Stiri: %s a castigat importriva campionului %s si este noul campion al boxului.", titel, loser);
  1447. OOCOff(COLOR_WHITE,string);
  1448. }
  1449. else
  1450. {
  1451. SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* Tu ai fi fost campion daca munceai ca Boxer!");
  1452. }
  1453. }
  1454. else
  1455. {
  1456. GetPlayerName(TBoxer, titel, sizeof(titel));
  1457. format(string, sizeof(string), "Stiri: Campionul la box %s a castigat impotriva lui %s.", titel, loser);
  1458. OOCOff(COLOR_WHITE,string);
  1459. Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
  1460. Titel[TitelLoses] = PlayerInfo[Boxer2][pLoses];
  1461. SaveBoxer();
  1462. }
  1463. }
  1464. }//TBoxer
  1465. format(string, sizeof(string), "* Ai pierdut Lupta �mpotriva lui %s.", winner);
  1466. SendClientMessage(Boxer1, COLOR_LIGHTBLUE, string);
  1467. GameTextForPlayer(Boxer1, "~r~You lost", 3500, 1);
  1468. format(string, sizeof(string), "* Ai castigat Lupta �mpotrivat lui %s.", loser);
  1469. SendClientMessage(Boxer2, COLOR_LIGHTBLUE, string);
  1470. GameTextForPlayer(Boxer2, "~r~You won", 3500, 1);
  1471. if(GetPlayerHealth(Boxer1, health) < 20)
  1472. {
  1473. SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* Te simti epuizat din lupta, du-te mananca undeva.");
  1474. SetPlayerHealth(Boxer1, 30.0);
  1475. }
  1476. else
  1477. {
  1478. SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* Te simti perfect, chiar si dupa lupta.");
  1479. SetPlayerHealth(Boxer1, 50.0);
  1480. }
  1481. if(GetPlayerHealth(Boxer2, health) < 20)
  1482. {
  1483. SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* Te simti epuizat din lupta, du-te mananca undeva.");
  1484. SetPlayerHealth(Boxer2, 30.0);
  1485. }
  1486. else
  1487. {
  1488. SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* Te simti perfect, chiar si dupa lupta.");
  1489. SetPlayerHealth(Boxer2, 50.0);
  1490. }
  1491. GameTextForPlayer(Boxer1, "~g~Match Over", 5000, 1); GameTextForPlayer(Boxer2, "~g~Meci terminat", 5000, 1);
  1492. if(PlayerInfo[Boxer2][pJob] == 10)
  1493. {
  1494. PlayerInfo[Boxer2][pBoxSkill] ++;
  1495. format(string, sizeof(string), "UPDATE players SET BoxSkill='%d' WHERE id=%d", PlayerInfo[Boxer2][pBoxSkill], PlayerInfo[Boxer2][pSQLID]);
  1496. mysql_query(string);
  1497. }
  1498. PlayerBoxing[Boxer1] = 0;
  1499. PlayerBoxing[Boxer2] = 0;
  1500. }
  1501. }
  1502. else if(Lost == 2)
  1503. {
  1504. if(IsPlayerConnected(Boxer1) && IsPlayerConnected(Boxer2))
  1505. {
  1506. SetPlayerPosEx(Boxer1, 765.8433,3.2924,1000.7186); SetPlayerPosEx(Boxer2, 765.8433,3.2924,1000.7186);
  1507. SetPlayerInterior(Boxer1, 5); SetPlayerInterior(Boxer2, 5);
  1508. GetPlayerName(Boxer1, winner, sizeof(winner));
  1509. GetPlayerName(Boxer2, loser, sizeof(loser));
  1510. if(PlayerInfo[Boxer2][pJob] == 10)
  1511. {
  1512. PlayerInfo[Boxer2][pLoses] += 1;
  1513. format(string, sizeof(string), "UPDATE players SET Loses='%d' WHERE id=%d", PlayerInfo[Boxer2][pLoses], PlayerInfo[Boxer2][pSQLID]);
  1514. mysql_query(string);
  1515. }
  1516. if(PlayerInfo[Boxer1][pJob] == 10)
  1517. {
  1518. PlayerInfo[Boxer1][pWins] += 1;
  1519. format(string, sizeof(string), "UPDATE players SET Wins='%d' WHERE id=%d", PlayerInfo[Boxer2][pWins], PlayerInfo[Boxer2][pSQLID]);
  1520. mysql_query(string);
  1521. }
  1522. if(TBoxer < 255)
  1523. {
  1524. if(IsPlayerConnected(TBoxer))
  1525. {
  1526. if(TBoxer != Boxer1)
  1527. {
  1528. if(PlayerInfo[Boxer1][pJob] == 10)
  1529. {
  1530. TBoxer = Boxer1;
  1531. GetPlayerName(TBoxer, titel, sizeof(titel));
  1532. new nstring[MAX_PLAYER_NAME];
  1533. format(nstring, sizeof(nstring), "%s", titel);
  1534. strmid(Titel[TitelName], nstring, 0, strlen(nstring), 255);
  1535. Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
  1536. Titel[TitelLoses] = PlayerInfo[TBoxer][pLoses];
  1537. SaveBoxer();
  1538. format(string, sizeof(string), "Stiri: %s a castigat lupta impotriva campionului %s si este acum noul campion la box..", titel, loser);
  1539. OOCOff(COLOR_WHITE,string);
  1540. }
  1541. else
  1542. {
  1543. SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* Tu ai fi fost campion daca munceai ca Boxer!");
  1544. }
  1545. }
  1546. else
  1547. {
  1548. GetPlayerName(TBoxer, titel, sizeof(titel));
  1549. format(string, sizeof(string), "Stiri: Campionul la box %s a castigat impotriva %s.", titel, loser);
  1550. OOCOff(COLOR_WHITE,string);
  1551. Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
  1552. Titel[TitelLoses] = PlayerInfo[Boxer1][pLoses];
  1553. SaveBoxer();
  1554. }
  1555. }
  1556. }//TBoxer
  1557. format(string, sizeof(string), "* Ai pierdut impotriva lui %s.", winner);
  1558. SendClientMessage(Boxer2, COLOR_LIGHTBLUE, string);
  1559. GameTextForPlayer(Boxer2, "~r~You lost", 3500, 1);
  1560. format(string, sizeof(string), "* Ai castigat impotriva lui %s.", loser);
  1561. SendClientMessage(Boxer1, COLOR_LIGHTBLUE, string);
  1562. GameTextForPlayer(Boxer1, "~g~You won", 3500, 1);
  1563. if(GetPlayerHealth(Boxer1, health) < 20)
  1564. {
  1565. SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* Te simti epuizat din lupta, du-te mananca undeva.");
  1566. SetPlayerHealth(Boxer1, 30.0);
  1567. }
  1568. else
  1569. {
  1570. SendClientMessage(Boxer1, COLOR_LIGHTBLUE, "* Te simti perfect, chiar si dupa lupta.");
  1571. SetPlayerHealth(Boxer1, 50.0);
  1572. }
  1573. if(GetPlayerHealth(Boxer2, health) < 20)
  1574. {
  1575. SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* Te simti epuizat din lupta, du-te mananca undeva.");
  1576. SetPlayerHealth(Boxer2, 30.0);
  1577. }
  1578. else
  1579. {
  1580. SendClientMessage(Boxer2, COLOR_LIGHTBLUE, "* Te simti perfect, chiar si dupa lupta.");
  1581. SetPlayerHealth(Boxer2, 50.0);
  1582. }
  1583. GameTextForPlayer(Boxer1, "~g~Match Over", 5000, 1); GameTextForPlayer(Boxer2, "~g~Meci terminat", 5000, 1);
  1584. if(PlayerInfo[Boxer1][pJob] == 10)
  1585. {
  1586. PlayerInfo[Boxer1][pBoxSkill] ++;
  1587. format(string, sizeof(string), "UPDATE players SET BoxSkill='%d' WHERE id=%d", PlayerInfo[Boxer1][pBoxSkill], PlayerInfo[Boxer1][pSQLID]);
  1588. mysql_query(string);
  1589. }
  1590. PlayerBoxing[Boxer1] = 0;
  1591. PlayerBoxing[Boxer2] = 0;
  1592. }
  1593. }
  1594. InRing = 0;
  1595. RoundStarted = 0;
  1596. Boxer1 = 255;
  1597. Boxer2 = 255;
  1598. TBoxer = 255;
  1599. trigger = 0;
  1600. }
  1601. }
  1602. }
  1603. if(StartingPaintballRound == 1 && AnnouncedPaintballRound == 0)
  1604. {
  1605. AnnouncedPaintballRound = 1;
  1606. if(PlayerPaintballing[i] != 0)
  1607. {
  1608. SendClientMessage(i, COLOR_YELLOW, "Meciul de Paintball va fi anuntat in 15 secunde (Pentru a obtine mai multi jucatori la paintball).");
  1609. }
  1610. }
  1611. if(StartingKartRound == 1 && AnnouncedKartRound == 0)
  1612. {
  1613. AnnouncedKartRound = 1;
  1614. if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
  1615. {
  1616. SendClientMessage(i, COLOR_YELLOW, "Cursa de Kart va fi anuntata in 15 secunde (Pentru a obtine mai multi jucatori la cursa de Kart).");
  1617. }
  1618. }
  1619. if(EndingKartRound == 1)
  1620. {
  1621. if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
  1622. {
  1623. DisablePlayerCheckpoint(i);
  1624. CP[i] = 0;
  1625. }
  1626. }
  1627. if(FindTime[i] > 0 && PlayerInfo[i][pDetSkill] < 400)
  1628. {
  1629. if(FindTime[i] == FindTimePoints[i]) { FindTime[i] = 0; FindTimePoints[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
  1630. else
  1631. {
  1632. format(string, sizeof(string), "%d", FindTimePoints[i] - FindTime[i]);
  1633. GameTextForPlayer(i, string, 1500, 6);
  1634. FindTime[i] += 1;
  1635. }
  1636. }
  1637. if(TaxiCallTime[i] > 0)
  1638. {
  1639. if(TaxiAccepted[i] < 999)
  1640. {
  1641. if(IsPlayerConnected(TaxiAccepted[i]))
  1642. {
  1643. new Float:X,Float:Y,Float:Z;
  1644. GetPlayerPos(TaxiAccepted[i], X, Y, Z);
  1645. SetPlayerCheckpoint(i, X, Y, Z, 5);
  1646. }
  1647. }
  1648. }
  1649. if(PlayerInfo[i][pRequestingBackup] > 0)
  1650. {
  1651. for(new j;j<MAX_PLAYERS;j++)
  1652. {
  1653. if(gTeam[j] == 2)
  1654. {
  1655. new Float:X,Float:Y,Float:Z;
  1656. GetPlayerPos(i, X, Y, Z);
  1657. SetPlayerCheckpoint(j, X, Y, Z, 5);
  1658. }
  1659. }
  1660. }
  1661. if(FindTime[i] > 0 && PlayerInfo[i][pDetSkill] >= 400)
  1662. {
  1663. if(PlayerToFind[i] < 999)
  1664. {
  1665. if(IsPlayerConnected(PlayerToFind[i]))
  1666. {
  1667. new Float:X,Float:Y,Float:Z;
  1668. if(InHouse[PlayerToFind[i]] != 0 && GetPlayerInterior(PlayerToFind[i]) != 0)
  1669. {
  1670. SetPlayerCheckpoint(i, HouseData[InHouse[PlayerToFind[i]]][hEntrancex], HouseData[InHouse[PlayerToFind[i]]][hEntrancey], HouseData[InHouse[PlayerToFind[i]]][hEntrancez], 6);
  1671. return 1;
  1672. }
  1673. else if(InBizz[PlayerToFind[i]] != 0 && GetPlayerInterior(PlayerToFind[i]) != 0)
  1674. {
  1675. SetPlayerCheckpoint(i, BizzData[InBizz[PlayerToFind[i]]][bEntranceX], BizzData[InBizz[PlayerToFind[i]]][bEntranceY], BizzData[InBizz[PlayerToFind[i]]][bEntranceZ], 6);
  1676. return 1;
  1677. }
  1678. else if(InHQ[PlayerToFind[i]] != 0 && GetPlayerInterior(PlayerToFind[i]) != 0)
  1679. {
  1680. switch(InHQ[PlayerToFind[i]])
  1681. {
  1682. case 1:
  1683. {
  1684. CP[i] = 385;
  1685. SetPlayerCheckpoint(i, 1541.8402,-1675.0847,13.5533,5.0);
  1686. }
  1687. case 2:
  1688. {
  1689. CP[i] = 385;
  1690. SetPlayerCheckpoint(i, 332.2330,-1515.9069,35.8672,5.0);
  1691. }
  1692. case 3:
  1693. {
  1694. CP[i] = 385;
  1695. SetPlayerCheckpoint(i, 199.2403,1810.6952,17.6406,5.0);
  1696. }
  1697. case 4:
  1698. {
  1699. CP[i] = 385;
  1700. SetPlayerCheckpoint(i, 1184.2267,-1323.4495,13.5750,5.0);
  1701. }
  1702. case 5:
  1703. {
  1704. CP[i] = 385;
  1705. SetPlayerCheckpoint(i, 1484.7910,-1730.9409,6.7187,5.0);
  1706. }
  1707. case 6:
  1708. {
  1709. CP[i] = 385;
  1710. SetPlayerCheckpoint(i, 1642.2660,-2335.1223,13.5469,5.0);
  1711. }
  1712. case 7:
  1713. {
  1714. CP[i] = 385;
  1715. SetPlayerCheckpoint(i, 951.0085,1736.6096,8.6484,5.0);
  1716. }
  1717. case 8:
  1718. {
  1719. CP[i] = 385;
  1720. SetPlayerCheckpoint(i, 1065.9196,-330.0515,73.9922,5.0);
  1721. }
  1722. case 9:
  1723. {
  1724. CP[i] = 385;
  1725. SetPlayerCheckpoint(i, 1240.1818,-1828.5950,13.4059,5.0);
  1726. }
  1727. case 10:
  1728. {
  1729. CP[i] = 385;
  1730. SetPlayerCheckpoint(i, 912.7196,-1254.0244,15.6798,5.0);
  1731. }
  1732. case 11:
  1733. {
  1734. CP[i] = 385;
  1735. SetPlayerCheckpoint(i, 2495.2285,-1683.1901,13.3388,5.0);
  1736. }
  1737. case 12:
  1738. {
  1739. CP[i] = 385;
  1740. SetPlayerCheckpoint(i, 2185.9377,1676.9407,11.0960,5.0);
  1741. }
  1742. case 13:
  1743. {
  1744. CP[i] = 385;
  1745. SetPlayerCheckpoint(i, 2228.8982,-1159.3516,25.7988,5.0);
  1746. }
  1747. case 14:
  1748. {
  1749. CP[i] = 385;
  1750. SetPlayerCheckpoint(i, 725.6159,-1446.5382,17.6953,5.0);
  1751. }
  1752. case 15:
  1753. {
  1754. CP[i] = 385;
  1755. SetPlayerCheckpoint(i, 2023.5360,1007.3212,10.8203,5.0);
  1756. }
  1757. case 16:
  1758. {
  1759. CP[i] = 385;
  1760. SetPlayerCheckpoint(i, 1131.9651,-2036.8180,69.0078,5.0);
  1761. }
  1762. case 17:
  1763. {
  1764. CP[i] = 385;
  1765. SetPlayerCheckpoint(i, 1773.3737,-2030.0369,13.4950,5.0);
  1766. }
  1767. case 18:
  1768. {
  1769. CP[i] = 385;
  1770. SetPlayerCheckpoint(i, 1481.0828,-1764.4248,18.7958,5.0);
  1771. }
  1772. }
  1773. return 1;
  1774. }
  1775. else
  1776. {
  1777. GetPlayerPos(PlayerToFind[i], X,Y,Z);
  1778. SetPlayerCheckpoint(i, X,Y,Z, 6);
  1779. }
  1780. //new Float:X,Float:Y,Float:Z;
  1781. //GetPlayerPos(PlayerToFind[i], X, Y, Z);
  1782. //SetPlayerCheckpoint(i, X, Y, Z, 5);
  1783. }
  1784. }
  1785. }
  1786. if(MedicCallTime[i] > 0)
  1787. {
  1788. if(MedicCallTime[i] == 30) { MedicCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
  1789. else
  1790. {
  1791. format(string, sizeof(string), "%d", 30 - MedicCallTime[i]);
  1792. GameTextForPlayer(i, string, 1500, 6);
  1793. MedicCallTime[i] += 1;
  1794. }
  1795. }
  1796. if(RemorcariCallTime[i] > 0)
  1797. {
  1798. if(RemorcariCallTime[i] == 30) { RemorcariCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
  1799. else
  1800. {
  1801. format(string, sizeof(string), "%d", 30 - RemorcariCallTime[i]);
  1802. GameTextForPlayer(i, string, 1500, 6);
  1803. RemorcariCallTime[i] += 1;
  1804. }
  1805. }
  1806. if(MechanicCallTime[i] > 0)
  1807. {
  1808. if(MechanicCallTime[i] == 30) { MechanicCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
  1809. else
  1810. {
  1811. format(string, sizeof(string), "%d", 30 - MechanicCallTime[i]);
  1812. GameTextForPlayer(i, string, 1500, 6);
  1813. MechanicCallTime[i] += 1;
  1814. }
  1815. }
  1816. if(PlayerCuffed[i] == 1)
  1817. {
  1818. if(PlayerCuffedTime[i] <= 0)
  1819. {
  1820. TogglePlayerControllable(i, 1);
  1821. PlayerCuffed[i] = 0;
  1822. PlayerCuffedTime[i] = 0;
  1823. PlayerTazeTime[i] = 1;
  1824. }
  1825. else
  1826. {
  1827. PlayerCuffedTime[i] -= 1;
  1828. }
  1829. }
  1830. if(PlayerCuffed[i] == 2)
  1831. {
  1832. if(PlayerCuffedTime[i] <= 0)
  1833. {
  1834. GameTextForPlayer(i, "~r~Ai rupt catusele, esti liber!", 2500, 3);
  1835. TogglePlayerControllable(i, 1);
  1836. PlayerCuffed[i] = 0;
  1837. PlayerCuffedTime[i] = 0;
  1838. }
  1839. else
  1840. {
  1841. PlayerCuffedTime[i] -= 1;
  1842. }
  1843. }
  1844. /* if(PlayerToPoint(20, i,2015.4500,1017.0900,996.8750))
  1845. {//Four Dragons
  1846. GameTextForPlayer(i, "~r~Closed", 5000, 1);
  1847. SetPlayerInterior(i, 0);
  1848. SetPlayerPosEx(i,1022.599975,-1123.699951,23.799999);
  1849. }
  1850. else if(PlayerToPoint(20, i,2233.9099,1710.7300,1011.2987))
  1851. {//Caligula
  1852. GameTextForPlayer(i, "~r~Closed", 5000, 1);
  1853. SetPlayerInterior(i, 0);
  1854. SetPlayerPosEx(i,1022.599975,-1123.699951,23.799999);
  1855. }
  1856. else if(PlayerToPoint(10, i,2265.7900,1619.5800,1090.4453))
  1857. {//Caligula Roof 1
  1858. GameTextForPlayer(i, "~r~Closed", 5000, 1);
  1859. SetPlayerInterior(i, 0);
  1860. SetPlayerPosEx(i,1022.599975,-1123.699951,23.799999);
  1861. }
  1862. else if(PlayerToPoint(10, i,2265.7800,1675.9301,1090.4453))
  1863. {//Caligula Roof 2
  1864. GameTextForPlayer(i, "~r~Closed", 5000, 1);
  1865. SetPlayerInterior(i, 0);
  1866. SetPlayerPosEx(i,1022.599975,-1123.699951,23.799999);
  1867. }
  1868. else if(PlayerToPoint(20, i,1133.0699,-9.5731,1000.6797))
  1869. {//West Casino place
  1870. GameTextForPlayer(i, "~r~Closed", 5000, 1);
  1871. SetPlayerInterior(i, 0);
  1872. SetPlayerPosEx(i,1022.599975,-1123.699951,23.799999);
  1873. } */
  1874. }
  1875. return 1;
  1876. }
Advertisement
Add Comment
Please, Sign In to add comment