Guest User

Untitled

a guest
Mar 12th, 2012
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 94.22 KB | None | 0 0
  1. new CivMalePeds[54][1] = {
  2. {2},
  3. {47},
  4. {48},
  5. {50},
  6. {58},
  7. {60},
  8. {68},
  9. {72},
  10. {73},
  11. {80},
  12. {81},
  13. {82},
  14. {83},
  15. {95},
  16. {100},
  17. {101},
  18. {102},
  19. {103},
  20. {104},
  21. {108},
  22. {109},
  23. {110},
  24. {121},
  25. {122},
  26. {123},
  27. {135},
  28. {142},
  29. {143},
  30. {144},
  31. {146},
  32. {153},
  33. {154},
  34. {155},
  35. {156},
  36. {158},
  37. {159},
  38. {160},
  39. {161},
  40. {170},
  41. {180},
  42. {189},
  43. {202},
  44. {203},
  45. {204},
  46. {258},
  47. {259},
  48. {260},
  49. {293},
  50. {295},
  51. {296},
  52. {297},
  53. {61},
  54. {255},
  55. {253}
  56. };
  57.  
  58. new CivFemalePeds[33][1] = {
  59. 55},
  60. {56},
  61. {63},
  62. {69},
  63. {76},
  64. {85},
  65. {91},
  66. {93},
  67. {131},
  68. {141},
  69. {148},
  70. {150},
  71. {151},
  72. {152},
  73. {157},
  74. {169},
  75. {172},
  76. {190},
  77. {192},
  78. {193},
  79. {194},
  80. {195},
  81. {198},
  82. {201},
  83. {214},
  84. {216},
  85. {219},
  86. {225},
  87. {233},
  88. {237},
  89. {251},
  90. {263},
  91. {298}
  92. };
  93.  
  94. new RandomMSG[][] =
  95. {
  96. "Zaglavljeni ste? Nema admina online ili su zauzeti? Kucajte /stuck i odglavite se",
  97. "Treba vam pomoc admina? Kucajte /askq [text] i pitajte ih!",
  98. "Videli ste citera? Kucajte /report [id] [razlog] i prijavite ga adminu!",
  99. "Niko nije rodjen inteligentan, ako vas neko provocira prijavite ga adminu.",
  100. "Kucajte /calllist da vidite listu glavnih pozivnih brojeva.",
  101. "U nevolji ste? Pozovite policiju! (/call 912)",
  102. "Uvek postujte odluku admina, ne prepirite se sa njima, to ce samo pogorsati situaciju!",
  103. "Kucajte /help da vidite listu komandi koje su dostupne za vas.",
  104. "Platu i Respect poene dobijate na svakih 1h, ako igrate dovoljno dugo.",
  105. "Uvek mozete da procitate pravila, kucajte /pravila.",
  106. "Videli ste bug? Prijavite ga, kucajte /bug"
  107. };
  108.  
  109. new RandomMessages[][] =
  110. {
  111. "Dobrodosli na UnderGround RolePlay Server! Server jos uvek u izradi"
  112.  
  113. };
  114.  
  115. new RandomFemaleSkins[][] =
  116. {
  117. {11}
  118. };
  119.  
  120.  
  121. new RandomMaleSkins[][] =
  122. {
  123. {29}
  124. }
  125.  
  126.  
  127. new Peds[199][1] = {
  128. {7},
  129. /*{288},//TEAM_ADMIN
  130. {286},{287},{228},{113},{120},{147},{294},{227},{61},{171},*/
  131. {247},//CIVILIANS DOWN HERE
  132. {248},{100},{256},{263},{262},{261},{260},{259},{258},{257},{256},{255},
  133. {253},{252},{251},{246},{245},{244},{243},{242},{241},{239},
  134. {238},{237},{236},{235},{234},{233},{232},{231},{230},{229},
  135. {226},{225},{224},{223},{222},{221},{220},{219},{218},
  136. {217},{216},{215},{214},{213},{212},{211},{210},{209},
  137. {207},{206},{205},{204},{203},{202},{201},{200},{199},{198},{197},{196},
  138. {195},{194},{193},{192},{191},{190},{189},{185},{184},{183},
  139. {182},{181},{180},{178},{176},{172},{170},{168},{167},{162},
  140. {161},{160},{159},{158},{157},{156},{155},{154},{153},{152},{151},
  141. {146},{145},{144},{143},{142},{141},{140},{139},{138},{137},{136},{135},
  142. {134},{133},{132},{131},{130},{129},{128},{254},{99},{97},{96},{95},{94},
  143. {92},{90},{89},{88},{87},{85},{84},{83},{82},{81},{80},{79},{78},{77},{76},
  144. {75},{73},{72},{69},{68},{67},{66},{64},{63},{62},{58},{57},{56},{55},
  145. {54},{53},{52},{51},{50},{49},{45},{44},{43},{41},{39},{38},{37},{36},{35},
  146. {34},{33},{32},{31},{30},{29},{28},{27},{26},{25},{24},{23},{22},{21},{20},
  147. {19},{18},{17},{16},{15},{14},{13},{12},{11},{10},{1},{2},
  148. {290},//ROSE
  149. {291},//PAUL
  150. {293},//OGLOC
  151. {187},
  152. {296},//JIZZY
  153. {297},//MADDOGG
  154. {298},//CAT
  155. {299}//ZERO
  156. };
  157.  
  158.  
  159. //------------------------------------------------------------------------------------------------------
  160.  
  161. main()
  162. {
  163. print(" ");
  164. print(" Raven's Roleplay ");
  165. print("_________________________________________");
  166. print(" By: Robin Hellman Aka Gta-Roleplay ");
  167. print(" ");
  168. }
  169.  
  170.  
  171. //---------------------------------------------------------------------------------------------------------
  172.  
  173.  
  174.  
  175. public SearchingHit(playerid)
  176. {
  177. new string[128];
  178. new giveplayer[MAX_PLAYER_NAME];
  179. new searchhit = 0;
  180. for(new i=0; i<MAX_PLAYERS; i++)
  181. {
  182. if(IsPlayerConnected(i))
  183. {
  184. if(searchhit == 0)
  185. {
  186. if(PlayerInfo[i][pHeadValue] > 0 && GotHit[i] == 0 && PlayerInfo[i][pMember] != 8)
  187. {
  188. GetPlayerName(i, giveplayer, sizeof(giveplayer));
  189. searchhit = 1;
  190. hitfound = 1;
  191. hitid = i;
  192. for(new k=0; k<MAX_PLAYERS; k++)
  193. {
  194. if(IsPlayerConnected(k))
  195. {
  196. if(PlayerInfo[k][pMember] == 8 || PlayerInfo[k][pLeader] == 8)
  197. {
  198. SendClientMessage(k, COLOR_WHITE, "|__________________ Hitman Agency News __________________|");
  199. SendClientMessage(k, COLOR_DBLUE, "*** Incoming Message: A Hit has become available. ***");
  200. format(string, sizeof(string), "Person: %s ID: %d Value: $%d", giveplayer, i, PlayerInfo[i][pHeadValue]);
  201. SendClientMessage(k, COLOR_DBLUE, string);
  202. SendClientMessage(k, COLOR_YELLOW, "Use Givehit hitmanid, to assign the Contract to one of the Hitmans.");
  203. SendClientMessage(k, COLOR_WHITE, "|________________________________________________________|");
  204. }
  205. }
  206. }
  207. return 0;
  208. }
  209. }
  210. }
  211. }
  212. if(searchhit == 0)
  213. {
  214. SendClientMessage(playerid, COLOR_GREY, " No Contracts available !");
  215. }
  216. return 0;
  217. }
  218.  
  219.  
  220. public ExtortionBiz(bizid, money)
  221. {
  222. new string[128];
  223. format(string, sizeof(string), "No-one");
  224. if(strcmp(BizzInfo[bizid][bExtortion],string, true ) == 0 )
  225. {
  226. return 0;
  227. }
  228. for(new i = 0; i < MAX_PLAYERS; i++)
  229. {
  230. if(IsPlayerConnected(i))
  231. {
  232. new name[MAX_PLAYER_NAME];
  233. new wstring[MAX_PLAYER_NAME];
  234. GetPlayerName(i, name, sizeof(name));
  235. format(string, sizeof(string), "%s", name);
  236. strmid(wstring, string, 0, strlen(string), 255);
  237. if(strcmp(BizzInfo[bizid][bExtortion] ,wstring, true ) == 0 )
  238. {
  239. new value = money / 100;
  240. value = value * 10;
  241. SafeGivePlayerMoney(i, value);
  242. BizzInfo[bizid][bTill] -= value;
  243. }
  244. }
  245. }
  246. return 1;
  247. }
  248.  
  249. public ExtortionSBiz(bizid, money)
  250. {
  251. new string[128];
  252. format(string, sizeof(string), "No-one");
  253. if(strcmp(SBizzInfo[bizid][sbExtortion],string, true ) == 0 )
  254. {
  255. return 0;
  256. }
  257. for(new i = 0; i < MAX_PLAYERS; i++)
  258. {
  259. if(IsPlayerConnected(i))
  260. {
  261. new name[MAX_PLAYER_NAME];
  262. new wstring[MAX_PLAYER_NAME];
  263. GetPlayerName(i, name, sizeof(name));
  264. format(string, sizeof(string), "%s", name);
  265. strmid(wstring, string, 0, strlen(string), 255);
  266. if(strcmp(SBizzInfo[bizid][sbExtortion] ,wstring, true ) == 0 )
  267. {
  268. new value = money / 100;
  269. value = value * 10;
  270. SafeGivePlayerMoney(i, value);
  271. SBizzInfo[bizid][sbTill] -= value;
  272. }
  273. }
  274. }
  275. return 1;
  276. }
  277.  
  278. stock CommandMsg(playerid)
  279. {
  280. if (IsPlayerConnected(playerid))
  281. {
  282. SendClientMessage(playerid, COLOR_WHITE, "{FF0000}SERVER{FFFFFF}: {00FF00}Nepoznata komanda{FFFFFF}!");
  283. }
  284. return 1;
  285. }
  286.  
  287. stock PlayerName(playerid)
  288. {
  289. new name[24];
  290. GetPlayerName(playerid, name, 24);
  291. return name;
  292. }
  293.  
  294. public DollahScoreUpdate()
  295. {
  296. new LevScore;
  297. for(new i=0; i<MAX_PLAYERS; i++)
  298. {
  299. if(IsPlayerConnected(i))
  300. {
  301. LevScore = PlayerInfo[i][pLevel];
  302. SetPlayerScore(i, LevScore);
  303. }
  304. }
  305. return 1;
  306. }
  307.  
  308. LoopingAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
  309. {
  310. gPlayerUsingLoopingAnim[playerid] = 1;
  311. ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
  312. TextDrawShowForPlayer(playerid,txtAnimHelper);
  313. }
  314.  
  315. public Encrypt(string[])
  316. {
  317. for(new x=0; x < strlen(string); x++)
  318. {
  319. string[x] += (3^x) * (x % 15);
  320. if(string[x] > (0xff))
  321. {
  322. string[x] -= 256;
  323. }
  324. }
  325. return 1;
  326. }
  327.  
  328. stock right(source[], len)
  329. {
  330. new retval[MAX_STRING], srclen;
  331. srclen = strlen(source);
  332. strmid(retval, source, srclen - len, srclen, MAX_STRING);
  333. return retval;
  334. }
  335.  
  336. stock sscanf(string[], format[], {Float,_}:...)
  337. {
  338. new name[MAX_PLAYER_NAME];
  339. #if defined isnull
  340. if (isnull(string))
  341. #else
  342. if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
  343. #endif
  344. {
  345. return format[0];
  346. }
  347. #pragma tabsize 4
  348. new
  349. formatPos = 0,
  350. stringPos = 0,
  351. paramPos = 2,
  352. paramCount = numargs(),
  353. delim = ' ';
  354. while (string[stringPos] && string[stringPos] <= ' ')
  355. {
  356. stringPos++;
  357. }
  358. while (paramPos < paramCount && string[stringPos])
  359. {
  360. switch (format[formatPos++])
  361. {
  362. case '\0':
  363. {
  364. return 0;
  365. }
  366. case 'i', 'd':
  367. {
  368. new
  369. neg = 1,
  370. num = 0,
  371. ch = string[stringPos];
  372. if (ch == '-')
  373. {
  374. neg = -1;
  375. ch = string[++stringPos];
  376. }
  377. do
  378. {
  379. stringPos++;
  380. if ('0' <= ch <= '9')
  381. {
  382. num = (num * 10) + (ch - '0');
  383. }
  384. else
  385. {
  386. return -1;
  387. }
  388. }
  389. while ((ch = string[stringPos]) > ' ' && ch != delim);
  390. setarg(paramPos, 0, num * neg);
  391. }
  392. case 'h', 'x':
  393. {
  394. new
  395. num = 0,
  396. ch = string[stringPos];
  397. do
  398. {
  399. stringPos++;
  400. switch (ch)
  401. {
  402. case 'x', 'X':
  403. {
  404. num = 0;
  405. continue;
  406. }
  407. case '0' .. '9':
  408. {
  409. num = (num << 4) | (ch - '0');
  410. }
  411. case 'a' .. 'f':
  412. {
  413. num = (num << 4) | (ch - ('a' - 10));
  414. }
  415. case 'A' .. 'F':
  416. {
  417. num = (num << 4) | (ch - ('A' - 10));
  418. }
  419. default:
  420. {
  421. return -1;
  422. }
  423. }
  424. }
  425. while ((ch = string[stringPos]) > ' ' && ch != delim);
  426. setarg(paramPos, 0, num);
  427. }
  428. case 'c':
  429. {
  430. setarg(paramPos, 0, string[stringPos++]);
  431. }
  432. case 'f':
  433. {
  434. setarg(paramPos, 0, _:floatstr(string[stringPos]));
  435. }
  436. case 'p':
  437. {
  438. delim = format[formatPos++];
  439. continue;
  440. }
  441. case '\'':
  442. {
  443. new
  444. end = formatPos - 1,
  445. ch;
  446. while ((ch = format[++end]) && ch != '\'') {}
  447. if (!ch)
  448. {
  449. return -1;
  450. }
  451. format[end] = '\0';
  452. if ((ch = strfind(string, format[formatPos], false, stringPos)) == -1)
  453. {
  454. if (format[end + 1])
  455. {
  456. return -1;
  457. }
  458. return 0;
  459. }
  460. format[end] = '\'';
  461. stringPos = ch + (end - formatPos);
  462. formatPos = end + 1;
  463. }
  464. case 'u':
  465. {
  466. new
  467. end = stringPos - 1,
  468. id = 0,
  469. bool:num = true,
  470. ch;
  471. while ((ch = string[++end]) && ch != delim)
  472. {
  473. if (num)
  474. {
  475. if ('0' <= ch <= '9')
  476. {
  477. id = (id * 10) + (ch - '0');
  478. }
  479. else
  480. {
  481. num = false;
  482. }
  483. }
  484. }
  485. if (num && IsPlayerConnected(id))
  486. {
  487. setarg(paramPos, 0, id);
  488. }
  489. else
  490. {
  491. #if !defined foreach
  492. #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
  493. #define __SSCANF_FOREACH__
  494. #endif
  495. string[end] = '\0';
  496. num = false;
  497. id = end - stringPos;
  498. foreach (Player, playerid)
  499. {
  500. GetPlayerName(playerid, name, sizeof (name));
  501. if (!strcmp(name, string[stringPos], true, id))
  502. {
  503. setarg(paramPos, 0, playerid);
  504. num = true;
  505. break;
  506. }
  507. }
  508. if (!num)
  509. {
  510. setarg(paramPos, 0, INVALID_PLAYER_ID);
  511. }
  512. string[end] = ch;
  513. #if defined __SSCANF_FOREACH__
  514. #undef foreach
  515. #undef __SSCANF_FOREACH__
  516. #endif
  517. }
  518. stringPos = end;
  519. }
  520. case 's', 'z':
  521. {
  522. new
  523. i = 0,
  524. ch;
  525. if (format[formatPos])
  526. {
  527. while ((ch = string[stringPos++]) && ch != delim)
  528. {
  529. setarg(paramPos, i++, ch);
  530. }
  531. if (!i)
  532. {
  533. return -1;
  534. }
  535. }
  536. else
  537. {
  538. while ((ch = string[stringPos++]))
  539. {
  540. setarg(paramPos, i++, ch);
  541. }
  542. }
  543. stringPos--;
  544. setarg(paramPos, i, '\0');
  545. }
  546. default:
  547. {
  548. continue;
  549. }
  550. }
  551. while (string[stringPos] && string[stringPos] != delim && string[stringPos] > ' ')
  552. {
  553. stringPos++;
  554. }
  555. while (string[stringPos] && (string[stringPos] == delim || string[stringPos] <= ' '))
  556. {
  557. stringPos++;
  558. }
  559. paramPos++;
  560. }
  561. do
  562. {
  563. if ((delim = format[formatPos++]) > ' ')
  564. {
  565. if (delim == '\'')
  566. {
  567. while ((delim = format[formatPos++]) && delim != '\'') {}
  568. }
  569. else if (delim != 'z')
  570. {
  571. return delim;
  572. }
  573. }
  574. }
  575. while (delim > ' ');
  576. return 0;
  577. }
  578.  
  579. public Spectator()
  580. {
  581. new string[350];
  582. for(new i = 0; i < MAX_PLAYERS; i++)
  583. {
  584. if(IsPlayerConnected(i))
  585. {
  586. if(Spectate[i] != 255)
  587. {
  588. new targetid = Spectate[i];
  589. if(IsPlayerConnected(targetid))
  590. {
  591. if(PlayerInfo[i][pAdmin] >= 1)
  592. {
  593. new Float:health,Float:armour,Float:health2;
  594. new name[MAX_PLAYER_NAME];
  595. new money = GetPlayerMoney(targetid);
  596. new carid = GetPlayerVehicleID(targetid);
  597. new kmh = GetPlayerSpeed(targetid, true);
  598. new bankmoney = PlayerInfo[targetid][pAccount];
  599. GetPlayerName(targetid, name, sizeof(name));
  600. GetPlayerHealth(targetid, health);
  601. GetPlayerArmour(targetid, armour);
  602. GetVehicleHealth(carid, health2);
  603. if(!IsPlayerInAnyVehicle(targetid))
  604. {
  605. format(string, sizeof(string),"~p~- ~h~%s (ID: %d) ~p~-~n~~n~~n~ ~b~Health: ~w~%.1f ~g~:-: ~b~Armour: ~w~%.1f ~n~ ~b~Money: ~w~$%d ~g~:-: ~b~Bank: ~w~$%d",name,targetid,health,armour,money,bankmoney);
  606. TextDrawSetString(Textdraw54[i],string);
  607. }
  608. else
  609. {
  610. format(string, sizeof(string),"~p~- ~h~%s (ID: %d) ~p~-~n~~n~~n~ ~b~Health: ~w~%.1f ~g~:-: ~b~Armour: ~w~%.1f ~n~ ~b~Money: ~w~$%d ~g~:-: ~b~Bank: ~w~$%d ~n~~n~~g~---------------------------------------------------~n~~n~ ~b~Vehicle ID: ~w~%d ~b~Vehicle HP: ~w~%.1f ~n~~n~~b~Speed: ~w~%d",name,targetid,health,armour,money,bankmoney,carid,health2,kmh);
  611. TextDrawSetString(Textdraw54[i],string);
  612. }
  613. }
  614. if(GetPlayerInterior(targetid) > 0)
  615. {
  616. SafeSetPlayerInterior(i,GetPlayerInterior(targetid));
  617. }
  618. if(GetPlayerVirtualWorld(targetid) > 0)
  619. {
  620. SetPlayerVirtualWorld(i,GetPlayerVirtualWorld(targetid));
  621. }
  622. }//Targetid connected
  623. }
  624. }
  625. }
  626. }
  627.  
  628. //------------------------------------------------------------------------------------------------------
  629.  
  630. IsKeyJustDown(key, newkeys, oldkeys)
  631. {
  632. if((newkeys & key) && !(oldkeys & key)) return 1;
  633. return 0;
  634. }
  635.  
  636. OnePlayAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
  637. {
  638. if (gPlayerUsingLoopingAnim[playerid] == 1) TextDrawHideForPlayer(playerid,txtAnimHelper);
  639. ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
  640. animation[playerid]++;
  641. }
  642.  
  643. StopLoopingAnim(playerid)
  644. {
  645. gPlayerUsingLoopingAnim[playerid] = 0;
  646. ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
  647. }
  648.  
  649. PreloadAnimLib(playerid, animlib[])
  650. {
  651. ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
  652. }
  653.  
  654.  
  655. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  656. {
  657. new string[128];
  658. new vehicle[24];
  659. GetVehicleName(vehicleid, vehicle, sizeof(vehicle));
  660. for(new i=0; i < MAX_PLAYERS; i++)
  661. {
  662. if(IsPlayerConnected(i))
  663. {
  664. if(Spectate[i] != 255)
  665. {
  666. PlayerSpectateVehicle(i,vehicleid);
  667. }
  668. }
  669. }
  670. if(IsAnOwnableCar(vehicleid))
  671. {
  672. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}%s",vehicle, vehicleid, CarInfo[vehicleid][cOwner]);
  673. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  674. }
  675. else if(IsASalesVehicle(vehicleid))
  676. {
  677. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}Dealership",vehicle, vehicleid);
  678. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  679. format(string,sizeof(string),"Type /v buy to buy this car for $%d",GetVehiclePrice(vehicleid));
  680. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  681. }
  682. else
  683. {
  684. if(IsAGangCar(vehicleid))
  685. {
  686. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}Los Sureños",vehicle, vehicleid);
  687. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  688. }
  689. else if(IsAGangCar2(vehicleid))
  690. {
  691. format(string,sizeof(string),"Y{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}Le Signatra",vehicle, vehicleid);
  692. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  693. }
  694. else if(IsAGangCar3(vehicleid))
  695. {
  696. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}Yamaguchi",vehicle, vehicleid);
  697. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  698. }
  699. else if(IsAGangCar4(vehicleid))
  700. {
  701. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}LCN",vehicle, vehicleid);
  702. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  703. }
  704. else if(IsAGangCar5(vehicleid))
  705. {
  706. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}La Vice",vehicle, vehicleid);
  707. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  708. }
  709. else if(IsAGangCar6(vehicleid))
  710. {
  711. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}Sons of Anarchy",vehicle, vehicleid);
  712. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  713. }
  714. else if(IsAGangCar7(vehicleid))
  715. {
  716. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}Hitmen",vehicle, vehicleid);
  717. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  718. }
  719. else if(IsACopCar(vehicleid))
  720. {
  721. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}LSPD",vehicle, vehicleid);
  722. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  723. }
  724. else if(IsAnFbiCar(vehicleid))
  725. {
  726. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}FBI",vehicle, vehicleid);
  727. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  728. }
  729. else if(IsNgCar(vehicleid))
  730. {
  731. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}National Guard",vehicle, vehicleid);
  732. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  733. }
  734. else if(IsASwatCar(vehicleid))
  735. {
  736. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}S.W.A.T",vehicle, vehicleid);
  737. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  738. }
  739. else if(IsATacticalCar(vehicleid))
  740. {
  741. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}Tactical Team",vehicle, vehicleid);
  742. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  743. }
  744. else if(IsASpecialFCar(vehicleid))
  745. {
  746. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}Special Forces",vehicle, vehicleid);
  747. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  748. }
  749. else if(IsAFiremenCar(vehicleid))
  750. {
  751. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}LSFD",vehicle, vehicleid);
  752. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  753. }
  754. else if(IsAnAmbulance(vehicleid))
  755. {
  756. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}LSMD",vehicle, vehicleid);
  757. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  758. }
  759. else
  760. {
  761. format(string,sizeof(string),"{FFFFFF}Ulazite u {00FF00}%s {FFFFFF}(%d) {00FF00}Vlasnik{FFFFFF}: {FF0000}Drzava",vehicle, vehicleid);
  762. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  763. }
  764. }
  765. if(Gps[playerid] == 1)
  766. {
  767. TextDrawShowForPlayer(playerid, Textdraw53[playerid]);
  768. }
  769. if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
  770. {
  771. if (GetVehicleModel(vehicleid) == 520) // Hydra
  772. {
  773. if(IsACop(playerid) && PlayerInfo[playerid][pRank] >= 7 || IsSpecial(playerid) || PlayerInfo[playerid][pAdmin] >= 5 && PlayerInfo[playerid][pAdminDuty] == 1 || PlayerInfo[playerid][pHydraR] == 1) { }
  774. else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Only Higher Ranked Law Enforcement Units May use This!!"); new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X,Y,Z); SafeSetPlayerPos(playerid, X,Y,Z); }
  775. }
  776. if (GetVehicleModel(vehicleid) == 425) // Hunter
  777. {
  778. if(IsACop(playerid) && PlayerInfo[playerid][pRank] >= 7 || IsSpecial(playerid) || PlayerInfo[playerid][pAdmin] >= 5 && PlayerInfo[playerid][pAdminDuty] == 1 || PlayerInfo[playerid][pHunterR] == 1) { }
  779. else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Only Higher Ranked Law Enforcement Units May use This!!"); new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X,Y,Z); SafeSetPlayerPos(playerid, X,Y,Z); }
  780. }
  781. if (GetVehicleModel(vehicleid) == 432) // Rhino
  782. {
  783. if(IsACop(playerid) && PlayerInfo[playerid][pRank] >= 7 || IsSpecial(playerid) || PlayerInfo[playerid][pAdmin] >= 5 && PlayerInfo[playerid][pAdminDuty] == 1 || PlayerInfo[playerid][pRhinoR] == 1) { }
  784. else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Only Higher Ranked Law Enforcement Units May use This!!"); new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X,Y,Z); SafeSetPlayerPos(playerid, X,Y,Z); }
  785. }
  786. if (GetVehicleModel(vehicleid) == 430) // Predator
  787. {
  788. if(IsACop(playerid) && PlayerInfo[playerid][pRank] >= 7 || IsSpecial(playerid) || PlayerInfo[playerid][pAdmin] >= 5 && PlayerInfo[playerid][pAdminDuty] == 1 || PlayerInfo[playerid][pPredR] == 1) { }
  789. else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Only Higher Ranked Law Enforcement Units May use This!!"); new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X,Y,Z); SafeSetPlayerPos(playerid, X,Y,Z); }
  790. }
  791. if(IsADeveloperCar(vehicleid))
  792. {
  793. if(PlayerInfo[playerid][pAdmin] >= 6) { }
  794. else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "** You must be a Developer to use this!"); new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X,Y,Z); SafeSetPlayerPos(playerid, X,Y,Z); }
  795. }
  796. }
  797. return 1;
  798. }
  799.  
  800. public IsAnInstructor(playerid)
  801. {
  802. if(IsPlayerConnected(playerid))
  803. {
  804. new leader = PlayerInfo[playerid][pLeader];
  805. new member = PlayerInfo[playerid][pMember];
  806. if(member==11)
  807. {
  808. return 1;
  809. }
  810. if(leader==11)
  811. {
  812. return 1;
  813. }
  814. }
  815. return 0;
  816. }
  817.  
  818. public IsAMember(playerid)
  819. {
  820. if(IsPlayerConnected(playerid))
  821. {
  822. new leader = PlayerInfo[playerid][pLeader];
  823. new member = PlayerInfo[playerid][pMember];
  824. if(member==5 || member==6 || member==8 || member==14 || member==15 || member==16)
  825. {
  826. return 1;
  827. }
  828. if(leader==5 || leader==6 || leader==8 || leader==14 || leader==15 || leader==16)
  829. {
  830. return 1;
  831. }
  832. }
  833. return 0;
  834. }
  835.  
  836. public IsACop(playerid)
  837. {
  838. if(IsPlayerConnected(playerid))
  839. {
  840. new leader = PlayerInfo[playerid][pLeader];
  841. new member = PlayerInfo[playerid][pMember];
  842. if(member==1 || member==2 || member==3)
  843. {
  844. return 1;
  845. }
  846. else if(leader==1 || leader==2 || leader==3)
  847. {
  848. return 1;
  849. }
  850. }
  851. return 0;
  852. }
  853.  
  854. public IsAFreecop(playerid)
  855. {
  856. if(IsPlayerConnected(playerid))
  857. {
  858. new leader = PlayerInfo[playerid][pLeader];
  859. new member = PlayerInfo[playerid][pMember];
  860. if((member == 0 && leader == 0) && PlayerInfo[playerid][pCopLic] == 1)
  861. {
  862. return 1;
  863. }
  864. }
  865. return 0;
  866. }
  867.  
  868. public IsAFiremen(playerid)
  869. {
  870. if(IsPlayerConnected(playerid))
  871. {
  872. new leader = PlayerInfo[playerid][pLeader];
  873. new member = PlayerInfo[playerid][pMember];
  874. if(member==12)
  875. {
  876. return 1;
  877. }
  878. else if(leader==12)
  879. {
  880. return 1;
  881. }
  882. }
  883. return 0;
  884. }
  885.  
  886. public IsAMedic(playerid)
  887. {
  888. if(IsPlayerConnected(playerid))
  889. {
  890. new leader = PlayerInfo[playerid][pLeader];
  891. new member = PlayerInfo[playerid][pMember];
  892. if(member==4)
  893. {
  894. return 1;
  895. }
  896. else if(leader==4)
  897. {
  898. return 1;
  899. }
  900. }
  901. return 0;
  902. }
  903.  
  904. public IsSpecial(playerid)
  905. {
  906. if(IsPlayerConnected(playerid))
  907. {
  908. new swat = PlayerInfo[playerid][pSwat];
  909. new specialf = PlayerInfo[playerid][pSpecialF];
  910. new tactical = PlayerInfo[playerid][pTactical];
  911. if(tactical >= 3 || swat >= 3 || specialf >= 3)
  912. {
  913. return 1;
  914. }
  915. }
  916. return 0;
  917. }
  918.  
  919. public IsAPDMember(playerid)
  920. {
  921. if(IsPlayerConnected(playerid))
  922. {
  923. new leader = PlayerInfo[playerid][pLeader];
  924. new member = PlayerInfo[playerid][pMember];
  925. if(member==1)
  926. {
  927. return 1;
  928. }
  929. else if(leader==1)
  930. {
  931. return 1;
  932. }
  933. }
  934. return 0;
  935. }
  936.  
  937. public IsAnFbi(playerid)
  938. {
  939. if(IsPlayerConnected(playerid))
  940. {
  941. new leader = PlayerInfo[playerid][pLeader];
  942. new member = PlayerInfo[playerid][pMember];
  943. if(member==2)
  944. {
  945. return 1;
  946. }
  947. else if(leader==2)
  948. {
  949. return 1;
  950. }
  951. }
  952. return 0;
  953. }
  954. public IsAnNg(playerid)
  955. {
  956. if(IsPlayerConnected(playerid))
  957. {
  958. new leader = PlayerInfo[playerid][pLeader];
  959. new member = PlayerInfo[playerid][pMember];
  960. if(member==3)
  961. {
  962. return 1;
  963. }
  964. else if(leader==3)
  965. {
  966. return 1;
  967. }
  968. }
  969. return 0;
  970. }
  971. public IsASwat(playerid)
  972. {
  973. if(IsPlayerConnected(playerid))
  974. {
  975. new swat = PlayerInfo[playerid][pSwat];
  976. if(swat>=1)
  977. {
  978. return 1;
  979. }
  980. }
  981. return 0;
  982. }
  983. public IsATactical(playerid)
  984. {
  985. if(IsPlayerConnected(playerid))
  986. {
  987. new tactical = PlayerInfo[playerid][pTactical];
  988. if(tactical>=1)
  989. {
  990. return 1;
  991. }
  992. }
  993. return 0;
  994. }
  995.  
  996. public IsARentableVeh(carid)
  997. {
  998. for(new i = 0; i < sizeof(Rentveh); i++)
  999. {
  1000. if(carid == Rentveh[i]) return 1;
  1001. }
  1002. return 0;
  1003. }
  1004.  
  1005. public IsAnOwnableCar(carid)
  1006. {
  1007. for(new i = 0; i < sizeof(ownedcar); i++)
  1008. {
  1009. if(carid == ownedcar[i]) return 1;
  1010. }
  1011. return 0;
  1012. }
  1013.  
  1014. public IsACreatedCar(carid)
  1015. {
  1016. for(new i = 0; i < sizeof(createdcar); i++)
  1017. {
  1018. if(carid == createdcar[i]) return 1;
  1019. }
  1020. return 0;
  1021. }
  1022.  
  1023. public IsAtDealership(playerid)
  1024. {
  1025. if(IsPlayerInRangeOfPoint(playerid, 125, 2128.0864,-1135.3912,25.5855) || IsPlayerInRangeOfPoint(playerid, 50,537.3366,-1293.2140,17.2422) || IsPlayerInRangeOfPoint(playerid, 75, 2781.0132,-1613.7152,10.9219) || IsPlayerInRangeOfPoint(playerid, 75, 1756.2378,-2546.2749,13.5469)) return 1;
  1026. else if(IsPlayerInRangeOfPoint(playerid,100, 1099.995117,-1202.029296,17.804687) || IsPlayerInRangeOfPoint(playerid, 100, 2498.383300,-2263.643066,3.196316) || IsPlayerInRangeOfPoint(playerid, 50, 299.1723,-1518.6627,24.6007) || IsPlayerInRangeOfPoint(playerid, 75, 2520.0972,-1519.7384,23.9370)) return 1;
  1027. else return 0;
  1028. }
  1029. public IsAtCarrental(playerid)
  1030. {
  1031. if(IsPlayerConnected(playerid))
  1032. {
  1033. if(IsPlayerInRangeOfPoint(playerid, 30, 1696.5543,-1053.4685,23.9063))
  1034. {
  1035. return 1;
  1036. }
  1037. }
  1038. return 0;
  1039. }
  1040.  
  1041. public IsAtClothShop(playerid)
  1042. {
  1043. if(IsPlayerConnected(playerid))
  1044. {
  1045. if(IsPlayerInRangeOfPoint(playerid, 25, 20.5627,-103.7291,1005.2578) || IsPlayerInRangeOfPoint(playerid, 25,203.9068,-41.0728,1001.8047))
  1046. {//Binco & Suburban
  1047. return 1;
  1048. }
  1049. else if(IsPlayerInRangeOfPoint(playerid, 30,214.4470,-7.6471,1001.2109) || IsPlayerInRangeOfPoint(playerid, 50, 161.3765,-83.8416,1001.8047))
  1050. {//Zip & Victim
  1051. return 1;
  1052. }
  1053. }
  1054. return 0;
  1055. }
  1056.  
  1057. public IsAtGasStation(playerid)
  1058. {
  1059. if(IsPlayerConnected(playerid))
  1060. {
  1061. if(IsPlayerInRangeOfPoint(playerid, 6, 1004.0070,-939.3102,42.1797) || IsPlayerInRangeOfPoint(playerid, 6, 1944.3260,-1772.9254,13.3906))
  1062. {//LS
  1063. return 1;
  1064. }
  1065. else if(IsPlayerInRangeOfPoint(playerid, 6, -90.5515,-1169.4578,2.4079) || IsPlayerInRangeOfPoint(playerid, 6, -1609.7958,-2718.2048,48.5391))
  1066. {//LS
  1067. return 1;
  1068. }
  1069. else if(IsPlayerInRangeOfPoint(playerid, 6, -2029.4968,156.4366,28.9498) || IsPlayerInRangeOfPoint(playerid, 6, -2408.7590,976.0934,45.4175))
  1070. {//SF
  1071. return 1;
  1072. }
  1073. else if(IsPlayerInRangeOfPoint(playerid, 6, -2243.9629,-2560.6477,31.8841) || IsPlayerInRangeOfPoint(playerid, 8, -1676.6323,414.0262,6.9484))
  1074. {//Between LS and SF
  1075. return 1;
  1076. }
  1077. else if(IsPlayerInRangeOfPoint(playerid, 6, 2202.2349,2474.3494,10.5258) || IsPlayerInRangeOfPoint(playerid, 10, 614.9333,1689.7418,6.6968))
  1078. {//LV
  1079. return 1;
  1080. }
  1081. else if(IsPlayerInRangeOfPoint(playerid, 6, -1328.8250,2677.2173,49.7665) || IsPlayerInRangeOfPoint(playerid, 6, 70.3882,1218.6783,18.5165))
  1082. {//LV
  1083. return 1;
  1084. }
  1085. else if(IsPlayerInRangeOfPoint(playerid, 6, 2113.7390,920.1079,10.5255) || IsPlayerInRangeOfPoint(playerid, 6, -1327.7218,2678.8723,50.0625))
  1086. {//LV
  1087. return 1;
  1088. }
  1089. else if(IsPlayerInRangeOfPoint(playerid, 6, 656.4265,-559.8610,16.5015) || IsPlayerInRangeOfPoint(playerid, 6, 656.3797,-570.4138,16.5015))
  1090. {//Dillimore
  1091. return 1;
  1092. }
  1093. }
  1094. return 0;
  1095. }
  1096.  
  1097. public IsAtFishPlace(playerid)
  1098. {
  1099. if(IsPlayerConnected(playerid))
  1100. {
  1101. if(IsPlayerInRangeOfPoint(playerid, 1, 403.8266,-2088.7598,7.8359) || IsPlayerInRangeOfPoint(playerid, 1, 398.7553,-2088.7490,7.8359))
  1102. {//Fishplace at the bigwheel
  1103. return 1;
  1104. }
  1105. else if(IsPlayerInRangeOfPoint(playerid, 1, 396.2197,-2088.6692,7.8359) || IsPlayerInRangeOfPoint(playerid, 1, 391.1094,-2088.7976,7.8359))
  1106. {//Fishplace at the bigwheel
  1107. return 1;
  1108. }
  1109. else if(IsPlayerInRangeOfPoint(playerid, 1, 383.4157,-2088.7849,7.8359) || IsPlayerInRangeOfPoint(playerid, 1, 374.9598,-2088.7979,7.8359))
  1110. {//Fishplace at the bigwheel
  1111. return 1;
  1112. }
  1113. else if(IsPlayerInRangeOfPoint(playerid, 1, 369.8107,-2088.7927,7.8359) || IsPlayerInRangeOfPoint(playerid, 1, 367.3637,-2088.7925,7.8359))
  1114. {//Fishplace at the bigwheel
  1115. return 1;
  1116. }
  1117. else if(IsPlayerInRangeOfPoint(playerid, 1, 362.2244,-2088.7981,7.8359) || IsPlayerInRangeOfPoint(playerid, 1, 354.5382,-2088.7979,7.8359))
  1118. {//Fishplace at the bigwheel
  1119. return 1;
  1120. }
  1121. }
  1122. return 0;
  1123. }
  1124.  
  1125. public IsAtCookPlace(playerid)
  1126. {
  1127. if(IsPlayerConnected(playerid))
  1128. {
  1129. if(IsPlayerInRangeOfPoint(playerid, 3.0 ,369.9786,-4.0798,1001.8589))
  1130. {//Cluckin Bell
  1131. return 1;
  1132. }
  1133. else if(IsPlayerInRangeOfPoint(playerid, 3.0 ,376.4466,-60.9574,1001.5078) || IsPlayerInRangeOfPoint(playerid, 3.0 ,378.1215,-57.4928,1001.5078))
  1134. {//Burgershot
  1135. return 1;
  1136. }
  1137. else if(IsPlayerInRangeOfPoint(playerid, 3.0 ,374.1185,-113.6361,1001.4922) || IsPlayerInRangeOfPoint(playerid, 3.0 ,377.7971,-113.7668,1001.4922))
  1138. {//Well Stacked Pizza
  1139. return 1;
  1140. }
  1141. }
  1142. return 0;
  1143. }
  1144.  
  1145. public IsAtBar(playerid)
  1146. {
  1147. if(IsPlayerConnected(playerid))
  1148. {
  1149. if(IsPlayerInRangeOfPoint(playerid, 4.0,495.7801,-76.0305,998.7578) || IsPlayerInRangeOfPoint(playerid, 4.0,499.9654,-20.2515,1000.6797))
  1150. {//In grove street bar (with girlfriend), and in Havanna
  1151. return 1;
  1152. }
  1153. else if(IsPlayerInRangeOfPoint(playerid, 4.0,1215.9480,-13.3519,1000.9219) || IsPlayerInRangeOfPoint(playerid, 10.0,-2658.9749,1407.4136,906.2734))
  1154. {//PIG Pen
  1155. return 1;
  1156. }
  1157. else if(IsPlayerInRangeOfPoint(playerid, 4.0,968.7739,-46.6145,1001.1172) || IsPlayerInRangeOfPoint(playerid, 10.0,968.7739,-46.6145,1001.1172))
  1158. {//Yamaguchi HQ
  1159. return 1;
  1160. }
  1161. else if(IsPlayerInRangeOfPoint(playerid, 4.0,-791.016,512.249,1336.41) || IsPlayerInRangeOfPoint(playerid, 10.0,-799.122,520.988,1336.41))
  1162. {//Signatra House
  1163. return 1;
  1164. }
  1165. }
  1166. return 0;
  1167. }
  1168.  
  1169. public IsABoat(carid)
  1170. {
  1171. if(IsModelABoat(carid))
  1172. {
  1173. return 1;
  1174. }
  1175. return 0;
  1176. }
  1177.  
  1178. public IsAHarvest(carid)
  1179. {
  1180. for(new i = 0; i < sizeof(harvest); i++)
  1181. {
  1182. if(carid == harvest[i]) return 1;
  1183. }
  1184. return 0;
  1185. }
  1186.  
  1187. public IsADrugHarvest(carid)
  1188. {
  1189. for(new i = 0; i < sizeof(drugharvest); i++)
  1190. {
  1191. if(carid == drugharvest[i]) return 1;
  1192. }
  1193. return 0;
  1194. }
  1195.  
  1196. public IsASmuggleCar(carid)
  1197. {
  1198. new model = GetVehicleModel(carid);
  1199. if(model == 442)
  1200. {
  1201. return 1;
  1202. }
  1203. return 0;
  1204. }
  1205.  
  1206. public IsASweeper(carid)
  1207. {
  1208. new model = GetVehicleModel(carid);
  1209. if(model == 574)
  1210. {
  1211. return 1;
  1212. }
  1213. return 0;
  1214. }
  1215.  
  1216.  
  1217. public IsModelAPlane(carid)
  1218. {
  1219. new modelid = GetVehicleModel(carid);
  1220. if(modelid == 460 || modelid == 464 || modelid == 476 || modelid == 511 || modelid == 512 || modelid == 513 || modelid == 519 || modelid == 520 || modelid == 553 || modelid == 577 || modelid == 592 || modelid == 593)
  1221. {
  1222. return 1;
  1223. }
  1224. return 0;
  1225. }
  1226.  
  1227. public IsAnEnterableModel(carid)
  1228. {
  1229. new m = GetVehicleModel(carid);
  1230. if(m == 511 || m == 519 || m == 553 || m == 577 || m == 592 || m == 417 || m == 548 || m == 563 || m == 453 || m == 454 || m == 484 || m == 407 || m == 408 || m == 414 || m == 427 || m == 435 || m == 456 || m == 498 || m == 499 || m == 508 || m == 528 || m == 573 || m == 591 || m == 601 || m == 609)
  1231. {
  1232. return 1;
  1233. }
  1234. return 0;
  1235. }
  1236.  
  1237. public IsAnEnterableCar(carid)
  1238. {
  1239. new m = GetVehicleModel(carid);
  1240. if(m == 407 || m == 408 || m == 414 || m == 427 || m == 435 || m == 456 || m == 498 || m == 499 || m == 508 || m == 528 || m == 573 || m == 591 || m == 601 || m == 609)
  1241. {
  1242. return 1;
  1243. }
  1244. return 0;
  1245. }
  1246. public IsAnEnterableHeli(carid)
  1247. {
  1248. new m = GetVehicleModel(carid);
  1249. if(m == 417 || m == 548 || m == 563)
  1250. {
  1251. return 1;
  1252. }
  1253. return 0;
  1254. }
  1255. public IsAnEnterableBoat(carid)
  1256. {
  1257. new m = GetVehicleModel(carid);
  1258. if(m == 453 || m == 454 || m == 484)
  1259. {
  1260. return 1;
  1261. }
  1262. return 0;
  1263. }
  1264. public IsAnEnterablePlane(carid)
  1265. {
  1266. new m = GetVehicleModel(carid);
  1267. if(m == 511 || m == 519 || m == 553 || m == 577 || m == 592)
  1268. {
  1269. return 1;
  1270. }
  1271. return 0;
  1272. }
  1273.  
  1274. public IsModelABike(carid)
  1275. {
  1276. new modelid = GetVehicleModel(carid);
  1277. if(modelid == 448 || modelid == 461 || modelid == 462 || modelid == 463 || modelid == 468 || modelid == 471 || modelid == 481 || modelid == 509 || modelid == 510 || modelid == 521 || modelid == 522 || modelid == 523 || modelid == 581 || modelid == 586)
  1278. {
  1279. return 1;
  1280. }
  1281. return 0;
  1282. }
  1283.  
  1284. public IsModelABycicle(carid)
  1285. {
  1286. new modelid = GetVehicleModel(carid);
  1287. if(modelid == 509 || modelid == 481 || modelid == 510)
  1288. {
  1289. return 1;
  1290. }
  1291. return 0;
  1292. }
  1293.  
  1294. public IsModelAHeli(carid)
  1295. {
  1296. new modelid = GetVehicleModel(carid);
  1297. if(modelid == 417 || modelid == 425 || modelid == 447 || modelid == 465 || modelid == 469 || modelid == 487 || modelid == 488 || modelid == 497 || modelid == 501 || modelid == 548 || modelid == 563)
  1298. {
  1299. return 1;
  1300. }
  1301. return 0;
  1302. }
  1303.  
  1304. public IsModelABoat(carid)
  1305. {
  1306. new modelid = GetVehicleModel(carid);
  1307. if(modelid == 430 || modelid == 446 || modelid == 452 || modelid == 453 || modelid == 454 || modelid == 472 || modelid == 473 || modelid == 484 || modelid == 493)
  1308. {
  1309. return 1;
  1310. }
  1311. return 0;
  1312. }
  1313.  
  1314. public IsModelASpecial(carid)
  1315. {
  1316. new m = GetVehicleModel(carid);
  1317. if(m == 424 || m == 432 || m == 449 || m == 457 || m == 485 || m == 486 || m == 500 || m == 532 || m == 537 || m == 568 || m == 571 || m == 572 || m == 573 || m == 574 || m == 429 || m == 480 || m == 533 || m == 536 || m == 467 || m == 575)
  1318. {
  1319. return 1;
  1320. }
  1321. return 0;
  1322. }
  1323.  
  1324.  
  1325. public IsAPlane(carid)
  1326. {
  1327. if(IsModelAPlane(carid))
  1328. {
  1329. return 1;
  1330. }
  1331. return 0;
  1332. }
  1333.  
  1334. public IsACopCar(carid)
  1335. {
  1336. for(new i = 0; i < sizeof(copcar); i++)
  1337. {
  1338. if(carid == copcar[i]) return 1;
  1339. }
  1340. return 0;
  1341. }
  1342.  
  1343. public IsAFiremenCar(carid)
  1344. {
  1345. for(new i = 0; i < sizeof(fdcar); i++)
  1346. {
  1347. if(carid == fdcar[i]) return 1;
  1348. }
  1349. return 0;
  1350. }
  1351.  
  1352. public IsASwatCar(carid)
  1353. {
  1354. for(new i = 0; i < sizeof(swatcar); i++)
  1355. {
  1356. if(carid == swatcar[i]) return 1;
  1357. }
  1358. return 0;
  1359. }
  1360.  
  1361. public IsAnFbiCar(carid)
  1362. {
  1363. for(new i = 0; i < sizeof(fbicar); i++)
  1364. {
  1365. if(carid == fbicar[i]) return 1;
  1366. }
  1367. return 0;
  1368. }
  1369.  
  1370. public IsATacticalCar(carid)
  1371. {
  1372. for(new i = 0; i < sizeof(tacticalcar); i++)
  1373. {
  1374. if(carid == tacticalcar[i]) return 1;
  1375. }
  1376. return 0;
  1377. }
  1378.  
  1379. public IsNgCar(carid)
  1380. {
  1381. for(new i = 0; i < sizeof(armycar); i++)
  1382. {
  1383. if(carid == armycar[i]) return 1;
  1384. }
  1385. return 0;
  1386. }
  1387.  
  1388. public IsASpecialFCar(carid)
  1389. {
  1390. for(new i = 0; i < sizeof(specialfcar); i++)
  1391. {
  1392. if(carid == specialfcar[i]) return 1;
  1393. }
  1394. return 0;
  1395. }
  1396.  
  1397. public IsAGovernmentCar(carid)
  1398. {
  1399. for(new i = 0; i < sizeof(governcar); i ++)
  1400. {
  1401. if(carid == governcar[i]) return 1;
  1402. }
  1403. return 0;
  1404. }
  1405.  
  1406. public IsATank(carid)
  1407. {
  1408. new model = GetVehicleModel(carid);
  1409. if(model == 432)
  1410. {
  1411. return 1;
  1412. }
  1413. return 0;
  1414. }
  1415.  
  1416. public IsAnAmbulance(carid)
  1417. {
  1418. for(new i = 0; i < sizeof(ambulance); i++)
  1419. {
  1420. if(carid == ambulance[i]) return 1;
  1421. }
  1422. return 0;
  1423. }
  1424.  
  1425. public IsAnAdminCar(carid)
  1426. {
  1427. for(new i = 0; i < sizeof(admincar); i++)
  1428. {
  1429. if(carid == admincar[i]) return 1;
  1430. }
  1431. return 0;
  1432. }
  1433.  
  1434. public IsADeveloperCar(carid)
  1435. {
  1436. for(new i = 0; i < sizeof(developercar); i++)
  1437. {
  1438. if(carid == developercar[i]) return 1;
  1439. }
  1440. return 0;
  1441. }
  1442.  
  1443. public IsAnFiretruck(carid)
  1444. {
  1445. new model = GetVehicleModel(carid);
  1446. if(model == 407 || model == 544)
  1447. {
  1448. return 1;
  1449. }
  1450. return 0;
  1451. }
  1452.  
  1453. public IsATruck(carid)
  1454. {
  1455. new m = GetVehicleModel(carid);
  1456. if(m == 403 || m == 406 || m == 408 || m == 414 || m == 443 || m == 456 || m == 455 || m == 498 || m == 499 || m == 514 || m == 515 || m == 609)
  1457. {
  1458. return 1;
  1459. }
  1460. return 0;
  1461. }
  1462.  
  1463. public IsAPizzabike(carid)
  1464. {
  1465. new model = GetVehicleModel(carid);
  1466. if(model == 448)
  1467. {
  1468. return 1;
  1469. }
  1470. return 0;
  1471. }
  1472.  
  1473. public IsABus(carid)
  1474. {
  1475. new model = GetVehicleModel(carid);
  1476. if(model == 431 || model == 437)
  1477. {
  1478. return 1;
  1479. }
  1480. return 0;
  1481. }
  1482.  
  1483. public IsATowcar(carid)
  1484. {
  1485. new model = GetVehicleModel(carid);
  1486. if(model == 525)
  1487. {
  1488. return 1;
  1489. }
  1490. return 0;
  1491. }
  1492.  
  1493. public IsAGangCar(carid)
  1494. {
  1495. for(new i = 0; i < sizeof(surenoscar); i++)
  1496. {
  1497. if(carid == surenoscar[i]) return 1;
  1498. }
  1499. return 0;
  1500. }
  1501.  
  1502. public IsAGangCar2(carid)
  1503. {
  1504. for(new i = 0; i < sizeof(signatracar); i++)
  1505. {
  1506. if(carid == signatracar[i]) return 1;
  1507. }
  1508. return 0;
  1509. }
  1510.  
  1511. public IsAGangCar3(carid)
  1512. {
  1513. for(new i = 0; i < sizeof(yamaguchicar); i++)
  1514. {
  1515. if(carid == yamaguchicar[i]) return 1;
  1516. }
  1517. return 0;
  1518. }
  1519.  
  1520. public IsAGangCar4(carid)
  1521. {
  1522. for(new i = 0; i < sizeof(LCNcar); i++)
  1523. {
  1524. if(carid == LCNcar[i]) return 1;
  1525. }
  1526. return 0;
  1527. }
  1528.  
  1529. public IsAGangCar5(carid)
  1530. {
  1531. for(new i = 0; i < sizeof(vicecar); i++)
  1532. {
  1533. if(carid == vicecar[i]) return 1;
  1534. }
  1535. return 0;
  1536. }
  1537.  
  1538. public IsAGangCar6(carid)
  1539. {
  1540. for(new i = 0; i < sizeof(anarchybike); i++)
  1541. {
  1542. if(carid == anarchybike[i]) return 1;
  1543. }
  1544. return 0;
  1545. }
  1546.  
  1547. public IsAGangCar7(carid)
  1548. {
  1549. for(new i = 0; i < sizeof(hitmencar); i++)
  1550. {
  1551. if(carid == hitmencar[i]) return 1;
  1552. }
  1553. return 0;
  1554. }
  1555.  
  1556. public IsABike(carid)
  1557. {
  1558. if(IsModelABike(carid))
  1559. {
  1560. return 1;
  1561. }
  1562. return 0;
  1563. }
  1564.  
  1565. public IsAOBike(carid)
  1566. {
  1567. if(IsARentableVeh(carid))
  1568. {
  1569. return 1;
  1570. }
  1571. return 0;
  1572. }
  1573.  
  1574. //------------------------------------------------------------------------------------------------------
  1575.  
  1576. dcmd_unban(playerid, params[])
  1577. {
  1578. if(PlayerInfo[playerid][pAdmin] < 5)
  1579. return 0;
  1580.  
  1581. new rcmsg[80], acct[24], file[64],name[24],string[128],otherfile[64];
  1582. GetPlayerName(playerid, name, sizeof(name));
  1583.  
  1584. if(sscanf(params, "s", acct))
  1585. return SendClientMessage(playerid, COLOR_LIGHTRED, "Usage: /unban <account name>");
  1586.  
  1587. format(file, sizeof(file),"LARP/Users/%s.ini", acct);
  1588.  
  1589. if(!dini_Exists(file))
  1590. return SendClientMessage(playerid, COLOR_LIGHTRED,"Error: account doesn't exists!");
  1591.  
  1592. dini_IntSet(file, "Banned", 0);
  1593.  
  1594. format(ipFILE, 128, "LARP/Users/Aliases/%s.txt", acct);
  1595.  
  1596. format(rcmsg, sizeof(rcmsg), "unbanip %s", dini_Get(ipFILE,"NameIp"));
  1597. SendRconCommand(rcmsg);
  1598. SendRconCommand("reloadbans");
  1599.  
  1600. format(otherfile,sizeof(otherfile),"LARP/Users/Bans/%s.ban",dini_Get(ipFILE,"NameIp"));
  1601. fremove(otherfile);
  1602.  
  1603. format(string, sizeof(string), "[ADMIN]: %s has unbanned The account of %s.", name,acct);
  1604. ABroadCast(COLOR_LIGHTRED,string, 5);
  1605. format(string, sizeof(string), "[ADMIN]: IP %s has been removed by the ban list by %s.", dini_Get(ipFILE,"NameIp"), name);
  1606. ABroadCast(COLOR_WHITE,string, 5);
  1607. format(string, sizeof(string), "* Administrator %s Has Unbanned the account of %s", name,acct);
  1608. SendClientMessageToAll(COLOR_NICERED,string);
  1609. format(string, sizeof(string), "* Successfuly Unbanned %s's account & removed %s from the ban list", name,dini_Get(ipFILE,"NameIp"));
  1610. SendClientMessage(playerid,TEAM_GROVE_COLOR,string);
  1611.  
  1612. new y, m, d;
  1613. new h,mi,s;
  1614. getdate(y,m,d);
  1615. gettime(h,mi,s);
  1616. format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Unbanned the Account of %s (%s)",d,m,y,h,mi,s,name,acct,dini_Get(ipFILE,"NameIp"));
  1617. LoginLog(string);
  1618. return 1;
  1619. }
  1620.  
  1621. /*dcmd_saveeverything(playerid, params[])
  1622. {
  1623. #pragma unused params
  1624.  
  1625. if(!IsPlayerAdmin(playerid))
  1626. return 0;
  1627.  
  1628. for(new i = 0; i < sizeof(HouseInfo); i++)
  1629. {
  1630. OnPropUpdate(1,i);
  1631. }
  1632. for(new i = 1; i < sizeof(CarInfo); i++)
  1633. {
  1634. OnPropUpdate(4,i);
  1635. }
  1636. for(new i = 0; i < sizeof(BizzInfo); i++)
  1637. {
  1638. OnPropUpdate(2,i);
  1639. }
  1640. for(new i = 0; i < sizeof(SBizzInfo); i++)
  1641. {
  1642. OnPropUpdate(3,i);
  1643. }
  1644. return 1;
  1645. }*/
  1646.  
  1647.  
  1648.  
  1649. dcmd_alias(playerid,params[])
  1650. {
  1651. if(PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid))
  1652. {
  1653. if(!strlen(params))
  1654. return SendClientMessage(playerid, COLOR_GREY, "{FF0000}KORISCENJE{FFFFFF}: {FF0000}/alias {FFFFFF}[{00FF00}playerid{FFFFFF}]");
  1655.  
  1656. new player1, playername[MAX_PLAYER_NAME], str[128], tmp3[50];
  1657. player1 = strval(params);
  1658.  
  1659. if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
  1660. {
  1661. GetPlayerIp(player1,tmp3,50);
  1662. GetPlayerName(player1, playername, sizeof(playername));
  1663. format(str,sizeof(str),"Aliases for %s (%d) are: %s", playername, player1, dini_Get("LARP/Users/Aliases/alias.txt",tmp3) );
  1664. return SendClientMessage(playerid,COLOR_GREY,str);
  1665. }
  1666. else return SendClientMessage(playerid, COLOR_GREY, "* Player is not connected or is yourself");
  1667. }
  1668. else return SendClientMessage(playerid,COLOR_GREY,"* ERROR: You are not a high enough level to use this command");
  1669. }
  1670.  
  1671. dcmd_ips(playerid,params[])
  1672. {
  1673. if(PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid))
  1674. {
  1675. if(!strlen(params))
  1676. return SendClientMessage(playerid, COLOR_GREY, "{FF0000}KORISCENJE{FFFFFF}: {FF0000}/ips {FFFFFF}[{00FF00}playerid{FFFFFF}]");
  1677.  
  1678. new player1, playername[MAX_PLAYER_NAME], str[128];
  1679. player1 = strval(params);
  1680.  
  1681. if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
  1682. {
  1683. GetPlayerName(player1, playername, sizeof(playername));
  1684. format(str,sizeof(str),"IPs Used for %s (%d) are: %s", playername, player1, dini_Get("LARP/Users/Aliases/ips.txt",playername) );
  1685. return SendClientMessage(playerid,COLOR_GREY,str);
  1686. }
  1687. else return SendClientMessage(playerid, COLOR_GREY, "* Player is not connected or is yourself");
  1688. }
  1689. else return SendClientMessage(playerid,COLOR_GREY,"* ERROR: You are not a high enough level to use this command");
  1690. }
  1691.  
  1692.  
  1693. dcmd_getips(playerid,params[])
  1694. {
  1695. if(PlayerInfo[playerid][pAdmin] <= 2)
  1696. return SendClientMessage(playerid, COLOR_GREY,"* You're not authorized to use this command!");
  1697.  
  1698. new name2[24],msg[128];
  1699. if(sscanf(params, "s", name2))
  1700. return SendClientMessage(playerid, COLOR_GREY, "{FF0000}KORISCENJE{FFFFFF}: {FF0000}/getips {FFFFFF}<{00FF00}player name{FFFFFF}>");
  1701.  
  1702. format(ipFILE, 64, "LARP/Users/Aliases/%s.txt", name2);
  1703.  
  1704. if(!dini_Exists(ipFILE))
  1705. return SendClientMessage(playerid, COLOR_GREY, "Name file not found. (This is Case Sensitive!)");
  1706.  
  1707. format(msg,sizeof(msg),"IPs Used for name %s are: %s", name2, dini_Get("LARP/Users/Aliases/ips.txt",name2) );
  1708. return SendClientMessage(playerid,COLOR_GREY,msg);
  1709.  
  1710. }
  1711.  
  1712. dcmd_getaliases(playerid,params[])
  1713. {
  1714. if(PlayerInfo[playerid][pAdmin] <= 2)
  1715. return SendClientMessage(playerid, COLOR_GREY,"* You're not authorized to use this command!");
  1716.  
  1717. new tmp3[50],msg[128], name[24];
  1718. if(sscanf(params, "s", name))
  1719. return SendClientMessage(playerid, COLOR_GREY, "{FF0000}KORISCENJE{FFFFFF}: {FF0000}/getaliases {FFFFFF}<{00FF00}player name{FFFFFF}>");
  1720.  
  1721. format(ipFILE, 64, "LARP/Users/Aliases/%s.txt", name);
  1722.  
  1723. if(!dini_Exists(ipFILE))
  1724. return SendClientMessage(playerid, COLOR_GREY, "Name file not found. (This is Case Sensitive!)");
  1725.  
  1726. strmid(tmp3,dini_Get(ipFILE, "Nameip"),0,50,50);
  1727.  
  1728. format(msg,sizeof(msg),"Aliases for name %s are: %s", name, dini_Get("LARP/Users/Aliases/alias.txt",tmp3) );
  1729. return SendClientMessage(playerid,COLOR_GREY,msg);
  1730.  
  1731. }
  1732.  
  1733. dcmd_acheckcode(playerid, params[])
  1734. {
  1735. if(PlayerInfo[playerid][pAdmin] < 5)
  1736. return SendClientMessage(playerid, COLOR_GREY, "* You are not authorized to use this!!");
  1737.  
  1738. new carid;
  1739. new comment[64];
  1740. if(sscanf(params, "i", carid))
  1741. return SendClientMessage(playerid, 0xFF6600FF,"{FF0000}KORISCENJE{FFFFFF}: \"{FF0000}/acheckcode {FFFFFF}<{00FF00}carid{FFFFFF}>\"");
  1742.  
  1743. if(IsAnOwnableCar(carid))
  1744. {
  1745. format(comment, sizeof(comment),"* Car id %d code is %d",carid, CarInfo[carid][cCode]);
  1746. }
  1747. else
  1748. {
  1749. format(comment, sizeof(comment),"* Car id %d code is %d",carid, VehiclePass[carid]);
  1750. }
  1751. SendClientMessage(playerid, COLOR_GREY,comment);
  1752. return 1;
  1753. }
  1754.  
  1755. dcmd_attach(playerid, params[])
  1756. {
  1757.  
  1758. if(PlayerInfo[playerid][pAdmin] < 1337)
  1759. return 0;
  1760.  
  1761. new modelid,slot,bone,Float:fX,Float:fY,Float:fZ,Float:fRX,Float:fRY,Float:fRZ,Float:ScaleX,Float:ScaleY,Float:ScaleZ;
  1762. if(sscanf(params, "iiifffffffff", slot,modelid, bone, fX,fY,fZ,fRX,fRY,fRZ,ScaleX,ScaleY,ScaleZ))
  1763. return SendClientMessage(playerid, 0xFF6600FF,"Correct Usage: \"/attach <index(0-4)> <modelid> <bone(1-16)> <x> <y> <z> <rotx> <roty> <rotz> <scalex> <scaley> <scalez>\"");
  1764.  
  1765. if(IsPlayerAttachedObjectSlotUsed(playerid,slot))
  1766. {
  1767. RemovePlayerAttachedObject(playerid,slot);
  1768. SetPlayerAttachedObject(playerid, slot, modelid, bone, fX,fY,fZ,fRX,fRY,fRZ,ScaleX,ScaleY,ScaleZ);
  1769. }
  1770. else
  1771. {
  1772. SetPlayerAttachedObject(playerid, slot, modelid, bone, fX,fY,fZ,fRX,fRY,fRZ,ScaleX,ScaleY,ScaleZ);
  1773. }
  1774. return 1;
  1775. }
  1776.  
  1777. dcmd_unattach(playerid,params[])
  1778. {
  1779. if(PlayerInfo[playerid][pAdmin] < 1337)
  1780. return 0;
  1781.  
  1782. new idx;
  1783. if (sscanf(params, "i", idx))
  1784. return SendClientMessage(playerid,COLOR_WHITE, "{FF0000}KORISCENJE{FFFFFF}: {FF0000}/unattach{FFFFFF}<{00FF00}index{FFFFFF}> ");
  1785.  
  1786. if(IsPlayerAttachedObjectSlotUsed(playerid, idx))
  1787. RemovePlayerAttachedObject(playerid, idx);
  1788.  
  1789. return 1;
  1790. }
  1791.  
  1792. public OnPlayerConnect(playerid)
  1793. {
  1794.  
  1795. new string[128];
  1796. new string2[128];
  1797. new plname[MAX_PLAYER_NAME];
  1798. new playersip[64];
  1799. new zone[MAX_ZONE_NAME];
  1800. new bancheck[64];
  1801. new msg2[128];
  1802. new y, m, d;
  1803. new h,mi,s;
  1804. getdate(y,m,d);
  1805. gettime(h,mi,s);
  1806. GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
  1807. GetPlayerName(playerid, plname, sizeof(plname));
  1808. GetPlayerIp(playerid,playersip,sizeof(playersip));
  1809. new namestring = strfind(plname, "_", true);
  1810. format(string, sizeof(string),"%s",playersip);
  1811. gPlayerUsingLoopingAnim[playerid] = 0;
  1812. gPlayerAnimLibsPreloaded[playerid] = 0;
  1813.  
  1814. if(AntiName == 1)
  1815. {
  1816. if(namestring == -1)
  1817. {
  1818. format(string, sizeof(string),"%s, Has been kicked by the Anticheat Peter Griffin for Having an Unvalid Name",plname);
  1819. SendClientMessageToAll(COLOR_NICERED, string);
  1820. SendClientMessage(playerid, COLOR_YELLOW2, "Immigration Department: Your name is not acceptable.");
  1821. SendClientMessage(playerid, COLOR_YELLOW2, "Hint: Your name must be in the format Firstname_Lastname.");
  1822. format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat Has Kicked %s for Invalid Name",d,m,y,h,mi,s,plname);
  1823. KickLog(string);
  1824. Kick(playerid);
  1825. return 1;
  1826. }
  1827. }
  1828. if(IsPlayerNPC(playerid))
  1829. {
  1830. SpawnPlayer(playerid);
  1831. return 1;
  1832. }
  1833.  
  1834.  
  1835. gActivePlayers[playerid]++;
  1836. numplayers++;
  1837. TestPoints[playerid] = 0;
  1838. OfficerCourseStep[playerid] = 255;
  1839. IsPlayerInEVehicle[playerid] = 9999;
  1840. Searching[playerid] = 0;
  1841. admin[playerid] = 0;
  1842. AFK[playerid] = 0;
  1843. UsedAreaRecently[playerid] = 0;
  1844. SelectChar[playerid] = 0;
  1845. HidePM[playerid] = 0;
  1846. PhoneOnline[playerid] = 0;
  1847. SelectCharID[playerid] = 0;
  1848. SelectCharPlace[playerid] = 0;
  1849. ChosenSkin[playerid] = 0;
  1850. GettingJob[playerid] = 0;
  1851. GuardOffer[playerid] = 999;
  1852. GuardPrice[playerid] = 0;
  1853. ApprovedLawyer[playerid] = 0;
  1854. CallLawyer[playerid] = 0;
  1855. WantLawyer[playerid] = 0;
  1856. KickPlayer[playerid] = 0;
  1857. AdminPos[playerid][0] = 0.00;
  1858. AdminPos[playerid][1] = 0.00;
  1859. AdminPos[playerid][2] = 0.00;
  1860. UsedFind[playerid] = 0;
  1861. CP[playerid] = 0;
  1862. Robbed[playerid] = 0;
  1863. CarOffer[playerid] = 999;
  1864. CarPrice[playerid] = 0;
  1865. CarID[playerid] = 0;
  1866. CarCalls[playerid] = 0;
  1867. RobbedTime[playerid] = 0;
  1868. MoneyMessage[playerid] = 0;
  1869. Training[playerid] = 0;
  1870. Condom[playerid] = 0;
  1871. Rope[playerid] = 0;
  1872. STDPlayer[playerid] = 0;
  1873. SexOffer[playerid] = 999;
  1874. SexPrice[playerid] = 0;
  1875. RepairOffer[playerid] = 999;
  1876. RepairPrice[playerid] = 0;
  1877. RepairCar[playerid] = 0;
  1878. Commands[playerid] = 0;
  1879. Text[playerid] = 0;
  1880. votedrecently[playerid] = 0;
  1881. Showing[playerid] = 0;
  1882. TalkingLive[playerid] = 255;
  1883. LiveOffer[playerid] = 999;
  1884. TakingLesson[playerid] = 0;
  1885. RefillOffer[playerid] = 999;
  1886. RefillPrice[playerid] = 0;
  1887. DrugOffer[playerid] = 999;
  1888. PlayerCuffed[playerid] = 0;
  1889. DrugPrice[playerid] = 0;
  1890. CanUseUpgrade[playerid] = 0;
  1891. CanChangeName[playerid] = 0;
  1892. RegistrationStep[playerid] = 0;
  1893. OnCK[playerid] = 999;
  1894. GettingCK[playerid] = 999;
  1895. DrugGram[playerid] = 0;
  1896. ConnectedToPC[playerid] = 0;
  1897. OrderReady[playerid] = 0;
  1898. JailPrice[playerid] = 0;
  1899. MedicTime[playerid] = 0;
  1900. NeedMedicTime[playerid] = 0;
  1901. MedicBill[playerid] = 0;
  1902. GotHit[playerid] = 0;
  1903. WantedPoints[playerid] = 0;
  1904. GoChase[playerid] = 999;
  1905. GetChased[playerid] = 999;
  1906. PlacedNews[playerid] = 0;
  1907. PlayerInfo[playerid][pDuty] = 0;
  1908. WantedLevel[playerid] = 0;
  1909. TestFishes[playerid] = 0;
  1910. Fails[playerid] = 0;
  1911. BoxWaitTime[playerid] = 0;
  1912. SchoolSpawn[playerid] = 0;
  1913. ChangePos2[playerid][1] = 0;
  1914. SafeTime[playerid] = 60;
  1915. TransportDuty[playerid] = 0;
  1916. PlayerTied[playerid] = 0;
  1917. BusCallTime[playerid] = 0;
  1918. TaxiCallTime[playerid] = 0;
  1919. MedicCallTime[playerid] = 0;
  1920. MechanicCallTime[playerid] = 0;
  1921. BusrouteEast[playerid][0] = 0;
  1922. BusrouteWest[playerid][0] = 0;
  1923. BusShowLocation[playerid][0] = 0;
  1924. BusShowLocationC[playerid] = 0;
  1925. FindTimePoints[playerid] = 0;
  1926. FindTime[playerid] = 0;
  1927. JobDuty[playerid] = 0;
  1928. Mobile[playerid] = 255;
  1929. Music[playerid] = 0;
  1930. BoxOffer[playerid] = 999;
  1931. PlayerBoxing[playerid] = 0;
  1932. Spectate[playerid] = 255;
  1933. PlayerDrunk[playerid] = 0;
  1934. PlayerDrunkTime[playerid] = 0;
  1935. Attached[playerid] = 0;
  1936. Unspec[playerid][sLocal] = 255;
  1937. FishCount[playerid] = 0;
  1938. WritingPaper[playerid] = 0;
  1939. WritingPaperNumber[playerid] = 999;
  1940. WritingLine[playerid] = 0;
  1941. BringingPaper[playerid] = 0;
  1942. GotPaper[playerid] = 0;
  1943. PaperOffer[playerid] = 999;
  1944. ScriptMoney[playerid] = 0;
  1945. ScriptMoneyUpdated[playerid] = 0;
  1946. for (new c=0; c<13; c++) ScriptWeapons[playerid][c] = 0;
  1947. ScriptWeaponsUpdated[playerid] = 0;
  1948. gLastCar[playerid] = 0;
  1949. FirstSpawn[playerid] = 1;
  1950. gOoc[playerid] = 0;
  1951. gNews[playerid] = 0;
  1952. BigEar[playerid] = 0;
  1953. gDice[playerid] = 0;
  1954. gFam[playerid] = 0;
  1955. gGas[playerid] = 1;
  1956. gPlayerLogged[playerid] = 0;
  1957. gPlayerLogTries[playerid] = 0;
  1958. gPlayerSpawned[playerid] = 0;
  1959. PlayerTazeTime[playerid] = 0;
  1960. PlayerStoned[playerid] = 0;
  1961. StartTime[playerid] = 0;
  1962. TicketOffer[playerid] = 999;
  1963. TicketMoney[playerid] = 0;
  1964. MatsHolding[playerid] = 0;
  1965. TutTime[playerid] = 0;
  1966. TaxiAccepted[playerid] = 999;
  1967. BusAccepted[playerid] = 999;
  1968. NoFuel[playerid] = 0;
  1969. HireCar[playerid] = 299;
  1970. GangCar[playerid] = 512;
  1971. PlayersChannel[playerid] = 999;
  1972. TransportValue[playerid] = 0;
  1973. TransportMoney[playerid] = 0;
  1974. TransportTime[playerid] = 0;
  1975. TransportCost[playerid] = 0;
  1976. TransportDriver[playerid] = 999;
  1977. Locator[playerid] = 0;
  1978. WatchingTV[playerid] = 0;
  1979. Fishes[playerid][pLastFish] = 0;
  1980. Fishes[playerid][pFishID] = 0;
  1981. ProposeOffer[playerid] = 999;
  1982. MarryWitness[playerid] = 999;
  1983. MarryWitnessOffer[playerid] = 999;
  1984. MarriageCeremoney[playerid] = 0;
  1985. ProposedTo[playerid] = 999;
  1986. GotProposedBy[playerid] = 999;
  1987. DivorceOffer[playerid] = 999;
  1988. PizzaCallTime[playerid] = 0;
  1989. bPizza[playerid] = 0;
  1990. sPizza[playerid] = 0;
  1991. gEngine[playerid] = 0;
  1992. FarmerVar[playerid] = 0;
  1993. FarmerPickup[playerid][0] = 0;
  1994. SmugglerWork[playerid] = 0;
  1995. SmuggledDrugs[playerid] = 0;
  1996. JustDied[playerid] = 0;
  1997. KnockedDown[playerid] = 0;
  1998. UnidentifedCall[playerid] = 0;
  1999. LicenseOffer[playerid] = 999;
  2000. LicensePrice[playerid] = 0;
  2001. LicenseType[playerid] = 0;
  2002. UsingDrugs[playerid] = 0;
  2003. AfterTutorial[playerid] = 0;
  2004. OwnableCarOffer[playerid] = 999;
  2005. OwnableCarID[playerid] = 0;
  2006. OwnableCarPrice[playerid] = 0;
  2007. BlindFold[playerid] = 0;
  2008. PlayerIsSweeping[playerid] = 0;
  2009. JustReported[playerid] = 0;
  2010. PlayerNeedsHelp[playerid] = 0;
  2011. AdminSpec[playerid] = 0;
  2012. IsSmoking[playerid] = 0;
  2013. UsingSmokeAnim[playerid] = 0;
  2014. ReduceTime[playerid] = 0;
  2015. CreatingGun[playerid] = 0;
  2016. CreatingGunAmmo[playerid] = 0;
  2017. CreatingGunPrice[playerid] = 0;
  2018. IsPuttingMaterials[playerid] = 0;
  2019. IsTakingGun[playerid] = 0;
  2020. InAFoodPlace[playerid] = 0;
  2021. UcAdmin[playerid] = 0;
  2022. Gps[playerid] = 0;
  2023. PlayerInfo[playerid][pLevel] = 0;
  2024. PlayerInfo[playerid][pSpawn] = 0;
  2025. PlayerInfo[playerid][pAdmin] = 0;
  2026. PlayerInfo[playerid][pRegularRank] = 0;
  2027. PlayerInfo[playerid][gPupgrade] = 0;
  2028. PlayerInfo[playerid][pConnectSeconds] = 0;
  2029. PlayerInfo[playerid][pReg] = 0;
  2030. PlayerInfo[playerid][pSex] = 0;
  2031. PlayerInfo[playerid][pAge] = 0;
  2032. PlayerInfo[playerid][pDuty] = 0;
  2033. PlayerInfo[playerid][pOrigin] = 0;
  2034. PlayerInfo[playerid][pExp] = 0;
  2035. PlayerInfo[playerid][pDuty] = 0;
  2036. PlayerInfo[playerid][pGPS] = 0;
  2037. PlayerInfo[playerid][pBlind] = 0;
  2038. PlayerInfo[playerid][pFrozen] = 0;
  2039. PlayerInfo[playerid][pAccount] = 0;
  2040. PlayerInfo[playerid][pCrimes] = 0;
  2041. strmid(PlayerInfo[playerid][pCrimeReason], "None", 0, strlen("None"), 255);
  2042. strmid(Typed[playerid], "None", 0, strlen("None"), 255);
  2043. PlayerInfo[playerid][pWanted] = 0;
  2044. PlayerInfo[playerid][pWantedLevel] = 0;
  2045. PlayerInfo[playerid][pDeaths] = 0;
  2046. strmid(PlayerInfo[playerid][pWhyLeft], "Unknown", 0, strlen("Unknown"), 255);
  2047. PlayerInfo[playerid][pArrested] = 0;
  2048. PlayerInfo[playerid][pWantedDeaths] = 0;
  2049. PlayerInfo[playerid][pPhoneBook] = 0;
  2050. PlayerInfo[playerid][pLottoNr] = 0;
  2051. PlayerInfo[playerid][pFishes] = 0;
  2052. PlayerInfo[playerid][pBiggestFish] = 0;
  2053. PlayerInfo[playerid][pJob] = 0;
  2054. PlayerInfo[playerid][pPayCheck] = 0;
  2055. PlayerInfo[playerid][pHeadValue] = 0;
  2056. PlayerInfo[playerid][pJailed] = 0;
  2057. PlayerInfo[playerid][pJailTime] = 0;
  2058. PlayerInfo[playerid][pRobTime] = 0;
  2059. PlayerInfo[playerid][pMats] = 0;
  2060. PlayerInfo[playerid][pDrugs] = 0;
  2061. PlayerInfo[playerid][pLeader] = 0;
  2062. PlayerInfo[playerid][pMember] = 0;
  2063. PlayerInfo[playerid][pFMember] = 255;
  2064. PlayerInfo[playerid][pRank] = 0;
  2065. PlayerInfo[playerid][pChar] = 0;
  2066. PlayerInfo[playerid][pContractTime] = 0;
  2067. PlayerInfo[playerid][pDetSkill] = 0;
  2068. PlayerInfo[playerid][pSexSkill] = 0;
  2069. PlayerInfo[playerid][pBoxSkill] = 0;
  2070. PlayerInfo[playerid][pLawSkill] = 0;
  2071. PlayerInfo[playerid][pMechSkill] = 0;
  2072. PlayerInfo[playerid][pJackSkill] = 0;
  2073. PlayerInfo[playerid][pCarSkill] = 0;
  2074. PlayerInfo[playerid][pNewsSkill] = 0;
  2075. PlayerInfo[playerid][pDrugsSkill] = 0;
  2076. PlayerInfo[playerid][pCookSkill] = 0;
  2077. PlayerInfo[playerid][pFishSkill] = 0;
  2078. PlayerInfo[playerid][pSHealth] = 0.0;
  2079. PlayerInfo[playerid][pInt] = 0;
  2080. PlayerInfo[playerid][pInteriorNr] = 0;
  2081. PlayerInfo[playerid][pLocal] = 255;
  2082. PlayerInfo[playerid][pTeam] = 3;
  2083. PlayerInfo[playerid][pModel] = 7;
  2084. new randphone = 100000 + random(899999);//minimum 1000 max 9999 //giving one at the start
  2085. PlayerInfo[playerid][pPnumber] = randphone;
  2086. PlayerInfo[playerid][pPcarkey] = 9999;
  2087. PlayerInfo[playerid][pPcarkey2] = 9999;
  2088. PlayerInfo[playerid][pPhousekey] = 9999;
  2089. PlayerInfo[playerid][pGangKey] = 255;
  2090. PlayerInfo[playerid][pPbiskey] = 9999;
  2091. PlayerInfo[playerid][pPassport] = 0;
  2092. PlayerInfo[playerid][pCarLic] = 0;
  2093. PlayerInfo[playerid][pFlyLic] = 0;
  2094. PlayerInfo[playerid][pBoatLic] = 0;
  2095. PlayerInfo[playerid][pFishLic] = 0;
  2096. PlayerInfo[playerid][pGunLic] = 0;
  2097. PlayerInfo[playerid][pCopLic] = 0;
  2098. PlayerInfo[playerid][pCarTime] = 0;
  2099. PlayerInfo[playerid][pPayDay] = 0;
  2100. PlayerInfo[playerid][pPayDayHad] = 0;
  2101. PlayerInfo[playerid][pWatch] = 0;
  2102. PlayerInfo[playerid][pCrashed] = 0;
  2103. PlayerInfo[playerid][pWins] = 0;
  2104. PlayerInfo[playerid][pLoses] = 0;
  2105. PlayerInfo[playerid][pAlcoholPerk] = 0;
  2106. PlayerInfo[playerid][pDrugPerk] = 0;
  2107. PlayerInfo[playerid][pMiserPerk] = 0;
  2108. PlayerInfo[playerid][pPainPerk] = 0;
  2109. PlayerInfo[playerid][pTraderPerk] = 0;
  2110. PlayerInfo[playerid][pTut] = 0;
  2111. PlayerInfo[playerid][pTutDone] = 0;
  2112. PlayerInfo[playerid][pDTK] = 0;
  2113. PlayerInfo[playerid][pDSTK] = 0;
  2114. PlayerInfo[playerid][pWarned] = 0;
  2115. PlayerInfo[playerid][pSwat] = 0;
  2116. PlayerInfo[playerid][pDM] = 0;
  2117. PlayerInfo[playerid][pHydraR] = 0;
  2118. PlayerInfo[playerid][pHunterR] = 0;
  2119. PlayerInfo[playerid][pRhinoR] = 0;
  2120. PlayerInfo[playerid][pPredR] = 0;
  2121. PlayerInfo[playerid][pViewPms] = 0;
  2122. PlayerInfo[playerid][pAppearList] = 0;
  2123. PlayerInfo[playerid][pDBanned] = 0;
  2124. PlayerInfo[playerid][pTactical] = 0;
  2125. PlayerInfo[playerid][pSpecialF] = 0;
  2126. PlayerInfo[playerid][pWarns] = 0;
  2127. PlayerInfo[playerid][pFuel] = 0;
  2128. PlayerInfo[playerid][pVirWorld] = 0;
  2129. PlayerInfo[playerid][pRequestingBackup] = 0;
  2130. PlayerInfo[playerid][pRoadblock] = 0;
  2131. PlayerInfo[playerid][pFishTool] = 0;
  2132. strmid(PlayerInfo[playerid][pNote1], "None", 0, strlen("None"), 255);
  2133. PlayerInfo[playerid][pNote1s] = 0;
  2134. strmid(PlayerInfo[playerid][pNote2], "None", 0, strlen("None"), 255);
  2135. PlayerInfo[playerid][pNote2s] = 0;
  2136. strmid(PlayerInfo[playerid][pNote3], "None", 0, strlen("None"), 255);
  2137. PlayerInfo[playerid][pNote3s] = 0;
  2138. strmid(PlayerInfo[playerid][pNote4], "None", 0, strlen("None"), 255);
  2139. PlayerInfo[playerid][pNote4s] = 0;
  2140. strmid(PlayerInfo[playerid][pNote5], "None", 0, strlen("None"), 255);
  2141. PlayerInfo[playerid][pNote5s] = 0;
  2142. PlayerInfo[playerid][pInvWeapon] = 0;
  2143. PlayerInfo[playerid][pInvAmmo] = 0;
  2144. PlayerInfo[playerid][pInvWeapon2] = 0;
  2145. PlayerInfo[playerid][pInvAmmo2] = 0;
  2146. PlayerInfo[playerid][pInvWeapon3] = 0;
  2147. PlayerInfo[playerid][pInvAmmo3] = 0;
  2148. PlayerInfo[playerid][pInvWeapon4] = 0;
  2149. PlayerInfo[playerid][pInvAmmo4] = 0;
  2150. PlayerInfo[playerid][pInvWeapon5] = 0;
  2151. PlayerInfo[playerid][pInvAmmo5] = 0;
  2152. PlayerInfo[playerid][pInvWeapon6] = 0;
  2153. PlayerInfo[playerid][pInvAmmo6] = 0;
  2154. PlayerInfo[playerid][pLighter] = 0;
  2155. PlayerInfo[playerid][pCigarettes] = 0;
  2156. PlayerInfo[playerid][pMask] = 0;
  2157. PlayerInfo[playerid][pMaskuse] = 0;
  2158. PlayerInfo[playerid][pAdminDuty] = 0;
  2159. PlayerInfo[playerid][pTesterDuty] = 0;
  2160. PlayerInfo[playerid][pHelper] = 0;
  2161. PlayerInfo[playerid][pTester] = 0;
  2162. PlayerInfo[playerid][pSpeedo] = 0;
  2163. PlayerInfo[playerid][pHideNumber] = 0;
  2164. PlayerInfo[playerid][pSpeaker] = 0;
  2165. PlayerInfo[playerid][pWarned] = 0;
  2166. PlayerInfo[playerid][pSwat] = 0;
  2167. PlayerInfo[playerid][pTactical] = 0;
  2168. PlayerInfo[playerid][pSpecialF] = 0;
  2169. PlayerInfo[playerid][pDBanned] = 0;
  2170. PlayerInfo[playerid][pDesertSkill] = 0;
  2171. PlayerInfo[playerid][pSilenSkill] = 0;
  2172. PlayerInfo[playerid][pPistSkill] = 0;
  2173. PlayerInfo[playerid][pShotgSkill] = 0;
  2174. PlayerInfo[playerid][pSawnSkill] = 0;
  2175. PlayerInfo[playerid][pUziSkill] = 0;
  2176. PlayerInfo[playerid][pSmgSkill] = 0;
  2177. PlayerInfo[playerid][pAkSkill] = 0;
  2178. PlayerInfo[playerid][pM4Skill] = 0;
  2179. PlayerInfo[playerid][pCombSkill] = 0;
  2180. PlayerInfo[playerid][pAchievement0] = 0;
  2181. PlayerInfo[playerid][pAchievement1] = 0;
  2182. PlayerInfo[playerid][pAchievement2] = 0;
  2183. PlayerInfo[playerid][pAchievement3] = 0;
  2184. PlayerInfo[playerid][pAchievement4] = 0;
  2185. PlayerInfo[playerid][pAchievement5] = 0;
  2186. PlayerInfo[playerid][pAchievement6] = 0;
  2187. PlayerInfo[playerid][pAchievement7] = 0;
  2188. PlayerInfo[playerid][pAchievement8] = 0;
  2189. PlayerInfo[playerid][pAchievement9] = 0;
  2190. PlayerInfo[playerid][pAchievement10] = 0;
  2191. PlayerInfo[playerid][pAchievement11] = 0;
  2192. PlayerInfo[playerid][pAchievement12] = 0;
  2193. PlayerInfo[playerid][pAchievement13] = 0;
  2194. PlayerInfo[playerid][pAchievement14] = 0;
  2195. PlayerInfo[playerid][pAchievement15] = 0;
  2196. PlayerInfo[playerid][pAchievement16] = 0;
  2197. PlayerInfo[playerid][pAchievement17] = 0;
  2198. PlayerInfo[playerid][pAchievement18] = 0;
  2199. PlayerInfo[playerid][pAchievement19] = 0;
  2200. PlayerInfo[playerid][pAchievement20] = 0;
  2201. PlayerInfo[playerid][pWeapon] = 0;
  2202. PlayerInfo[playerid][pAmmo] = 0;
  2203. PlayerInfo[playerid][pWeapon2] = 0;
  2204. PlayerInfo[playerid][pAmmo2] = 0;
  2205. PlayerInfo[playerid][pWeapon3] = 0;
  2206. PlayerInfo[playerid][pAmmo3] = 0;
  2207. PlayerInfo[playerid][pWeapon4] = 0;
  2208. PlayerInfo[playerid][pAmmo4] = 0;
  2209. PlayerInfo[playerid][pWeapon5] = 0;
  2210. PlayerInfo[playerid][pAmmo5] = 0;
  2211. PlayerInfo[playerid][pWeapon6] = 0;
  2212. PlayerInfo[playerid][pAmmo6] = 0;
  2213. PlayerInfo[playerid][pWeapon7] = 0;
  2214. PlayerInfo[playerid][pAmmo7] = 0;
  2215. PlayerInfo[playerid][pWeapon8] = 0;
  2216. PlayerInfo[playerid][pAmmo8] = 0;
  2217. PlayerInfo[playerid][pWeapon9] = 0;
  2218. PlayerInfo[playerid][pAmmo9] = 0;
  2219. PlayerInfo[playerid][pWeapon10] = 0;
  2220. PlayerInfo[playerid][pAmmo10] = 0;
  2221. PlayerInfo[playerid][pWeapon11] = 0;
  2222. PlayerInfo[playerid][pAmmo11] = 0;
  2223. PlayerInfo[playerid][pWeapon12] = 0;
  2224. PlayerInfo[playerid][pAmmo12] = 0;
  2225. PlayerInfo[playerid][pAtc] = 0;
  2226. PlayerInfo[playerid][pAtcRadio] = 0;
  2227. PlayerInfo[playerid][pPending] = 0;
  2228. PlayerInfo[playerid][pChatMode] = 0;
  2229. PlayerInfo[playerid][pTruckLoad] = 0;
  2230. strmid(PlayerInfo[playerid][pPunishment1], "None", 0, strlen("None"), 255);
  2231. strmid(PlayerInfo[playerid][pPunishment2], "None", 0, strlen("None"), 255);
  2232. strmid(PlayerInfo[playerid][pPunishment3], "None", 0, strlen("None"), 255);
  2233. strmid(PlayerInfo[playerid][pPunishment4], "None", 0, strlen("None"), 255);
  2234. strmid(PlayerInfo[playerid][pPunishment5], "None", 0, strlen("None"), 255);
  2235. strmid(PlayerInfo[playerid][pPunishment6], "None", 0, strlen("None"), 255);
  2236. strmid(PlayerInfo[playerid][pPunishment7], "None", 0, strlen("None"), 255);
  2237. strmid(PlayerInfo[playerid][pPunishment8], "None", 0, strlen("None"), 255);
  2238. strmid(PlayerInfo[playerid][pIP], "None", 0, strlen("None"), 255);
  2239. strmid(PlayerInfo[playerid][pLastSeen], "Never", 0, strlen("None"), 255);
  2240. strmid(PlayerInfo[playerid][pRegistredDate], "Never", 0, strlen("None"), 255);
  2241. PlayerInfo[playerid][pNextPunishment] = 1;
  2242. PlayerInfo[playerid][pPunished] = 0;
  2243. PlayerInfo[playerid][pTazerBullets] = 0;
  2244. PlayerInfo[playerid][pChanged] = 0;
  2245. PlayerInfo[playerid][pDecoder] = 0;
  2246. CityHallRobbedRecently = 0;
  2247. RobbedRecently[playerid] = 0;
  2248. RobbingTime[playerid] = 0;
  2249. PlayerInfo[playerid][pRegularCount] = 144000;
  2250. PlayerInfo[playerid][pPassportTime] = 500;
  2251. PlayerInfo[playerid][pOfficerTime] = 0;
  2252. PlayerInfo[playerid][pShiftName] = 0;
  2253. PlayerSuspiciousInterior[playerid] = 0;
  2254. PlayerBunnyJumping[playerid] = 0;
  2255. PlayerMoneyHacking[playerid] = 0;
  2256. PlayerInteriorHacking[playerid] = 0;
  2257. PlayerSpeedHacking[playerid] = 0;
  2258. PlayerOnCashInbalance[playerid] = 0;
  2259. PlayerFailedToLogin[playerid] = 0;
  2260. PlayerSuspicious[playerid] = 0;
  2261. PlayerSuspiciousSpeed[playerid] = 0;
  2262. Checked[playerid] = 1;
  2263. PlayerGotSpottedRecently[playerid] = 1;
  2264. SetTimerEx("ResetAcWarn", 30000, 0, "i", playerid);
  2265. RpcArmor[playerid] = 0;
  2266. RpcMoney[playerid] = 0;
  2267. JustWanked[playerid] = 0;
  2268. RpcPara[playerid] = 0;
  2269. PlayerDrankWine[playerid] = 0;
  2270. PlayerDrankBeer[playerid] = 0;
  2271. TimesWanked[playerid] = 0;
  2272. IsWanking[playerid] = 0;
  2273. WankedRecently[playerid] = 0;
  2274. PlayerSmokedCig[playerid] = 0;
  2275. PlayerDrankSprunk[playerid] = 0;
  2276. GettingBlowjob[playerid] = 0;
  2277. GivingBlowjob[playerid] = 0;
  2278. AcceptingBJ[playerid] = 0;
  2279. OnSwatDuty[playerid] = 0;
  2280. OnTacticalDuty[playerid] = 0;
  2281. OnSpecialFDuty[playerid] = 0;
  2282. OfferedBlowjob[playerid] = INVALID_PLAYER_ID;
  2283. HelpMessages[playerid] = 1;
  2284. ChangedName[playerid] = 0;
  2285. ViewAdmin[playerid] = 1;
  2286. ClearCrime(playerid);
  2287. ClearFishes(playerid);
  2288. ClearCooking(playerid);
  2289. ClearGroceries(playerid);
  2290. ClearMarriage(playerid);
  2291. SetPlayerColor(playerid,0xBBBBBB00);
  2292. HouseEntered[playerid] = 9999;
  2293. BizzEntered[playerid] = 9999;
  2294. Untouchable[playerid] = 0;
  2295.  
  2296. Textdraw1[playerid] = TextDrawCreate(400.000000, 2.000000, " "); // jail time
  2297. TextDrawAlignment(Textdraw1[playerid], 2);
  2298. TextDrawBackgroundColor(Textdraw1[playerid], 255);
  2299. TextDrawFont(Textdraw1[playerid], 1);
  2300. TextDrawLetterSize(Textdraw1[playerid], 0.300000, 1.000000);
  2301. TextDrawColor(Textdraw1[playerid], -1);
  2302. TextDrawSetOutline(Textdraw1[playerid], 1);
  2303. TextDrawSetProportional(Textdraw1[playerid], 1);
  2304.  
  2305. Textdraw39[playerid] = TextDrawCreate(498.000000, 123.000000, " "); // speedo
  2306. TextDrawBackgroundColor(Textdraw39[playerid], 255);
  2307. TextDrawFont(Textdraw39[playerid], 1);
  2308. TextDrawLetterSize(Textdraw39[playerid], 0.389899, 1.299900);
  2309. TextDrawColor(Textdraw39[playerid], 13107455);
  2310. TextDrawSetOutline(Textdraw39[playerid], 1);
  2311. TextDrawSetProportional(Textdraw39[playerid], 1);
  2312.  
  2313. Textdraw40[playerid] = TextDrawCreate(498.000000, 140.000000, " "); // fuel
  2314. TextDrawBackgroundColor(Textdraw40[playerid], 255);
  2315. TextDrawFont(Textdraw40[playerid], 1);
  2316. TextDrawLetterSize(Textdraw40[playerid], 0.389999, 1.299999);
  2317. TextDrawColor(Textdraw40[playerid], 0xFFFFFFFF);
  2318. TextDrawSetOutline(Textdraw40[playerid], 1);
  2319. TextDrawSetProportional(Textdraw40[playerid], 1);
  2320.  
  2321. Textdraw41[playerid] = TextDrawCreate(326.000000, 134.000000, " "); // speed gun points
  2322. TextDrawAlignment(Textdraw41[playerid], 2);
  2323. TextDrawBackgroundColor(Textdraw41[playerid], 255);
  2324. TextDrawFont(Textdraw41[playerid], 1);
  2325. TextDrawLetterSize(Textdraw41[playerid], 4.499998, 17.899999);
  2326. TextDrawColor(Textdraw41[playerid], -1);
  2327. TextDrawSetOutline(Textdraw41[playerid], 1);
  2328. TextDrawSetProportional(Textdraw41[playerid], 1);
  2329. TextDrawUseBox(Textdraw41[playerid], 1);
  2330. TextDrawBoxColor(Textdraw41[playerid], 100);
  2331. TextDrawTextSize(Textdraw41[playerid], 160.000000, 280.000000);
  2332.  
  2333. Textdraw42[playerid] = TextDrawCreate(326.000000, 192.000000, " "); // Speed gun speed string
  2334. TextDrawAlignment(Textdraw42[playerid], 2);
  2335. TextDrawBackgroundColor(Textdraw42[playerid], 255);
  2336. TextDrawFont(Textdraw42[playerid], 1);
  2337. TextDrawLetterSize(Textdraw42[playerid], 0.379999, 1.700000);
  2338. TextDrawColor(Textdraw42[playerid], -1);
  2339. TextDrawSetOutline(Textdraw42[playerid], 1);
  2340. TextDrawSetProportional(Textdraw42[playerid], 1);
  2341. TextDrawUseBox(Textdraw42[playerid], 1);
  2342. TextDrawBoxColor(Textdraw42[playerid], 255);
  2343. TextDrawTextSize(Textdraw42[playerid], 10.000000, 280.000000);
  2344.  
  2345. Textdraw49[playerid] = TextDrawCreate(86.000000, 428.000000, " "); // area
  2346. TextDrawAlignment(Textdraw49[playerid], 2);
  2347. TextDrawBackgroundColor(Textdraw49[playerid], 255);
  2348. TextDrawFont(Textdraw49[playerid], 2);
  2349. TextDrawLetterSize(Textdraw49[playerid],0.280000, 1.100000);
  2350. TextDrawColor(Textdraw49[playerid], -1);
  2351. TextDrawSetOutline(Textdraw49[playerid], 1);
  2352. TextDrawSetProportional(Textdraw49[playerid], 1);
  2353.  
  2354. Textdraw51[playerid] = TextDrawCreate(608.000000, 98.000000, " "); // bank money
  2355. TextDrawAlignment(Textdraw51[playerid], 3);
  2356. TextDrawBackgroundColor(Textdraw51[playerid], 255);
  2357. TextDrawFont(Textdraw51[playerid], 3);
  2358. TextDrawLetterSize(Textdraw51[playerid], 0.650000, 2.199999);
  2359. TextDrawColor(Textdraw51[playerid], 43775);
  2360. TextDrawSetOutline(Textdraw51[playerid], 1);
  2361. TextDrawSetProportional(Textdraw51[playerid], 1);
  2362.  
  2363. Textdraw52[playerid] = TextDrawCreate(494.000000, 81.000000, " "); // money changes
  2364. TextDrawAlignment(Textdraw52[playerid], 3);
  2365. TextDrawBackgroundColor(Textdraw52[playerid], 255);
  2366. TextDrawFont(Textdraw52[playerid], 1);
  2367. TextDrawLetterSize(Textdraw52[playerid], 0.279999, 1.600000);
  2368. TextDrawColor(Textdraw52[playerid], 0xFFFFFFFF);
  2369. TextDrawSetOutline(Textdraw52[playerid], 1);
  2370. TextDrawSetProportional(Textdraw52[playerid], 1);
  2371.  
  2372. Textdraw53[playerid] = TextDrawCreate(320.000000, 341.000000, " "); // GPS
  2373. TextDrawAlignment(Textdraw53[playerid], 2);
  2374. TextDrawBackgroundColor(Textdraw53[playerid], 255);
  2375. TextDrawFont(Textdraw53[playerid], 2);
  2376. TextDrawLetterSize(Textdraw53[playerid], 0.400000, 1.500000);
  2377. TextDrawColor(Textdraw53[playerid], -1);
  2378. TextDrawSetOutline(Textdraw53[playerid], 1);
  2379. TextDrawSetProportional(Textdraw53[playerid], 1);
  2380.  
  2381. Textdraw54[playerid] = TextDrawCreate(331.000000, 340.000000, " "); // Spectate
  2382. TextDrawAlignment(Textdraw54[playerid], 2);
  2383. TextDrawBackgroundColor(Textdraw54[playerid], 255);
  2384. TextDrawFont(Textdraw54[playerid], 1);
  2385. TextDrawLetterSize(Textdraw54[playerid], 0.500000, 1.000000);
  2386. TextDrawColor(Textdraw54[playerid], -1);
  2387. TextDrawSetOutline(Textdraw54[playerid], 0);
  2388. TextDrawSetProportional(Textdraw54[playerid], 1);
  2389. TextDrawSetShadow(Textdraw54[playerid], 0);
  2390.  
  2391. Textdraw64[playerid] = TextDrawCreate(317.000000, 253.000000, " "); // Medals
  2392. TextDrawAlignment(Textdraw64[playerid], 2);
  2393. TextDrawBackgroundColor(Textdraw64[playerid], 255);
  2394. TextDrawFont(Textdraw64[playerid], 1);
  2395. TextDrawLetterSize(Textdraw64[playerid], 0.239999, 1.200000);
  2396. TextDrawColor(Textdraw64[playerid], -1);
  2397. TextDrawSetOutline(Textdraw64[playerid], 1);
  2398. TextDrawSetProportional(Textdraw64[playerid], 1);
  2399.  
  2400. format(bancheck, sizeof(bancheck),"LARP/Users/Bans/%s.ban",playersip);
  2401.  
  2402. if(dini_Exists(bancheck))
  2403. {
  2404. ClearChatbox(playerid, 10);
  2405.  
  2406. if(!strcmp(dini_Get(bancheck,"BanName"),plname,true))
  2407. {
  2408. SendClientMessage(playerid, COLOR_NICERED,"=======================================YOU ARE BANNED======================================");
  2409. SendClientMessage(playerid, COLOR_LIGHTRED,"This Nickname is banned from this Server, And never was unbanned.");
  2410. SendClientMessage(playerid, COLOR_LIGHTRED,"If you wish to be unbanned please visit our website at <changeme>");
  2411. SendClientMessage(playerid, COLOR_LIGHTRED,"Ban Evading will result in a Permanent Range Ban.");
  2412. SendClientMessage(playerid, COLOR_NICERED,"=======================================BAN INFORMATION===================================");
  2413. format(msg2,sizeof(msg2),"Ban issued by administrator: %s",dini_Get(bancheck,"BannedBy"));
  2414. SendClientMessage(playerid, COLOR_WHITE,msg2);
  2415. format(msg2,sizeof(msg2),"Ban issued on: %s",dini_Get(bancheck,"BanDate"));
  2416. SendClientMessage(playerid, COLOR_WHITE,msg2);
  2417. format(msg2,sizeof(msg2),"Ban Reason: %s",dini_Get(bancheck,"BanReason"));
  2418. SendClientMessage(playerid, COLOR_WHITE,msg2);
  2419. SendClientMessage(playerid, COLOR_NICERED,"========================================YOU ARE BANNED=======================================");
  2420.  
  2421. format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), Has been kicked for Possible Ban Evading",plname,playerid);
  2422. SendAdminMessage(COLOR_LIGHTRED,msg2);
  2423.  
  2424. format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s Has been kicked by the anticheat for Possible Ban Evading",d,m,y,h,mi,s,plname);
  2425. KickLog(msg2);
  2426.  
  2427. OnPlayerUpdateEx(playerid);
  2428. SetTimerEx("KickPlayerOut",500,false,"i",playerid);
  2429. return 0;
  2430. }
  2431. else
  2432. {
  2433. SendClientMessage(playerid, COLOR_NICERED,"=======================================YOU ARE BANNED======================================");
  2434. SendClientMessage(playerid, COLOR_LIGHTRED,"This IP Number is banned from this Server, And never was unbanned.");
  2435. SendClientMessage(playerid, COLOR_LIGHTRED,"If you wish to be unbanned please visit our website at <changeme>");
  2436. SendClientMessage(playerid, COLOR_LIGHTRED,"Ban Evading will result in a Permanent Range Ban.");
  2437. SendClientMessage(playerid, COLOR_NICERED,"=======================================BAN INFORMATION=====================================");
  2438. format(msg2,sizeof(msg2),"Name of the account Banned on the ip %s: %s",playersip, dini_Get(bancheck,"BanName"));
  2439. SendClientMessage(playerid, COLOR_WHITE,msg2);
  2440. format(msg2,sizeof(msg2),"Ban issued by administrator: %s",dini_Get(bancheck,"BannedBy"));
  2441. SendClientMessage(playerid, COLOR_WHITE,msg2);
  2442. format(msg2,sizeof(msg2),"Ban issued on date: %s",dini_Get(bancheck,"BanDate"));
  2443. SendClientMessage(playerid, COLOR_WHITE,msg2);
  2444. format(msg2,sizeof(msg2),"Ban Reason: %s",dini_Get(bancheck,"BanReason"));
  2445. SendClientMessage(playerid, COLOR_WHITE,msg2);
  2446. SendClientMessage(playerid, COLOR_NICERED,"========================================YOU ARE BANNED=======================================");
  2447.  
  2448. format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), Has been kicked for Possible Ban Evading",plname,playerid);
  2449. SendAdminMessage(COLOR_LIGHTRED,msg2);
  2450.  
  2451. format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s Has been kicked by the anticheat for Possible Ban Evading",d,m,y,h,mi,s,plname);
  2452. KickLog(msg2);
  2453.  
  2454. format(msg2,sizeof(msg2),"LARP/Users/%s.ini",plname);
  2455. if(dini_Exists(msg2))
  2456. {
  2457. dini_IntSet(msg2,"Banned",1);
  2458. }
  2459.  
  2460. OnPlayerUpdateEx(playerid);
  2461. SetTimerEx("KickPlayerOut",500,false,"i",playerid);
  2462. return 0;
  2463. }
  2464. }
  2465.  
  2466. format(bancheck, sizeof(bancheck),"LARP/Users/%s.ini",plname);
  2467. if(dini_Exists(bancheck))
  2468. {
  2469. if(dini_Int(bancheck,"Banned") == 1)
  2470. {
  2471. ClearChatbox(playerid, 10);
  2472.  
  2473. SendClientMessage(playerid, COLOR_NICERED,"=======================================YOU ARE BANNED=======================================");
  2474. SendClientMessage(playerid, COLOR_LIGHTRED,"This Name is banned from this Server, And never was unbanned.");
  2475. SendClientMessage(playerid, COLOR_LIGHTRED,"If you wish to be unbanned please visit our website at <changeme>");
  2476. SendClientMessage(playerid, COLOR_LIGHTRED,"Ban Evading will result in a Permanent Range Ban.");
  2477. SendClientMessage(playerid, COLOR_NICERED,"============================================================================================");
  2478. format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), Has been banned for Possible Ban Evading",plname,playerid);
  2479. SendAdminMessage(COLOR_LIGHTRED,msg2);
  2480. format(msg2,sizeof(msg2),"[ADMIN]: IP %s has been added to the ban list by Anticheat Peter Griffin",playersip);
  2481. SendAdminMessage(COLOR_WHITE,msg2);
  2482.  
  2483. format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s Has been kicked by the anticheat for Possible Ban Evading",d,m,y,h,mi,s,plname);
  2484. KickLog(msg2);
  2485.  
  2486. SetTimerEx("ScriptBan",500,false,"iis",playerid,999,"Ban Evading");
  2487. return 0;
  2488. }
  2489. }
  2490.  
  2491. format(pFILE[playerid], 128, "LARP/Users/Aliases/%s.txt", plname);
  2492. dini_Create(pFILE[playerid]);
  2493. dini_Set(pFILE[playerid], "Nameip", playersip);
  2494.  
  2495. if(strlen(dini_Get("LARP/Users/Aliases/ips.txt", plname)) == 0)
  2496. {
  2497. dini_Set("LARP/Users/Aliases/ips.txt", plname, playersip);
  2498. }
  2499. else
  2500. {
  2501. if( strfind( dini_Get("LARP/Users/Aliases/ips.txt", plname), playersip, true) == -1 )
  2502. {
  2503. format(string,sizeof(string),"%s, %s", dini_Get("LARP/Users/Aliases/ips.txt",plname), playersip);
  2504. dini_Set("LARP/Users/Aliases/ips.txt", plname, string);
  2505. }
  2506. }
  2507.  
  2508. new pAKA[256];
  2509. pAKA = dini_Get("LARP/Users/Aliases/alias.txt",playersip);
  2510. new pIPs[256];
  2511. pIPs = dini_Get("LARP/Users/Aliases/ips.txt",plname);
  2512.  
  2513. if (strlen(pAKA) < 3)
  2514. {
  2515. format(string,sizeof(string),"{FF0000}[INFO]{FFFFFF}: {00FF00}%s {FFFFFF}(%d) je usao na Server. (%s)", plname, playerid,playersip);
  2516. if (strlen(pIPs) < 3) SendIP = 0;
  2517. else if (!strcmp(pIPs,playersip,true)) SendIP = 0;
  2518. else
  2519. {
  2520. if(strlen(pIPs) >= 128)
  2521. {
  2522. format(string2,sizeof(string2),"* %s (%d) ostale IP: -Previse-", plname, playerid);
  2523. }
  2524. else
  2525. {
  2526. format(string2,sizeof(string2),"* %s (%d) ostale IP: %s", plname, playerid, pIPs);
  2527. }
  2528. SendIP = 1;
  2529. }
  2530. }
  2531. else if (!strcmp(pAKA,plname,true))
  2532. {
  2533. format(string,sizeof(string),"[INFO]: %s (%d) je usao na Server. (%s)", plname, playerid,playersip);
  2534. if (strlen(pIPs) < 3) SendIP = 0;
  2535. else if (!strcmp(pIPs,playersip,true)) SendIP = 0;
  2536. else
  2537. {
  2538. if(strlen(pIPs) >= 128)
  2539. {
  2540. format(string2,sizeof(string2),"* %s (%d) ostale IP: -Previse-", plname, playerid);
  2541. }
  2542. else
  2543. {
  2544. format(string2,sizeof(string2),"* %s (%d) ostale IP: %s", plname, playerid, pIPs);
  2545. }
  2546. SendIP = 1;
  2547. }
  2548. }
  2549. else
  2550. {
  2551. format(string,sizeof(string),"{FF0000}[INFO]{FFFFFF}: {00FF00}%s {FFFFFF}(%d) je usao na Server.{00FF00}(Alias: %s)", plname, playerid, pAKA);
  2552. if (strlen(pIPs) < 3) SendIP = 0;
  2553. else if (!strcmp(pIPs,playersip,true)) SendIP = 0;
  2554. else
  2555. {
  2556. if(strlen(pIPs) >= 128)
  2557. {
  2558. format(string2,sizeof(string2),"* %s (%d) ostale IP: -previse-", plname, playerid);
  2559. }
  2560. else
  2561. {
  2562. format(string2,sizeof(string2),"* %s (%d)ostale IP: %s", plname, playerid, pIPs);
  2563. }
  2564. SendIP = 1;
  2565. }
  2566. }
  2567.  
  2568. for(new i = 0; i < MAX_PLAYERS; i++)
  2569. {
  2570. if(IsPlayerConnected(i) && playerid != i)
  2571. {
  2572. if(PlayerInfo[i][pAdmin] > 1)
  2573. {
  2574. SendClientMessage(i,COLOR_GREEN,string);
  2575. if(SendIP == 1)
  2576. {
  2577. SendClientMessage(i,COLOR_GREEN,string2);
  2578. SendIP = 0;
  2579. }
  2580. }
  2581. else
  2582. {
  2583. format(string,sizeof(string),"* %s (%d) je usao na Server", plname, playerid);
  2584. SendClientMessage(i,COLOR_GREY,string);
  2585. }
  2586. }
  2587. }
  2588.  
  2589. format(string, sizeof(string), "LARP/Users/%s.ini", plname);
  2590. SendClientMessage(playerid, COLOR_YELLOW2, "Molimo sacekajte...");
  2591. if(fexist(string))
  2592. {
  2593. gPlayerAccount[playerid] = 1;
  2594. }
  2595. else
  2596. {
  2597. gPlayerAccount[playerid] = 0;
  2598. }
  2599. //fclose(hFile);
  2600.  
  2601.  
  2602. return 1;
  2603. }
  2604.  
  2605. public JoinChannel(playerid, number, line[])
  2606. {
  2607. if(IsPlayerConnected(playerid))
  2608. {
  2609. if(strcmp(IRCInfo[number][iPassword],line, true ) == 0 )
  2610. {
  2611. JoinChannelNr(playerid, number);
  2612. }
  2613. else
  2614. {
  2615. SendClientMessage(playerid, COLOR_GREY, " Wrong Channel Password !");
  2616. }
  2617. }
  2618. return 1;
  2619. }
  2620.  
  2621. public JoinChannelNr(playerid, number)
  2622. {
  2623. if(IsPlayerConnected(playerid))
  2624. {
  2625. new string[128];
  2626. new sendername[MAX_PLAYER_NAME];
  2627. GetPlayerName(playerid, sendername, sizeof(sendername));
  2628. if(PlayersChannel[playerid] < 999)
  2629. {
  2630. format(string, sizeof(string), "* %s has left the Channel.", sendername);
  2631. SendIRCMessage(PlayersChannel[playerid], COLOR_GREEN, string);
  2632. IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
  2633. }
  2634. new channel; channel = number; channel += 1;
  2635. PlayersChannel[playerid] = number;
  2636. IRCInfo[PlayersChannel[playerid]][iPlayers] += 1;
  2637. new wstring[128];
  2638. format(string, sizeof(string), "%s", sendername);
  2639. strmid(wstring, string, 0, strlen(string), 255);
  2640. if(strcmp(IRCInfo[number][iAdmin],wstring, true ) == 0 )
  2641. {
  2642. format(string, sizeof(string), "* You have joined IRC Channel %d as the Administrator.", channel);
  2643. SendClientMessage(playerid, COLOR_YELLOW, string);
  2644. }
  2645. else
  2646. {
  2647. format(string, sizeof(string), "* You have joined IRC Channel %d, Admin: %s.", channel, IRCInfo[number][iAdmin]);
  2648. SendClientMessage(playerid, COLOR_YELLOW, string);
  2649. }
  2650. format(string, sizeof(string), "MOTD: %s.", IRCInfo[number][iMOTD]);
  2651. SendClientMessage(playerid, COLOR_YELLOW, string);
  2652. format(string, sizeof(string), "* %s has joined the Channel.", sendername);
  2653. SendIRCMessage(number, COLOR_GREEN, string);
  2654. }
  2655. return 1;
  2656. }
  2657.  
  2658. public ClearCK(ck)
  2659. {
  2660. new string[MAX_PLAYER_NAME];
  2661. format(string, sizeof(string), "No-one");
  2662. strmid(CKInfo[ck][cSendername], string, 0, strlen(string), 255);
  2663. strmid(CKInfo[ck][cGiveplayer], string, 0, strlen(string), 255);
  2664. CKInfo[ck][cUsed] = 0;
  2665. SaveCK();
  2666. return 1;
  2667. }
  2668.  
  2669. public ClearMarriage(playerid)
  2670. {
  2671. if(IsPlayerConnected(playerid))
  2672. {
  2673. new string[MAX_PLAYER_NAME];
  2674. format(string, sizeof(string), "No-one");
  2675. strmid(PlayerInfo[playerid][pMarriedTo], string, 0, strlen(string), 255);
  2676. PlayerInfo[playerid][pMarried] = 0;
  2677. }
  2678. return 1;
  2679. }
  2680.  
  2681. public ClearPaper(paper)
  2682. {
  2683. new string[MAX_PLAYER_NAME];
  2684. format(string, sizeof(string), "None");
  2685. PaperInfo[paper][PaperUsed] = 0;
  2686. strmid(PaperInfo[paper][PaperMaker], string, 0, strlen(string), 255);
  2687. strmid(PaperInfo[paper][PaperTitle], string, 0, strlen(string), 255);
  2688. strmid(PaperInfo[paper][PaperText1], string, 0, strlen(string), 255);
  2689. strmid(PaperInfo[paper][PaperText2], string, 0, strlen(string), 255);
  2690. strmid(PaperInfo[paper][PaperText3], string, 0, strlen(string), 255);
  2691. strmid(PaperInfo[paper][PaperText4], string, 0, strlen(string), 255);
  2692. strmid(PaperInfo[paper][PaperText5], string, 0, strlen(string), 255);
  2693. strmid(PaperInfo[paper][PaperText6], string, 0, strlen(string), 255);
  2694. strmid(PaperInfo[paper][PaperText7], string, 0, strlen(string), 255);
  2695. SavePapers();
  2696. return 1;
  2697. }
  2698.  
  2699. public ClearFamily(family)
  2700. {
  2701. for(new i = 0; i < MAX_PLAYERS; i++)
  2702. {
  2703. if(IsPlayerConnected(i))
  2704. {
  2705. if(PlayerInfo[i][pFMember] == family)
  2706. {
  2707. SendClientMessage(i, COLOR_WHITE, "* The Family you are in got Deleted by the Organisation Leader, you got kicked out automaticly.");
  2708. PlayerInfo[i][pFMember] = 255;
  2709. }
  2710. }
  2711. }
  2712. new string[MAX_PLAYER_NAME];
  2713. format(string, sizeof(string), "None");
  2714. FamilyInfo[family][FamilyTaken] = 0;
  2715. strmid(FamilyInfo[family][FamilyName], string, 0, strlen(string), 255);
  2716. strmid(FamilyInfo[family][FamilyMOTD], string, 0, strlen(string), 255);
  2717. strmid(FamilyInfo[family][FamilyLeader], string, 0, strlen(string), 255);
  2718. format(string, sizeof(string), "0xFF000069");
  2719. strmid(FamilyInfo[family][FamilyColor], string, 0, strlen(string), 255);
  2720. FamilyInfo[family][FamilyMembers] = 0;
  2721. FamilyInfo[family][FamilySpawn][0] = 0.0;
  2722. FamilyInfo[family][FamilySpawn][1] = 0.0;
  2723. FamilyInfo[family][FamilySpawn][2] = 0.0;
  2724. FamilyInfo[family][FamilySpawn][3] = 0.0;
  2725. FamilyInfo[family][FamilyInterior] = 0;
  2726. SaveFamilies();
  2727. return 1;
  2728. }
  2729.  
  2730. public ClearCrime(playerid)
  2731. {
  2732. if(IsPlayerConnected(playerid))
  2733. {
  2734. new string[MAX_PLAYER_NAME];
  2735. format(string, sizeof(string), "********");
  2736. strmid(PlayerCrime[playerid][pBplayer], string, 0, strlen(string), 255);
  2737. strmid(PlayerCrime[playerid][pVictim], string, 0, strlen(string), 255);
  2738. strmid(PlayerCrime[playerid][pAccusing], string, 0, strlen(string), 255);
  2739. strmid(PlayerCrime[playerid][pAccusedof], string, 0, strlen(string), 255);
  2740. strmid(PlayerInfo[playerid][pCrimeReason], "None", 0, strlen("None"), 255);
  2741. PlayerInfo[playerid][pWanted] = 0;
  2742. }
  2743. return 1;
  2744. }
  2745.  
  2746. public FishCost(playerid, fish)
  2747. {
  2748. if(IsPlayerConnected(playerid))
  2749. {
  2750. new cost = 0;
  2751. switch (fish)
  2752. {
  2753. case 1:
  2754. {
  2755. cost = 1;
  2756. }
  2757. case 2:
  2758. {
  2759. cost = 3;
  2760. }
  2761. case 3:
  2762. {
  2763. cost = 3;
  2764. }
  2765. case 5:
  2766. {
  2767. cost = 5;
  2768. }
  2769. case 6:
  2770. {
  2771. cost = 2;
  2772. }
  2773. case 8:
  2774. {
  2775. cost = 8;
  2776. }
  2777. case 9:
  2778. {
  2779. cost = 12;
  2780. }
  2781. case 11:
  2782. {
  2783. cost = 9;
  2784. }
  2785. case 12:
  2786. {
  2787. cost = 7;
  2788. }
  2789. case 14:
  2790. {
  2791. cost = 12;
  2792. }
  2793. case 15:
  2794. {
  2795. cost = 9;
  2796. }
  2797. case 16:
  2798. {
  2799. cost = 7;
  2800. }
  2801. case 17:
  2802. {
  2803. cost = 7;
  2804. }
  2805. case 18:
  2806. {
  2807. cost = 10;
  2808. }
  2809. case 19:
  2810. {
  2811. cost = 4;
  2812. }
  2813. case 21:
  2814. {
  2815. cost = 3;
  2816. }
  2817. }
  2818. return cost;
  2819. }
  2820. return 0;
  2821. }
  2822.  
  2823. public ClearFishes(playerid)
  2824. {
  2825. if(IsPlayerConnected(playerid))
  2826. {
  2827. Fishes[playerid][pFid1] = 0; Fishes[playerid][pFid2] = 0; Fishes[playerid][pFid3] = 0;
  2828. Fishes[playerid][pFid4] = 0; Fishes[playerid][pFid5] = 0;
  2829. Fishes[playerid][pWeight1] = 0; Fishes[playerid][pWeight2] = 0; Fishes[playerid][pWeight3] = 0;
  2830. Fishes[playerid][pWeight4] = 0; Fishes[playerid][pWeight5] = 0;
  2831. new string[MAX_PLAYER_NAME];
  2832. format(string, sizeof(string), "None");
  2833. strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
  2834. strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
  2835. strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
  2836. strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
  2837. strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
  2838. }
  2839. return 1;
  2840. }
  2841.  
  2842. public ClearFishID(playerid, fish)
  2843. {
  2844. if(IsPlayerConnected(playerid))
  2845. {
  2846. new string[MAX_PLAYER_NAME];
  2847. format(string, sizeof(string), "None");
  2848. switch (fish)
  2849. {
  2850. case 1:
  2851. {
  2852. strmid(Fishes[playerid][pFish1], string, 0, strlen(string), 255);
  2853. Fishes[playerid][pWeight1] = 0;
  2854. Fishes[playerid][pFid1] = 0;
  2855. }
  2856. case 2:
  2857. {
  2858. strmid(Fishes[playerid][pFish2], string, 0, strlen(string), 255);
  2859. Fishes[playerid][pWeight2] = 0;
  2860. Fishes[playerid][pFid2] = 0;
  2861. }
  2862. case 3:
  2863. {
  2864. strmid(Fishes[playerid][pFish3], string, 0, strlen(string), 255);
  2865. Fishes[playerid][pWeight3] = 0;
  2866. Fishes[playerid][pFid3] = 0;
  2867. }
  2868. case 4:
  2869. {
  2870. strmid(Fishes[playerid][pFish4], string, 0, strlen(string), 255);
  2871. Fishes[playerid][pWeight4] = 0;
  2872. Fishes[playerid][pFid4] = 0;
  2873. }
  2874. case 5:
  2875. {
  2876. strmid(Fishes[playerid][pFish5], string, 0, strlen(string), 255);
  2877. Fishes[playerid][pWeight5] = 0;
  2878. Fishes[playerid][pFid5] = 0;
  2879. }
  2880. }
  2881. }
  2882. return 1;
  2883. }
  2884.  
  2885. public ClearCooking(playerid)
  2886. {
  2887. if(IsPlayerConnected(playerid))
  2888. {
  2889. Cooking[playerid][pCookID1] = 0;
  2890. Cooking[playerid][pCookID2] = 0;
  2891. Cooking[playerid][pCookID3] = 0;
  2892. Cooking[playerid][pCookID4] = 0;
  2893. Cooking[playerid][pCookID5] = 0;
  2894. Cooking[playerid][pCWeight1] = 0;
  2895. Cooking[playerid][pCWeight2] = 0;
  2896. Cooking[playerid][pCWeight3] = 0;
  2897. Cooking[playerid][pCWeight4] = 0;
  2898. Cooking[playerid][pCWeight5] = 0;
  2899. new string[MAX_PLAYER_NAME];
  2900. format(string, sizeof(string), "Nothing");
  2901. strmid(Cooking[playerid][pCook1], string, 0, strlen(string), 255);
  2902. strmid(Cooking[playerid][pCook2], string, 0, strlen(string), 255);
  2903. strmid(Cooking[playerid][pCook3], string, 0, strlen(string), 255);
  2904. strmid(Cooking[playerid][pCook4], string, 0, strlen(string), 255);
  2905. strmid(Cooking[playerid][pCook5], string, 0, strlen(string), 255);
  2906. }
  2907. return 1;
  2908. }
  2909.  
  2910. public ClearCookingID(playerid, cook)
  2911. {
  2912. if(IsPlayerConnected(playerid))
  2913. {
  2914. new string[MAX_PLAYER_NAME];
  2915. format(string, sizeof(string), "Nothing");
  2916. switch (cook)
  2917. {
  2918. case 1:
  2919. {
  2920. strmid(Cooking[playerid][pCook1], string, 0, strlen(string), 255);
  2921. Cooking[playerid][pCWeight1] = 0;
  2922. Cooking[playerid][pCookID1] = 0;
  2923. }
  2924. case 2:
  2925. {
  2926. strmid(Cooking[playerid][pCook2], string, 0, strlen(string), 255);
  2927. Cooking[playerid][pCWeight2] = 0;
  2928. Cooking[playerid][pCookID2] = 0;
  2929. }
  2930. case 3:
  2931. {
  2932. strmid(Cooking[playerid][pCook3], string, 0, strlen(string), 255);
  2933. Cooking[playerid][pCWeight3] = 0;
  2934. Cooking[playerid][pCookID3] = 0;
  2935. }
  2936. case 4:
  2937. {
  2938. strmid(Cooking[playerid][pCook4], string, 0, strlen(string), 255);
  2939. Cooking[playerid][pCWeight4] = 0;
  2940. Cooking[playerid][pCookID4] = 0;
  2941. }
  2942. case 5:
  2943. {
  2944. strmid(Cooking[playerid][pCook5], string, 0, strlen(string), 255);
  2945. Cooking[playerid][pCWeight5] = 0;
  2946. Cooking[playerid][pCookID5] = 0;
  2947. }
  2948. }
  2949. }
  2950. return 1;
  2951. }
  2952.  
  2953. public ClearGroceries(playerid)
  2954. {
  2955. if(IsPlayerConnected(playerid))
  2956. {
  2957. Groceries[playerid][pChickens] = 0; Groceries[playerid][pChicken] = 0;
  2958. Groceries[playerid][pHamburgers] = 0; Groceries[playerid][pHamburger] = 0;
  2959. Groceries[playerid][pPizzas] = 0; Groceries[playerid][pPizza] = 0;
  2960. }
  2961. return 1;
  2962. }
  2963.  
  2964. public Lotto(number)
  2965. {
  2966. new JackpotFallen = 0;
  2967. new string[128];
  2968. new winner[MAX_PLAYER_NAME];
  2969. format(string, sizeof(string), "LOTTO: Danasnji pobednicki broj je: %d.", number);
  2970. OOCOff(COLOR_WHITE, string);
  2971. format(string, sizeof(string), "LOTTO: ~n~ Danasnji broj je: ~p~ %d", number);
  2972. GameTextForAll(string, 4000, 6);
  2973. for(new i = 0; i < MAX_PLAYERS; i++)
  2974. {
  2975. if(IsPlayerConnected(i))
  2976. {
  2977. if(PlayerInfo[i][pLottoNr] > 0)
  2978. {
  2979. if(PlayerInfo[i][pLottoNr] == number)
  2980. {
  2981. JackpotFallen = 1;
  2982. GetPlayerName(i, winner, sizeof(winner));
  2983. format(string, sizeof(string), "LOTTO: %s je dobio JackPot od $%d sa svojim Ticketom !!!", winner, Jackpot);
  2984. OOCOff(TEAM_CYAN_COLOR, string);
  2985. format(string, sizeof(string), "* Dobili ste $%d sa svojim LOTTO Ticketom !!!!", Jackpot);
  2986. SendClientMessage(i, COLOR_WHITE, string);
  2987. format(string, sizeof(string), "~g~~h~~h~je dobio LOTTO!!! ~n~~g~$%d !! ~n~~n~~n~~p~Cestitamo!!!", Jackpot);
  2988. GameTextForPlayer(i, string, 5000, 3);
  2989. //ConsumingMoney[i] = 1;
  2990. SafeGivePlayerMoney(i, Jackpot);
  2991. }
  2992. else
  2993. {
  2994. SendClientMessage(i, COLOR_WHITE, "Niste osvojili LOTTO ovog puta!");
  2995. }
  2996. }
  2997. PlayerInfo[i][pLottoNr] = 0;
  2998. }
  2999. }
  3000. if(JackpotFallen)
  3001. {
  3002. new rand = random(10000); rand += 5789;
  3003. Jackpot = rand;
  3004. SaveStuff();
  3005. format(string, sizeof(string), "LOTTO: Novi JackPot je poceo sa $%d.", Jackpot);
  3006. OOCOff(COLOR_WHITE, string);
  3007. }
  3008. else
  3009. {
  3010. new rand = random(5000); rand += 2158;
  3011. Jackpot += rand;
  3012. SaveStuff();
  3013. format(string, sizeof(string), "LOTTO: JackPot povecan na $%d.", Jackpot);
  3014. OOCOff(COLOR_WHITE, string);
  3015. }
  3016. return 1;
  3017. }
  3018.  
  3019. //------------------------------------------------------------------------------------------------------
  3020. public OnPlayerDisconnect(playerid, reason)
  3021. {
  3022. new textreason[64];
  3023. new plname[24];
  3024. GetPlayerName(playerid, plname, sizeof(plname));
  3025. new playersip[24];
  3026. GetPlayerIp(playerid, playersip, sizeof(playersip));
  3027. new string2[128];
  3028. if(PlayerInfo[playerid][pAdminDuty] == 1)
  3029. {
  3030. SafeResetPlayerWeapons(playerid);
  3031. }
  3032. if(Searching[playerid] == 1)
  3033. {
  3034. RemovePlayerMapIcon(playerid, 500 + playerid);
  3035. Searching[playerid] = 0;
  3036. }
  3037. if(Ronned[playerid] >= 1)
  3038. {
  3039. KillTimer(RonnTimer[playerid]);
  3040. }
  3041. if(PlayerCuffed[playerid])
  3042. {
  3043. KillTimer(cufftimer[playerid]);
  3044. }
  3045.  
  3046. if(playerid == beingvoted && reason != 2)
  3047. {
  3048. KillTimer(votetimer1);
  3049. KillTimer(votetimer2);
  3050. format(string2,sizeof(string2),"[VOTATION]: %s (%d) has logged out, votation over!",plname,playerid);
  3051. SendClientMessageToAll(TEAM_GROVE_COLOR,string2);
  3052. votetimer1 = SetTimer("ResetVotation",300000,false);
  3053. }
  3054. if(PlayerCuffed[playerid] > 0)
  3055. {
  3056. KillTimer(cufftimer[playerid]);
  3057. }
  3058.  
  3059. if(Tazer[playerid] == 1) { SafeGivePlayerWeapon(playerid, 24, PreTazerAmmo[playerid]); }
  3060. Delete3DTextLabel(DutyLabel[playerid]);
  3061. gActivePlayers[playerid]--;
  3062. numplayers--;
  3063. RemovePlayerMapIcon(playerid, 37 + playerid);
  3064. TextDrawDestroy(Textdraw64[playerid]);
  3065. TextDrawDestroy(Textdraw54[playerid]);
  3066. TextDrawDestroy(Textdraw53[playerid]);
  3067. TextDrawDestroy(Textdraw52[playerid]);
  3068. TextDrawDestroy(Textdraw51[playerid]);
  3069. TextDrawDestroy(Textdraw49[playerid]);
  3070. TextDrawDestroy(Textdraw42[playerid]);
  3071. TextDrawDestroy(Textdraw41[playerid]);
  3072. TextDrawDestroy(Textdraw40[playerid]);
  3073. TextDrawDestroy(Textdraw39[playerid]);
  3074. TextDrawDestroy(Textdraw1[playerid]);
  3075. KillTimer(TrainTimer[playerid]);
  3076. KillTimer(MoneyTimer[playerid]);
  3077. if(IsPlayerInEVehicle[playerid] != 9999)
  3078. {
  3079. new i = IsPlayerInEVehicle[playerid];
  3080. Seats[i] --;
  3081. }
  3082. new string[24];
  3083. new d,m,y,h,mi,s;
  3084. getdate(y,m,d);
  3085. gettime(h,mi,s);
  3086. format(string, sizeof(string), "%d/%d/%d at %d:%d:%d",d,m,y,h,mi,s);
  3087. strmid(PlayerInfo[playerid][pLastSeen], string, 0, strlen(string), 255);
  3088. if(reason == 0)
  3089. {
  3090. textreason = "Crashed";
  3091. strmid(PlayerInfo[playerid][pWhyLeft], "Crashed", 0, strlen("Crashed"), 255);
  3092. format(string2, sizeof(string2),"{FFFFFF}[{FF0000}INFO{FFFFFF}]: {00FF00}%s {FFFFFF}je izasao sa Servera. [{FF0000}%s{FFFFFF}]",plname, textreason);
  3093. SendAdminMessage(COLOR_GREEN, string2);
  3094. }
  3095. else if(reason == 1)
  3096. {
  3097. textreason = "Leaving";
  3098. strmid(PlayerInfo[playerid][pWhyLeft], "Leaving", 0, strlen("Leaving"), 255);
  3099. format(string2, sizeof(string2),"{FFFFFF}[{FF0000}INFO{FFFFFF}]: {00FF00}%s {FFFFFF}je izasao sa Servera. [{FF0000}%s{FFFFFF}]",plname, textreason);
  3100. SendAdminMessage(COLOR_GREEN, string2);
  3101. }
  3102. else if(reason == 2)
  3103. {
  3104. strmid(PlayerInfo[playerid][pWhyLeft], "Kicked/Banned", 0, strlen("Kicked/Banned"), 255);
  3105. }
  3106. SaveGuns(playerid);
  3107. OnPlayerUpdateEx(playerid);
  3108. if(OfficerCourseStep[playerid] != 255)
  3109. {
  3110. SafeGivePlayerMoney(playerid, -2500);
  3111. }
  3112. if(OnOfficerTest[playerid] != 0)
  3113. {
  3114. SafeGivePlayerMoney(playerid, -5000);
  3115. }
  3116. if(ServerRestarted == 0)
  3117. {
  3118. UpdatePlayerPosition(playerid)
  3119. }
  3120. KillTimer(ChangeNameTimer);
  3121. OnPlayerUpdateEx(playerid);
  3122. for(new i = 0; i < MAX_PLAYERS; i++)
  3123. {
  3124. if(IsPlayerConnected(i))
  3125. {
  3126. if(TaxiAccepted[i] < 999)
  3127. {
  3128. if(TaxiAccepted[i] == playerid)
  3129. {
  3130. TaxiAccepted[i] = 999;
  3131. GameTextForPlayer(i, "~w~Taxi Caller~n~~r~Left the game", 5000, 1);
  3132. TaxiCallTime[i] = 0;
  3133. DisablePlayerCheckpoint(i);
  3134. }
  3135. }
  3136. else if(BusAccepted[i] < 999)
  3137. {
  3138. if(BusAccepted[i] == playerid)
  3139. {
  3140. BusAccepted[i] = 999;
  3141. GameTextForPlayer(i, "~w~Bus Caller~n~~r~Left the game", 5000, 1);
  3142. BusCallTime[i] = 0;
  3143. DisablePlayerCheckpoint(i);
  3144. }
  3145. }
  3146. }
  3147. }
  3148. if(PlayerInfo[playerid][pAdmin] >= 1)
  3149. {
  3150. admins --;
  3151. if(AFK[playerid] == 1)
  3152. {
  3153. afkadmins --;
  3154. }
  3155. }
  3156. KillTimer(DildoTimerReset);
  3157. /*if(GettingCK[playerid] < 999)
  3158. {
  3159. if(IsPlayerConnected(GettingCK[playerid]))
  3160. {
  3161. SendClientMessage(GettingCK[playerid], COLOR_YELLOW, "Your Character Kill has left the server, try again later.");
  3162. OnCK[GettingCK[playerid]] = 999;
  3163. }
  3164. }*/
  3165. if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
  3166. {
  3167. if(IsPlayerConnected(TransportDriver[playerid]))
  3168. {
  3169. new string5[64];
  3170. TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
  3171. TransportTime[TransportDriver[playerid]] = 0;
  3172. TransportCost[TransportDriver[playerid]] = 0;
  3173. format(string5, sizeof(string5), "~w~Passenger left~n~~g~Earned $%d",TransportCost[playerid]);
  3174. GameTextForPlayer(TransportDriver[playerid], string5, 5000, 1);
  3175. }
  3176. }
  3177. if(GotHit[playerid] > 0)
  3178. {
  3179. if(GetChased[playerid] < 999)
  3180. {
  3181. if(IsPlayerConnected(GetChased[playerid]))
  3182. {
  3183. SendClientMessage(GetChased[playerid], COLOR_YELLOW, "Your Hit has left the server.");
  3184. GoChase[GetChased[playerid]] = 999;
  3185. }
  3186. }
  3187. }
  3188. if(PlayersChannel[playerid] < 999)
  3189. {
  3190. IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
  3191. }
  3192. if(HireCar[playerid] != 299)
  3193. {
  3194. gLastDriver[HireCar[playerid]] = 300;
  3195. gCarLock[HireCar[playerid]] = 0;
  3196. UnLockCar(HireCar[playerid]);
  3197. if(reason != 0)
  3198. {
  3199. SetVehicleToRespawn(HireCar[playerid]);
  3200. }
  3201. }
  3202. if(GangCar[playerid] != 512)
  3203. {
  3204. gLastDriver[GangCar[playerid]] = 520;
  3205. gCarLock[GangCar[playerid]] = 0;
  3206. UnLockCar(GangCar[playerid]);
  3207. }
  3208. if (gLastCar[playerid] > 0)
  3209. {
  3210. gLastDriver[gLastCar[playerid]] = 300;
  3211. if(PlayerInfo[playerid][pPhousekey] != gLastCar[playerid]-1)
  3212. {
  3213. gCarLock[gLastCar[playerid]] = 0;
  3214. UnLockCar(gLastCar[playerid]);
  3215. }
  3216. }
  3217. if(PlayerBoxing[playerid] > 0)
  3218. {
  3219. if(Boxer1 == playerid)
  3220. {
  3221. if(IsPlayerConnected(Boxer2))
  3222. {
  3223. PlayerBoxing[Boxer2] = 0;
  3224. SafeSetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);
  3225. SafeSetPlayerInterior(Boxer2, 5);
  3226. GameTextForPlayer(Boxer2, "~r~Match interupted", 5000, 1);
  3227. }
  3228. }
  3229. else if(Boxer2 == playerid)
  3230. {
  3231. if(IsPlayerConnected(Boxer1))
  3232. {
  3233. PlayerBoxing[Boxer1] = 0;
  3234. SafeSetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186);
  3235. SafeSetPlayerInterior(Boxer1, 5);
Advertisement
Add Comment
Please, Sign In to add comment