Guest User

Untitled

a guest
May 21st, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 38.66 KB | None | 0 0
  1. public OnPlayerConnect(playerid)
  2. {
  3. //----------------------------------------FBI----------------------------------------
  4. RemoveBuildingForPlayer(playerid, 713, 1304.7734, -1753.5859, 12.4375, 0.25);
  5. RemoveBuildingForPlayer(playerid, 713, 1304.7734, -1729.9375, 12.4375, 0.25);
  6. RemoveBuildingForPlayer(playerid, 713, 1304.7734, -1780.1094, 12.4375, 0.25);
  7. RemoveBuildingForPlayer(playerid, 713, 1304.7734, -1808.4922, 12.4375, 0.25);
  8. RemoveBuildingForPlayer(playerid, 713, 1304.7734, -1839.8672, 12.4375, 0.25);
  9. RemoveBuildingForPlayer(playerid, 6253, 1305.4688, -1619.7422, 13.3984, 0.25);
  10. RemoveBuildingForPlayer(playerid, 620, 1304.1172, -1696.7969, 12.2891, 0.25);
  11. RemoveBuildingForPlayer(playerid, 620, 1305.6719, -1669.8984, 12.5859, 0.25);
  12. RemoveBuildingForPlayer(playerid, 1290, 1305.0078, -1662.3359, 18.2266, 0.25);
  13. RemoveBuildingForPlayer(playerid, 1290, 1305.0078, -1642.3281, 18.2266, 0.25);
  14. RemoveBuildingForPlayer(playerid, 620, 1305.5625, -1641.5313, 12.2891, 0.25);
  15. RemoveBuildingForPlayer(playerid, 620, 1305.5625, -1614.8281, 12.2891, 0.25);
  16. RemoveBuildingForPlayer(playerid, 6046, 1305.4688, -1619.7422, 13.3984, 0.25);
  17. RemoveBuildingForPlayer(playerid, 1290, 1305.0078, -1622.3281, 18.2266, 0.25);
  18. RemoveBuildingForPlayer(playerid, 1290, 1305.0078, -1602.3281, 18.2266, 0.25);
  19. RemoveBuildingForPlayer(playerid, 620, 1305.6719, -1583.7031, 12.5859, 0.25);
  20. RemoveBuildingForPlayer(playerid, 1290, 1305.0078, -1582.3203, 18.2266, 0.25);
  21.    
  22. //--------------------------------------------vinewood remove i jos pored tog------------------------------------
  23.     RemoveBuildingForPlayer(playerid, 13759, 1413.4141, -804.7422, 83.4375, 0.25);
  24.     RemoveBuildingForPlayer(playerid, 620, 1375.0859, -813.5391, 69.5703, 0.25);
  25.     RemoveBuildingForPlayer(playerid, 13722, 1413.4141, -804.7422, 83.4375, 0.25);
  26.     RemoveBuildingForPlayer(playerid, 13831, 1413.4141, -804.7422, 83.4375, 0.25);
  27.     RemoveBuildingForPlayer(playerid, 3763, 1459.1797, -783.2656, 124.3906, 0.25);
  28. //------------------------------------------park kod pd---------------------------------
  29.     RemoveBuildingForPlayer(playerid, 1266, 1538.5234, -1609.8047, 19.8438, 0.25);
  30.     RemoveBuildingForPlayer(playerid, 4229, 1597.9063, -1699.7500, 30.2109, 0.25);
  31.     RemoveBuildingForPlayer(playerid, 4230, 1597.9063, -1699.7500, 30.2109, 0.25);
  32.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1705.2734, 16.4219, 0.25);
  33.     RemoveBuildingForPlayer(playerid, 1229, 1524.2188, -1693.9688, 14.1094, 0.25);
  34.     RemoveBuildingForPlayer(playerid, 647, 1546.6016, -1693.3906, 14.4375, 0.25);
  35.     RemoveBuildingForPlayer(playerid, 620, 1547.5703, -1689.9844, 13.0469, 0.25);
  36.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1688.0859, 16.4219, 0.25);
  37.     RemoveBuildingForPlayer(playerid, 647, 1546.8672, -1687.1016, 14.4375, 0.25);
  38.     RemoveBuildingForPlayer(playerid, 646, 1545.5234, -1678.8438, 14.0000, 0.25);
  39.     RemoveBuildingForPlayer(playerid, 646, 1553.8672, -1677.7266, 16.4375, 0.25);
  40.     RemoveBuildingForPlayer(playerid, 1229, 1524.2188, -1673.7109, 14.1094, 0.25);
  41.     RemoveBuildingForPlayer(playerid, 646, 1553.8672, -1673.4609, 16.4375, 0.25);
  42.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1668.0781, 16.4219, 0.25);
  43.     RemoveBuildingForPlayer(playerid, 646, 1545.5625, -1672.2188, 14.0000, 0.25);
  44.     RemoveBuildingForPlayer(playerid, 647, 1546.6016, -1664.6250, 14.4375, 0.25);
  45.     RemoveBuildingForPlayer(playerid, 647, 1546.8672, -1658.3438, 14.4375, 0.25);
  46.     RemoveBuildingForPlayer(playerid, 620, 1547.5703, -1661.0313, 13.0469, 0.25);
  47.     RemoveBuildingForPlayer(playerid, 4192, 1591.6953, -1674.8516, 20.4922, 0.25);
  48.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1647.6406, 16.4219, 0.25);
  49.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1621.9609, 16.4219, 0.25);
  50.     RemoveBuildingForPlayer(playerid, 1226, 1525.3828, -1611.1563, 16.4219, 0.25);
  51.     RemoveBuildingForPlayer(playerid, 1260, 1538.5234, -1609.8047, 19.8438, 0.25);
  52. //---------------------------------------------Opstina--------------------------------------------
  53.     RemoveBuildingForPlayer(playerid, 4024, 1479.8672, -1790.3984, 56.0234, 0.25);
  54.     RemoveBuildingForPlayer(playerid, 4044, 1481.1875, -1785.0703, 22.3828, 0.25);
  55.     RemoveBuildingForPlayer(playerid, 4045, 1479.3359, -1802.2891, 12.5469, 0.25);
  56.     RemoveBuildingForPlayer(playerid, 4046, 1479.5234, -1852.6406, 24.5156, 0.25);
  57.     RemoveBuildingForPlayer(playerid, 4047, 1531.6328, -1852.6406, 24.5156, 0.25);
  58.     RemoveBuildingForPlayer(playerid, 1527, 1448.2344, -1755.8984, 14.5234, 0.25);
  59.     RemoveBuildingForPlayer(playerid, 4217, 1449.2500, -1852.5703, 22.3672, 0.25);
  60.     RemoveBuildingForPlayer(playerid, 713, 1407.1953, -1749.3125, 13.0938, 0.25);
  61.     RemoveBuildingForPlayer(playerid, 1266, 1482.0859, -1859.9688, 25.0391, 0.25);
  62.     RemoveBuildingForPlayer(playerid, 713, 1405.2344, -1821.1172, 13.1016, 0.25);
  63.     RemoveBuildingForPlayer(playerid, 620, 1417.9766, -1832.5313, 11.9844, 0.25);
  64.     RemoveBuildingForPlayer(playerid, 673, 1405.5781, -1831.6953, 12.3984, 0.25);
  65.     RemoveBuildingForPlayer(playerid, 1265, 1465.4766, -1848.2500, 12.9922, 0.25);
  66.     RemoveBuildingForPlayer(playerid, 1372, 1466.9453, -1847.8438, 12.6641, 0.25);
  67.     RemoveBuildingForPlayer(playerid, 1372, 1419.7344, -1846.5469, 12.6641, 0.25);
  68.     RemoveBuildingForPlayer(playerid, 1265, 1420.4297, -1845.3438, 12.9844, 0.25);
  69.     RemoveBuildingForPlayer(playerid, 1372, 1419.6953, -1844.2031, 12.6641, 0.25);
  70.     RemoveBuildingForPlayer(playerid, 1220, 1420.4922, -1842.4375, 12.9297, 0.25);
  71.     RemoveBuildingForPlayer(playerid, 1220, 1419.7266, -1842.8516, 12.9297, 0.25);
  72.     RemoveBuildingForPlayer(playerid, 1230, 1419.6719, -1842.0313, 12.9766, 0.25);
  73.     RemoveBuildingForPlayer(playerid, 4170, 1433.9531, -1844.4063, 21.4219, 0.25);
  74.     RemoveBuildingForPlayer(playerid, 4174, 1435.7656, -1823.6641, 15.1797, 0.25);
  75.     RemoveBuildingForPlayer(playerid, 620, 1456.3984, -1832.5313, 11.9844, 0.25);
  76.     RemoveBuildingForPlayer(playerid, 1260, 1482.0859, -1859.9688, 25.0391, 0.25);
  77.     RemoveBuildingForPlayer(playerid, 4004, 1479.5234, -1852.6406, 24.5156, 0.25);
  78.     RemoveBuildingForPlayer(playerid, 1357, 1487.6953, -1848.1094, 12.8125, 0.25);
  79.     RemoveBuildingForPlayer(playerid, 1372, 1486.2109, -1848.1250, 12.6641, 0.25);
  80.     RemoveBuildingForPlayer(playerid, 1372, 1468.0625, -1847.7891, 12.6641, 0.25);
  81.     RemoveBuildingForPlayer(playerid, 1230, 1488.9219, -1848.2734, 12.9766, 0.25);
  82.     RemoveBuildingForPlayer(playerid, 3997, 1479.3359, -1802.2891, 12.5469, 0.25);
  83.     RemoveBuildingForPlayer(playerid, 4171, 1503.3984, -1848.3359, 21.4609, 0.25);
  84.     RemoveBuildingForPlayer(playerid, 620, 1504.8438, -1832.5313, 11.9844, 0.25);
  85.     RemoveBuildingForPlayer(playerid, 1265, 1515.3828, -1850.0547, 12.9844, 0.25);
  86.     RemoveBuildingForPlayer(playerid, 1265, 1514.4219, -1850.0391, 12.9922, 0.25);
  87.     RemoveBuildingForPlayer(playerid, 1372, 1516.6875, -1850.0547, 12.6641, 0.25);
  88.     RemoveBuildingForPlayer(playerid, 700, 1404.9141, -1765.2656, 12.9141, 0.25);
  89.     RemoveBuildingForPlayer(playerid, 4173, 1427.2734, -1756.1797, 15.0000, 0.25);
  90.     RemoveBuildingForPlayer(playerid, 673, 1415.3125, -1748.5625, 12.3984, 0.25);
  91.     RemoveBuildingForPlayer(playerid, 620, 1429.5313, -1748.4219, 12.9063, 0.25);
  92.     RemoveBuildingForPlayer(playerid, 700, 1438.0313, -1747.9375, 13.4453, 0.25);
  93.     RemoveBuildingForPlayer(playerid, 620, 1447.9063, -1748.2266, 12.9063, 0.25);
  94.     RemoveBuildingForPlayer(playerid, 4002, 1479.8672, -1790.3984, 56.0234, 0.25);
  95.     RemoveBuildingForPlayer(playerid, 3980, 1481.1875, -1785.0703, 22.3828, 0.25);
  96.     RemoveBuildingForPlayer(playerid, 4003, 1481.0781, -1747.0313, 33.5234, 0.25);
  97.     RemoveBuildingForPlayer(playerid, 620, 1516.0000, -1748.6016, 13.0078, 0.25);
  98.     RemoveBuildingForPlayer(playerid, 4048, 1531.6328, -1852.6406, 24.5156, 0.25);
  99.     RemoveBuildingForPlayer(playerid, 1372, 1538.9453, -1849.2734, 12.6641, 0.25);
  100.     RemoveBuildingForPlayer(playerid, 1230, 1538.8359, -1847.6250, 13.6719, 0.25);
  101.     RemoveBuildingForPlayer(playerid, 1220, 1538.3906, -1847.9297, 12.9297, 0.25);
  102.     RemoveBuildingForPlayer(playerid, 1220, 1539.1016, -1847.2969, 12.9297, 0.25);
  103.     RemoveBuildingForPlayer(playerid, 620, 1549.5313, -1832.3125, 12.8828, 0.25);
  104.     RemoveBuildingForPlayer(playerid, 673, 1555.6641, -1830.5938, 13.0234, 0.25);
  105.     RemoveBuildingForPlayer(playerid, 4175, 1524.4141, -1823.8516, 15.1797, 0.25);
  106.     RemoveBuildingForPlayer(playerid, 700, 1554.8203, -1816.1563, 13.4766, 0.25);
  107.     RemoveBuildingForPlayer(playerid, 673, 1553.2578, -1764.8125, 12.7969, 0.25);
  108.     RemoveBuildingForPlayer(playerid, 4172, 1534.7656, -1756.1797, 15.0000, 0.25);
  109.     RemoveBuildingForPlayer(playerid, 620, 1533.2656, -1749.0234, 12.8047, 0.25);
  110.     RemoveBuildingForPlayer(playerid, 673, 1522.1641, -1748.5703, 13.0234, 0.25);
  111.     RemoveBuildingForPlayer(playerid, 700, 1553.7031, -1747.9375, 13.4063, 0.25);
  112. //--------------------------------------------adriano---------------------------------------
  113.     RemoveBuildingForPlayer(playerid, 620, 367.8203, -1315.4141, 13.2344, 0.25);
  114.     RemoveBuildingForPlayer(playerid, 620, 371.9844, -1318.5078, 13.2344, 0.25);
  115.     RemoveBuildingForPlayer(playerid, 620, 384.9922, -1317.0313, 13.2344, 0.25);
  116.     RemoveBuildingForPlayer(playerid, 3726, 360.1563, -1283.8359, 50.0625, 0.25);
  117.     RemoveBuildingForPlayer(playerid, 3766, 339.4453, -1300.0469, 48.8594, 0.25);
  118.     RemoveBuildingForPlayer(playerid, 13878, 370.0156, -1236.7813, 61.7891, 0.25);
  119.     RemoveBuildingForPlayer(playerid, 620, 326.9531, -1313.6875, 44.7031, 0.25);
  120.     RemoveBuildingForPlayer(playerid, 669, 323.8359, -1298.0703, 51.6172, 0.25);
  121.     RemoveBuildingForPlayer(playerid, 1226, 324.5625, -1292.3828, 57.0391, 0.25);
  122.     RemoveBuildingForPlayer(playerid, 1691, 340.1875, -1305.7422, 53.6484, 0.25);
  123.     RemoveBuildingForPlayer(playerid, 3764, 339.4453, -1300.0469, 48.8594, 0.25);
  124.     RemoveBuildingForPlayer(playerid, 1687, 342.9766, -1301.6328, 54.0391, 0.25);
  125.     RemoveBuildingForPlayer(playerid, 620, 346.1250, -1285.8984, 49.9141, 0.25);
  126.     RemoveBuildingForPlayer(playerid, 620, 351.0469, -1296.2266, 45.5938, 0.25);
  127.     RemoveBuildingForPlayer(playerid, 1691, 356.7656, -1286.2344, 57.4531, 0.25);
  128.     RemoveBuildingForPlayer(playerid, 3602, 360.1563, -1283.8359, 50.0625, 0.25);
  129.     RemoveBuildingForPlayer(playerid, 1687, 363.3047, -1282.9531, 57.8594, 0.25);
  130.     RemoveBuildingForPlayer(playerid, 691, 375.6094, -1285.7500, 43.3281, 0.25);
  131.     RemoveBuildingForPlayer(playerid, 13748, 370.0156, -1236.7813, 61.7891, 0.25);
  132. //----------------------------------------kuca d;e---------------------------------------
  133.     RemoveBuildingForPlayer(playerid, 3754, 1339.3672, -2564.5547, 17.0938, 0.25);
  134. //-----------------------------------------benzinska------------------------------------
  135.     RemoveBuildingForPlayer(playerid, 5928, 1309.9141, -1330.1328, 25.1875, 0.25);
  136.     RemoveBuildingForPlayer(playerid, 620, 1321.5234, -1374.4297, 12.5859, 0.25);
  137.     RemoveBuildingForPlayer(playerid, 620, 1292.0000, -1374.2969, 12.3672, 0.25);
  138.     RemoveBuildingForPlayer(playerid, 620, 1300.5859, -1374.2969, 12.3672, 0.25);
  139.     RemoveBuildingForPlayer(playerid, 5704, 1309.9141, -1330.1328, 25.1875, 0.25);
  140.     RemoveBuildingForPlayer(playerid, 1285, 1323.0391, -1286.7266, 13.2031, 0.25);
  141.     RemoveBuildingForPlayer(playerid, 1286, 1324.0547, -1286.7266, 13.2031, 0.25);
  142.     RemoveBuildingForPlayer(playerid, 620, 1329.4766, -1374.4297, 12.5859, 0.25);
  143.     RemoveBuildingForPlayer(playerid, 620, 1330.6016, -1340.9844, 6.1094, 0.25);
  144.     RemoveBuildingForPlayer(playerid, 620, 1326.6953, -1316.0078, 8.7266, 0.25);
  145.     RemoveBuildingForPlayer(playerid, 620, 1327.5938, -1333.6719, 6.1094, 0.25);
  146.     RemoveBuildingForPlayer(playerid, 620, 1332.0000, -1309.4297, 8.7266, 0.25);
  147.     RemoveBuildingForPlayer(playerid, 1287, 1325.0156, -1286.7266, 13.2031, 0.25);
  148.     RemoveBuildingForPlayer(playerid, 1288, 1325.9531, -1286.7266, 13.2031, 0.25);
  149.     RemoveBuildingForPlayer(playerid, 1289, 1326.7188, -1286.7266, 13.2031, 0.25);
  150.     RemoveBuildingForPlayer(playerid, 1283, 1332.0625, -1281.4609, 15.5156, 0.25);
  151. //-------------------------------banka------------------------------------------------
  152.     RemoveBuildingForPlayer(playerid, 716, 1510.6406, -1024.8125, 22.7969, 0.25);
  153. //-----------------------------------PD-------------------------------------------------
  154.     RemoveBuildingForPlayer(playerid, 1266, 1538.5234, -1609.8047, 19.8438, 0.25);
  155.     RemoveBuildingForPlayer(playerid, 4229, 1597.9063, -1699.7500, 30.2109, 0.25);
  156.     RemoveBuildingForPlayer(playerid, 4230, 1597.9063, -1699.7500, 30.2109, 0.25);
  157.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1705.2734, 16.4219, 0.25);
  158.     RemoveBuildingForPlayer(playerid, 1229, 1524.2188, -1693.9688, 14.1094, 0.25);
  159.     RemoveBuildingForPlayer(playerid, 647, 1546.6016, -1693.3906, 14.4375, 0.25);
  160.     RemoveBuildingForPlayer(playerid, 620, 1547.5703, -1689.9844, 13.0469, 0.25);
  161.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1688.0859, 16.4219, 0.25);
  162.     RemoveBuildingForPlayer(playerid, 647, 1546.8672, -1687.1016, 14.4375, 0.25);
  163.     RemoveBuildingForPlayer(playerid, 646, 1545.5234, -1678.8438, 14.0000, 0.25);
  164.     RemoveBuildingForPlayer(playerid, 646, 1553.8672, -1677.7266, 16.4375, 0.25);
  165.     RemoveBuildingForPlayer(playerid, 1229, 1524.2188, -1673.7109, 14.1094, 0.25);
  166.     RemoveBuildingForPlayer(playerid, 646, 1553.8672, -1673.4609, 16.4375, 0.25);
  167.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1668.0781, 16.4219, 0.25);
  168.     RemoveBuildingForPlayer(playerid, 646, 1545.5625, -1672.2188, 14.0000, 0.25);
  169.     RemoveBuildingForPlayer(playerid, 647, 1546.6016, -1664.6250, 14.4375, 0.25);
  170.     RemoveBuildingForPlayer(playerid, 647, 1546.8672, -1658.3438, 14.4375, 0.25);
  171.     RemoveBuildingForPlayer(playerid, 620, 1547.5703, -1661.0313, 13.0469, 0.25);
  172.     RemoveBuildingForPlayer(playerid, 4192, 1591.6953, -1674.8516, 20.4922, 0.25);
  173.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1647.6406, 16.4219, 0.25);
  174.     RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1621.9609, 16.4219, 0.25);
  175.     RemoveBuildingForPlayer(playerid, 1226, 1525.3828, -1611.1563, 16.4219, 0.25);
  176.     RemoveBuildingForPlayer(playerid, 1260, 1538.5234, -1609.8047, 19.8438, 0.25);
  177. //-----------------------------------------auto pijaca-------------------------------------------
  178.    
  179.  
  180.     RemoveBuildingForPlayer(playerid, 4638, 1625.7500, -1139.1484, 24.5000, 0.25);
  181.     RemoveBuildingForPlayer(playerid, 4642, 1623.3828, -1042.0938, 24.5000, 0.25);
  182.     RemoveBuildingForPlayer(playerid, 4639, 1654.0625, -1076.4219, 24.5000, 0.25);
  183.     RemoveBuildingForPlayer(playerid, 4640, 1728.7891, -1065.0938, 24.5000, 0.25);
  184.     RemoveBuildingForPlayer(playerid, 4641, 1788.5391, -1026.3516, 24.5000, 0.25);
  185.  
  186.    
  187.    
  188. //--------------------------------------------------------------------------------------------------------------------------------
  189.  
  190.  
  191.     new string[100];
  192.     new plname[MAX_PLAYER_NAME];
  193.     new playersip[64];
  194.     new zone[MAX_ZONE_NAME];
  195.     GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
  196.     GetPlayerName(playerid, plname, sizeof(plname));
  197.     GetPlayerIp(playerid,playersip,sizeof(playersip));
  198.     new namestring = strfind(plname, "_", true);
  199.     format(string, sizeof(string),"%s",playersip);
  200.     gPlayerUsingLoopingAnim[playerid] = 0;
  201.     gPlayerAnimLibsPreloaded[playerid] = 0;
  202.     if(AntiName == 1)
  203.     {
  204.         if(namestring == -1)
  205.         {
  206.             format(string, sizeof(string),"[ APB|RP ] %s, Je kikovan zbog nepravilnog Imena",plname);
  207.             SendClientMessageToAll(COLOR_NICERED, string);
  208.             SendClientMessage(playerid, COLOR_YELLOW2, "Vase ime nije prihvatljivo.");
  209.             SendClientMessage(playerid, COLOR_YELLOW2, "Napomena: Vase ime mora biti u formatu Ime_Prezime.");
  210.             new y, m, d;
  211.             new h,mi,s;
  212.             getdate(y,m,d);
  213.             gettime(h,mi,s);
  214.             format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat je kikovao %s zbog nepravilnog Imena",d,m,y,h,mi,s,plname);
  215.             KickLog(string);
  216.             Kick(playerid);
  217.             return 1;
  218.         }
  219.     }
  220.     if(IsPlayerNPC(playerid))
  221.     {
  222.         SpawnPlayer(playerid);
  223.         return 1;
  224.     }
  225.     PlayAudioStreamForPlayer(playerid,"http://k007.kiwi6.com/hotlink/qnyue1p6f3/gta_san_andreas_cj_rap.mp3");
  226.     format(string, sizeof(string),"{0049FF}%s {FFFFFF}se pridruzio na {6EF83C}APB RolePlay{FFFFFF}",plname);
  227.     SendAdminMessage(COLOR_GREEN, string);
  228.     format(string, sizeof(string),"{0049FF}%s {FFFFFF}se pridruzio na {6EF83C}APB RolePlay{FFFFFF}",plname);
  229.     for(new i=0; i < MAX_PLAYERS; i++)
  230.     {
  231.         if(IsPlayerConnected(i))
  232.         {
  233.             if(PlayerInfo[i][pAdmin] < 1)
  234.             {
  235.                 SendClientMessage(i, COLOR_GREY, string);
  236.             }
  237.         }
  238.     }
  239.     SetTimerEx("showmotd",4000, false, "i", playerid);
  240.     SetTimerEx("hidemotd", 80000, false, "i", playerid);
  241.     gActivePlayers[playerid]++;
  242.     numplayers++;
  243.     TestPoints[playerid] = 0;
  244.     OfficerCourseStep[playerid] = 255;
  245.     IsPlayerInEVehicle[playerid] = 9999;
  246.     Searching[playerid] = 0;
  247.     admin[playerid] = 0;
  248.     AFK[playerid] = 0;
  249.     UsedAreaRecently[playerid] = 0;
  250.     SelectChar[playerid] = 0;
  251.     HidePM[playerid] = 0;
  252.     PhoneOnline[playerid] = 0;
  253.     SelectCharID[playerid] = 0;
  254.     SelectCharPlace[playerid] = 0;
  255.     ChosenSkin[playerid] = 0;
  256.     GettingJob[playerid] = 0;
  257.     GuardOffer[playerid] = 999;
  258.     GuardPrice[playerid] = 0;
  259.     ApprovedLawyer[playerid] = 0;
  260.     CallLawyer[playerid] = 0;
  261.     WantLawyer[playerid] = 0;
  262.     KickPlayer[playerid] = 0;
  263.     UsedFind[playerid] = 0;
  264.     CP[playerid] = 0;
  265.     Robbed[playerid] = 0;
  266.     CarOffer[playerid] = 999;
  267.     CarPrice[playerid] = 0;
  268.     CarID[playerid] = 0;
  269.     CarCalls[playerid] = 0;
  270.     RobbedTime[playerid] = 0;
  271.     MoneyMessage[playerid] = 0;
  272.     Condom[playerid] = 0;
  273.     Rope[playerid] = 0;
  274.     STDPlayer[playerid] = 0;
  275.     SexOffer[playerid] = 999;
  276.     SexPrice[playerid] = 0;
  277.     RepairOffer[playerid] = 999;
  278.     RepairPrice[playerid] = 0;
  279.     RepairCar[playerid] = 0;
  280.     votedrecently[playerid] = 0;
  281.     Showing[playerid] = 0;
  282.     TalkingLive[playerid] = 255;
  283.     LiveOffer[playerid] = 999;
  284.     TakingLesson[playerid] = 0;
  285.     RefillOffer[playerid] = 999;
  286.     RefillPrice[playerid] = 0;
  287.     DrugOffer[playerid] = 999;
  288.     PlayerCuffed[playerid] = 0;
  289.     PlayerCuffedTime[playerid] = 0;
  290.     DrugPrice[playerid] = 0;
  291.     CanUseUpgrade[playerid] = 0;
  292.     CanChangeName[playerid] = 0;
  293.     RegistrationStep[playerid] = 0;
  294.     OnCK[playerid] = 999;
  295.     GettingCK[playerid] = 999;
  296.     DrugGram[playerid] = 0;
  297.     ConnectedToPC[playerid] = 0;
  298.     OrderReady[playerid] = 0;
  299.     JailPrice[playerid] = 0;
  300.     MedicTime[playerid] = 0;
  301.     NeedMedicTime[playerid] = 0;
  302.     MedicBill[playerid] = 0;
  303.     GotHit[playerid] = 0;
  304.     WantedPoints[playerid] = 0;
  305.     GoChase[playerid] = 999;
  306.     GetChased[playerid] = 999;
  307.     PlacedNews[playerid] = 0;
  308.     PlayerInfo[playerid][pDuty] = 0;
  309.     WantedLevel[playerid] = 0;
  310.     TestFishes[playerid] = 0;
  311.     BoxWaitTime[playerid] = 0;
  312.     SchoolSpawn[playerid] = 0;
  313.     ChangePos2[playerid][1] = 0;
  314.     SafeTime[playerid] = 60;
  315.     TransportDuty[playerid] = 0;
  316.     PlayerTied[playerid] = 0;
  317.     BusCallTime[playerid] = 0;
  318.     TaxiCallTime[playerid] = 0;
  319.     MedicCallTime[playerid] = 0;
  320.     MechanicCallTime[playerid] = 0;
  321.     BusrouteEast[playerid][0] = 0;
  322.     BusrouteWest[playerid][0] = 0;
  323.     BusShowLocation[playerid][0] = 0;
  324.     BusShowLocationC[playerid] = 0;
  325.     FindTimePoints[playerid] = 0;
  326.     FindTime[playerid] = 0;
  327.     JobDuty[playerid] = 0;
  328.     Mobile[playerid] = 255;
  329.     BoxOffer[playerid] = 999;
  330.     PlayerBoxing[playerid] = 0;
  331.     Spectate[playerid] = 255;
  332.     PlayerDrunk[playerid] = 0;
  333.     PlayerDrunkTime[playerid] = 0;
  334.     Unspec[playerid][sLocal] = 255;
  335.     FishCount[playerid] = 0;
  336.     WritingPaper[playerid] = 0;
  337.     WritingPaperNumber[playerid] = 999;
  338.     WritingLine[playerid] = 0;
  339.     BringingPaper[playerid] = 0;
  340.     GotPaper[playerid] = 0;
  341.     PaperOffer[playerid] = 999;
  342.     ScriptMoney[playerid] = 0;
  343.     ScriptMoneyUpdated[playerid] = 0;
  344.     for (new c=0; c<13; c++) ScriptWeapons[playerid][c] = 0;
  345.     ScriptWeaponsUpdated[playerid] = 0;
  346.     gLastCar[playerid] = 0;
  347.     FirstSpawn[playerid] = 1;
  348.     gOoc[playerid] = 0;
  349.     gNews[playerid] = 0;
  350.     BigEar[playerid] = 0;
  351.     gDice[playerid] = 0;
  352.     gFam[playerid] = 0;
  353.     gSpeedo[playerid] = 0; gGas[playerid] = 0;
  354.     gPlayerLogged[playerid] = 0;
  355.     gPlayerLogTries[playerid] = 0;
  356.     gPlayerSpawned[playerid] = 0;
  357.     PlayerTazeTime[playerid] = 0;
  358.     PlayerStoned[playerid] = 0;
  359.     StartTime[playerid] = 0;
  360.     TicketOffer[playerid] = 999;
  361.     TicketMoney[playerid] = 0;
  362.     MatsHolding[playerid] = 0;
  363.     TutTime[playerid] = 0;
  364.     TaxiAccepted[playerid] = 999;
  365.     BusAccepted[playerid] = 999;
  366.     NoFuel[playerid] = 0;
  367.     HireCar[playerid] = 299;
  368.     GangCar[playerid] = 512;
  369.     PlayersChannel[playerid] = 999;
  370.     TransportValue[playerid] = 0;
  371.     TransportMoney[playerid] = 0;
  372.     TransportTime[playerid] = 0;
  373.     TransportCost[playerid] = 0;
  374.     TransportDriver[playerid] = 999;
  375.     Locator[playerid] = 0;
  376.     WatchingTV[playerid] = 0;
  377.     Fishes[playerid][pLastFish] = 0;
  378.     Fishes[playerid][pFishID] = 0;
  379.     ProposeOffer[playerid] = 999;
  380.     MarryWitness[playerid] = 999;
  381.     MarryWitnessOffer[playerid] = 999;
  382.     MarriageCeremoney[playerid] = 0;
  383.     ProposedTo[playerid] = 999;
  384.     GotProposedBy[playerid] = 999;
  385.     DivorceOffer[playerid] = 999;
  386.     PizzaCallTime[playerid] = 0;
  387.     bPizza[playerid] = 0;
  388.     sPizza[playerid] = 0;
  389.     gEngine[playerid] = 0;
  390.     FarmerVar[playerid] = 0;
  391.     FarmerPickup[playerid][0] = 0;
  392.     SmugglerWork[playerid] = 0;
  393.     SmuggledDrugs[playerid] = 0;
  394.     JustDied[playerid] = 0;
  395.     KnockedDown[playerid] = 0;
  396.     UnidentifedCall[playerid] = 0;
  397.     LicenseOffer[playerid] = 999;
  398.     LicensePrice[playerid] = 0;
  399.     LicenseType[playerid] = 0;
  400.     UsingDrugs[playerid] = 0;
  401.     AfterTutorial[playerid] = 0;
  402.     OwnableCarOffer[playerid] = 999;
  403.     OwnableCarID[playerid] = 0;
  404.     OwnableCarPrice[playerid] = 0;
  405.     BlindFold[playerid] = 0;
  406.     PlayerIsSweeping[playerid] = 0;
  407.     JustReported[playerid] = 0;
  408.     PlayerNeedsHelp[playerid] = 0;
  409.     AdminSpec[playerid] = 0;
  410.     IsSmoking[playerid] = 0;
  411.     UsingSmokeAnim[playerid] = 0;
  412.     ReduceTime[playerid] = 0;
  413.     CreatingGun[playerid] = 0;
  414.     CreatingGunAmmo[playerid] = 0;
  415.     CreatingGunPrice[playerid] = 0;
  416.     IsPuttingMaterials[playerid] = 0;
  417.     IsTakingGun[playerid] = 0;
  418.     InAFoodPlace[playerid] = 0;
  419.     UcAdmin[playerid] = 0;
  420.     Gps[playerid] = 0;
  421.     PlayerInfo[playerid][pLevel] = 0;
  422.     PlayerInfo[playerid][pSpawn] = 0;
  423.     PlayerInfo[playerid][pAdmin] = 0;
  424.     PlayerInfo[playerid][pRegularRank] = 0;
  425.     PlayerInfo[playerid][gPupgrade] = 0;
  426.     PlayerInfo[playerid][pConnectSeconds] = 0;
  427.     PlayerInfo[playerid][pReg] = 0;
  428.     PlayerInfo[playerid][pSex] = 0;
  429.     PlayerInfo[playerid][pAge] = 0;
  430.     PlayerInfo[playerid][pDuty] = 0;
  431.     PlayerInfo[playerid][pOrigin] = 0;
  432.     PlayerInfo[playerid][pExp] = 0;
  433.     PlayerInfo[playerid][pDuty] = 0;
  434.     PlayerInfo[playerid][pGPS] = 0;
  435.     PlayerInfo[playerid][pBlind] = 0;
  436.     PlayerInfo[playerid][pFrozen] = 0;
  437.     PlayerInfo[playerid][pAccount] = 0;
  438.     PlayerInfo[playerid][pCrimes] = 0;
  439.     strmid(PlayerInfo[playerid][pCrimeReason], "None", 0, strlen("None"), 255);
  440.     strmid(Typed[playerid], "None", 0, strlen("None"), 255);
  441.     PlayerInfo[playerid][pWanted] = 0;
  442.     PlayerInfo[playerid][pWantedLevel] = 0;
  443.     PlayerInfo[playerid][pDeaths] = 0;
  444.     strmid(PlayerInfo[playerid][pWhyLeft], "Unknown", 0, strlen("Unknown"), 255);
  445.     PlayerInfo[playerid][pArrested] = 0;
  446.     PlayerInfo[playerid][pWantedDeaths] = 0;
  447.     PlayerInfo[playerid][pPhoneBook] = 0;
  448.     PlayerInfo[playerid][pLottoNr] = 0;
  449.     PlayerInfo[playerid][pFishes] = 0;
  450.     PlayerInfo[playerid][pBiggestFish] = 0;
  451.     PlayerInfo[playerid][pJob] = 0;
  452.     PlayerInfo[playerid][pPayCheck] = 0;
  453.     PlayerInfo[playerid][pHeadValue] = 0;
  454.     PlayerInfo[playerid][pJailed] = 0;
  455.     PlayerInfo[playerid][pJailTime] = 0;
  456.     PlayerInfo[playerid][pRobTime] = 0;
  457.     PlayerInfo[playerid][pMats] = 0;
  458.     PlayerInfo[playerid][pDrugs] = 0;
  459.     PlayerInfo[playerid][pLeader] = 0;
  460.     PlayerInfo[playerid][pMember] = 0;
  461.     PlayerInfo[playerid][pFMember] = 255;
  462.     PlayerInfo[playerid][pRank] = 0;
  463.     PlayerInfo[playerid][pChar] = 0;
  464.     PlayerInfo[playerid][pContractTime] = 0;
  465.     PlayerInfo[playerid][pDetSkill] = 0;
  466.     PlayerInfo[playerid][pSexSkill] = 0;
  467.     PlayerInfo[playerid][pBoxSkill] = 0;
  468.     PlayerInfo[playerid][pLawSkill] = 0;
  469.     PlayerInfo[playerid][pMechSkill] = 0;
  470.     PlayerInfo[playerid][pJackSkill] = 0;
  471.     PlayerInfo[playerid][pCarSkill] = 0;
  472.     PlayerInfo[playerid][pNewsSkill] = 0;
  473.     PlayerInfo[playerid][pDrugsSkill] = 0;
  474.     PlayerInfo[playerid][pCookSkill] = 0;
  475.     PlayerInfo[playerid][pFishSkill] = 0;
  476.     PlayerInfo[playerid][pSHealth] = 0.0;
  477.     PlayerInfo[playerid][pInt] = 0;
  478.     PlayerInfo[playerid][pInteriorNr] = 0;
  479.     PlayerInfo[playerid][pLocal] = 255;
  480.     PlayerInfo[playerid][pTeam] = 3;
  481.     PlayerInfo[playerid][pModel] = 7;
  482.     new randphone = 100000 + random(899999);//minimum 1000  max 9999 //giving one at the start
  483.     PlayerInfo[playerid][pPnumber] = randphone;
  484.     PlayerInfo[playerid][pPcarkey] = 999;
  485.     PlayerInfo[playerid][pPcarkey2] = 999;
  486.     PlayerInfo[playerid][pPhousekey] = 999;
  487.     PlayerInfo[playerid][pGangKey] = 255;
  488.     PlayerInfo[playerid][pPbiskey] = 255;
  489.     PlayerInfo[playerid][pPassport] = 0;
  490.     PlayerInfo[playerid][pCarLic] = 0;
  491.     PlayerInfo[playerid][pFlyLic] = 0;
  492.     PlayerInfo[playerid][pBoatLic] = 0;
  493.     PlayerInfo[playerid][pFishLic] = 0;
  494.     PlayerInfo[playerid][pGunLic] = 0;
  495.     PlayerInfo[playerid][pCopLic] = 0;
  496.     PlayerInfo[playerid][pCarTime] = 0;
  497.     PlayerInfo[playerid][pPayDay] = 0;
  498.     PlayerInfo[playerid][pPayDayHad] = 0;
  499.     PlayerInfo[playerid][pWatch] = 0;
  500.     PlayerInfo[playerid][pCrashed] = 0;
  501.     PlayerInfo[playerid][pWins] = 0;
  502.     PlayerInfo[playerid][pLoses] = 0;
  503.     PlayerInfo[playerid][pAlcoholPerk] = 0;
  504.     PlayerInfo[playerid][pDrugPerk] = 0;
  505.     PlayerInfo[playerid][pMiserPerk] = 0;
  506.     PlayerInfo[playerid][pPainPerk] = 0;
  507.     PlayerInfo[playerid][pTraderPerk] = 0;
  508.     PlayerInfo[playerid][pTut] = 0;
  509.     PlayerInfo[playerid][pTutDone] = 0;
  510.     PlayerInfo[playerid][pDTK] = 0;
  511.     PlayerInfo[playerid][pDSTK] = 0;
  512.     PlayerInfo[playerid][pWarned] = 0;
  513.     PlayerInfo[playerid][pSwat] = 0;
  514.     PlayerInfo[playerid][pDM] = 0;
  515.     PlayerInfo[playerid][pHydraR] = 0;
  516.     PlayerInfo[playerid][pHunterR] = 0;
  517.     PlayerInfo[playerid][pRhinoR] = 0;
  518.     PlayerInfo[playerid][pPredR] = 0;
  519.     PlayerInfo[playerid][pViewPms] = 0;
  520.     PlayerInfo[playerid][pAppearList] = 0;
  521.     PlayerInfo[playerid][pDBanned] = 0;
  522.     PlayerInfo[playerid][pTactical] = 0;
  523.     PlayerInfo[playerid][pSpecialF] = 0;
  524.     PlayerInfo[playerid][pWarns] = 0;
  525.     PlayerInfo[playerid][pFuel] = 0;
  526.     PlayerInfo[playerid][pVirWorld] = 0;
  527.     PlayerInfo[playerid][pRequestingBackup] = 0;
  528.     PlayerInfo[playerid][pRoadblock] = 0;
  529.     PlayerInfo[playerid][pFishTool] = 0;
  530.     strmid(PlayerInfo[playerid][pNote1], "None", 0, strlen("None"), 255);
  531.     PlayerInfo[playerid][pNote1s] = 0;
  532.     strmid(PlayerInfo[playerid][pNote2], "None", 0, strlen("None"), 255);
  533.     PlayerInfo[playerid][pNote2s] = 0;
  534.     strmid(PlayerInfo[playerid][pNote3], "None", 0, strlen("None"), 255);
  535.     PlayerInfo[playerid][pNote3s] = 0;
  536.     strmid(PlayerInfo[playerid][pNote4], "None", 0, strlen("None"), 255);
  537.     PlayerInfo[playerid][pNote4s] = 0;
  538.     strmid(PlayerInfo[playerid][pNote5], "None", 0, strlen("None"), 255);
  539.     PlayerInfo[playerid][pNote5s] = 0;
  540.     PlayerInfo[playerid][pInvWeapon] = 0;
  541.     PlayerInfo[playerid][pInvAmmo] = 0;
  542.     PlayerInfo[playerid][pInvWeapon2] = 0;
  543.     PlayerInfo[playerid][pInvAmmo2] = 0;
  544.     PlayerInfo[playerid][pInvWeapon3] = 0;
  545.     PlayerInfo[playerid][pInvAmmo3] = 0;
  546.     PlayerInfo[playerid][pInvWeapon4] = 0;
  547.     PlayerInfo[playerid][pInvAmmo4] = 0;
  548.     PlayerInfo[playerid][pInvWeapon5] = 0;
  549.     PlayerInfo[playerid][pInvAmmo5] = 0;
  550.     PlayerInfo[playerid][pInvWeapon6] = 0;
  551.     PlayerInfo[playerid][pInvAmmo6] = 0;
  552.     PlayerInfo[playerid][pLighter] = 0;
  553.     PlayerInfo[playerid][pCigarettes] = 0;
  554.     PlayerInfo[playerid][pMask] = 0;
  555.     PlayerInfo[playerid][pMaskuse] = 0;
  556.     PlayerInfo[playerid][pAdminDuty] = 0;
  557.     PlayerInfo[playerid][pGameMasterDuty] = 0;
  558.     PlayerInfo[playerid][pHelper] = 0;
  559.     PlayerInfo[playerid][pGameMaster] = 0;
  560.     PlayerInfo[playerid][pSpeedo] = 0;
  561.     PlayerInfo[playerid][pHideNumber] = 0;
  562.     PlayerInfo[playerid][pSpeaker] = 0;
  563.     PlayerInfo[playerid][pWarned] = 0;
  564.     PlayerInfo[playerid][pSwat] = 0;
  565.     PlayerInfo[playerid][pTactical] = 0;
  566.     PlayerInfo[playerid][pSpecialF] = 0;
  567.     PlayerInfo[playerid][pDBanned] = 0;
  568.     PlayerInfo[playerid][pDesertSkill] = 0;
  569.     PlayerInfo[playerid][pSilenSkill] = 0;
  570.     PlayerInfo[playerid][pPistSkill] = 0;
  571.     PlayerInfo[playerid][pShotgSkill] = 0;
  572.     PlayerInfo[playerid][pSawnSkill] = 0;
  573.     PlayerInfo[playerid][pUziSkill] = 0;
  574.     PlayerInfo[playerid][pSmgSkill] = 0;
  575.     PlayerInfo[playerid][pAkSkill] = 0;
  576.     PlayerInfo[playerid][pM4Skill] = 0;
  577.     PlayerInfo[playerid][pCombSkill] = 0;
  578.     PlayerInfo[playerid][pAchievement0] = 0;
  579.     PlayerInfo[playerid][pAchievement1] = 0;
  580.     PlayerInfo[playerid][pAchievement2] = 0;
  581.     PlayerInfo[playerid][pAchievement3] = 0;
  582.     PlayerInfo[playerid][pAchievement4] = 0;
  583.     PlayerInfo[playerid][pAchievement5] = 0;
  584.     PlayerInfo[playerid][pAchievement6] = 0;
  585.     PlayerInfo[playerid][pAchievement7] = 0;
  586.     PlayerInfo[playerid][pAchievement8] = 0;
  587.     PlayerInfo[playerid][pAchievement9] = 0;
  588.     PlayerInfo[playerid][pAchievement10] = 0;
  589.     PlayerInfo[playerid][pAchievement11] = 0;
  590.     PlayerInfo[playerid][pAchievement12] = 0;
  591.     PlayerInfo[playerid][pAchievement13] = 0;
  592.     PlayerInfo[playerid][pAchievement14] = 0;
  593.     PlayerInfo[playerid][pAchievement15] = 0;
  594.     PlayerInfo[playerid][pAchievement16] = 0;
  595.     PlayerInfo[playerid][pAchievement17] = 0;
  596.     PlayerInfo[playerid][pAchievement18] = 0;
  597.     PlayerInfo[playerid][pAchievement19] = 0;
  598.     PlayerInfo[playerid][pAchievement20] = 0;
  599.     PlayerInfo[playerid][pWeapon] = 0;
  600.     PlayerInfo[playerid][pAmmo] = 0;
  601.     PlayerInfo[playerid][pWeapon2] = 0;
  602.     PlayerInfo[playerid][pAmmo2] = 0;
  603.     PlayerInfo[playerid][pWeapon3] = 0;
  604.     PlayerInfo[playerid][pAmmo3] = 0;
  605.     PlayerInfo[playerid][pWeapon4] = 0;
  606.     PlayerInfo[playerid][pAmmo4] = 0;
  607.     PlayerInfo[playerid][pWeapon5] = 0;
  608.     PlayerInfo[playerid][pAmmo5] = 0;
  609.     PlayerInfo[playerid][pWeapon6] = 0;
  610.     PlayerInfo[playerid][pAmmo6] = 0;
  611.     PlayerInfo[playerid][pWeapon7] = 0;
  612.     PlayerInfo[playerid][pAmmo7] = 0;
  613.     PlayerInfo[playerid][pWeapon8] = 0;
  614.     PlayerInfo[playerid][pAmmo8] = 0;
  615.     PlayerInfo[playerid][pWeapon9] = 0;
  616.     PlayerInfo[playerid][pAmmo9] = 0;
  617.     PlayerInfo[playerid][pWeapon10] = 0;
  618.     PlayerInfo[playerid][pAmmo10] = 0;
  619.     PlayerInfo[playerid][pWeapon11] = 0;
  620.     PlayerInfo[playerid][pAmmo11] = 0;
  621.     PlayerInfo[playerid][pWeapon12] = 0;
  622.     PlayerInfo[playerid][pAmmo12] = 0;
  623.     PlayerInfo[playerid][pAtc] = 0;
  624.     PlayerInfo[playerid][pAtcRadio] = 0;
  625.     PlayerInfo[playerid][pPending] = 0;
  626.     PlayerInfo[playerid][pChatMode] = 0;
  627.     strmid(PlayerInfo[playerid][pPunishment1], "None", 0, strlen("None"), 255);
  628.     strmid(PlayerInfo[playerid][pPunishment2], "None", 0, strlen("None"), 255);
  629.     strmid(PlayerInfo[playerid][pPunishment3], "None", 0, strlen("None"), 255);
  630.     strmid(PlayerInfo[playerid][pPunishment4], "None", 0, strlen("None"), 255);
  631.     strmid(PlayerInfo[playerid][pPunishment5], "None", 0, strlen("None"), 255);
  632.     strmid(PlayerInfo[playerid][pPunishment6], "None", 0, strlen("None"), 255);
  633.     strmid(PlayerInfo[playerid][pPunishment7], "None", 0, strlen("None"), 255);
  634.     strmid(PlayerInfo[playerid][pPunishment8], "None", 0, strlen("None"), 255);
  635.     strmid(PlayerInfo[playerid][pIP], "None", 0, strlen("None"), 255);
  636.     strmid(PlayerInfo[playerid][pLastSeen], "Never", 0, strlen("None"), 255);
  637.     strmid(PlayerInfo[playerid][pRegistredDate], "Never", 0, strlen("None"), 255);
  638.     PlayerInfo[playerid][pNextPunishment] = 1;
  639.     PlayerInfo[playerid][pPunished] = 0;
  640.     PlayerInfo[playerid][pTazerBullets] = 0;
  641.     PlayerInfo[playerid][pChanged] = 0;
  642.     PlayerInfo[playerid][pBankCard] = 0;
  643.     PlayerInfo[playerid][pCardPin] = 0;
  644.     CityHallRobbedRecently = 0;
  645.     RobbedRecently[playerid] = 0;
  646.     RobbingTime[playerid] = 0;
  647.     PlayerInfo[playerid][pRegularCount] = 144000;
  648.     PlayerInfo[playerid][pPassportTime] = 18000;
  649.     PlayerInfo[playerid][pOfficerTime] = 0;
  650.     PlayerInfo[playerid][pShiftName] = 0;
  651.     PlayerSuspiciousWeapon[playerid] = 0;
  652.     PlayerSuspiciousAmmo[playerid] = 0;
  653.     PlayerSuspiciousInterior[playerid] = 0;
  654.     PlayerBunnyJumping[playerid] = 0;
  655.     PlayerMoneyHacking[playerid] = 0;
  656.     PlayerInteriorHacking[playerid] = 0;
  657.     PlayerWeaponHacking[playerid] = 0;
  658.     PlayerAmmoHacking[playerid] = 0;
  659.     PlayerSpeedHacking[playerid] = 0;
  660.     PlayerOnCashInbalance[playerid] = 0;
  661.     PlayerFailedToLogin[playerid] = 0;
  662.     PlayerSuspicious[playerid] = 0;
  663.     PlayerSuspiciousSpeed[playerid] = 0;
  664.     Checked[playerid] = 1;
  665.     PlayerGotSpottedRecently[playerid] = 1;
  666.     SetTimerEx("ResetAcWarn", 30000, 0, "i", playerid);
  667.     RpcArmor[playerid] = 0;
  668.     RpcMoney[playerid] = 0;
  669.     JustWanked[playerid] = 0;
  670.     RpcPara[playerid] = 0;
  671.     PlayerDrankWine[playerid] = 0;
  672.     PlayerDrankBeer[playerid] = 0;
  673.     TimesWanked[playerid] = 0;
  674.     IsWanking[playerid] = 0;
  675.     WankedRecently[playerid] = 0;
  676.     PlayerSmokedCig[playerid] = 0;
  677.     PlayerDrankSprunk[playerid] = 0;
  678.     GettingBlowjob[playerid] = 0;
  679.     GivingBlowjob[playerid] = 0;
  680.     AcceptingBJ[playerid] = 0;
  681.     OnSwatDuty[playerid] = 0;
  682.     OnTacticalDuty[playerid] = 0;
  683.     OnSpecialFDuty[playerid] = 0;
  684.     OfferedBlowjob[playerid] = INVALID_PLAYER_ID;
  685.     HelpMessages[playerid] = 1;
  686.     ChangedName[playerid] = 0;
  687.     ViewAdmin[playerid] = 1;
  688.     //PlayerInfo[playerid][pSQLID] = 0;
  689.     ClearCrime(playerid);
  690.     ClearFishes(playerid);
  691.     ClearCooking(playerid);
  692.     ClearGroceries(playerid);
  693.     ClearMarriage(playerid);
  694.     SetPlayerColor(playerid,0xBBBBBB00);
  695.     HouseEntered[playerid] = 255;
  696.     Untouchable[playerid] = 0;
  697.     for(new h = 155; h < sizeof(CarInfo); h++)
  698.     {
  699.         SetVehicleParamsForPlayer(h,playerid,0,CarInfo[h][cLock]);
  700.     }
  701.  
  702.     Textdraw1[playerid] = TextDrawCreate(400.000000, 2.000000, " "); // jail time
  703.     TextDrawAlignment(Textdraw1[playerid], 2);
  704.     TextDrawBackgroundColor(Textdraw1[playerid], 255);
  705.     TextDrawFont(Textdraw1[playerid], 1);
  706.     TextDrawLetterSize(Textdraw1[playerid], 0.300000, 1.000000);
  707.     TextDrawColor(Textdraw1[playerid], -1);
  708.     TextDrawSetOutline(Textdraw1[playerid], 1);
  709.     TextDrawSetProportional(Textdraw1[playerid], 1);
  710. /*
  711.     Textdraw39[playerid] = TextDrawCreate(498.000000, 123.000000, " "); // speedo
  712.     TextDrawBackgroundColor(Textdraw39[playerid], 255);
  713.     TextDrawFont(Textdraw39[playerid], 1);
  714.     TextDrawLetterSize(Textdraw39[playerid], 0.389899, 1.299900);
  715.     TextDrawColor(Textdraw39[playerid], 13107455);
  716.     TextDrawSetOutline(Textdraw39[playerid], 1);
  717.     TextDrawSetProportional(Textdraw39[playerid], 1);
  718.  
  719.     Textdraw40[playerid] = TextDrawCreate(498.000000, 140.000000, " "); // fuel
  720.     TextDrawBackgroundColor(Textdraw40[playerid], 255);
  721.     TextDrawFont(Textdraw40[playerid], 1);
  722.     TextDrawLetterSize(Textdraw40[playerid], 0.389999, 1.299999);
  723.     TextDrawColor(Textdraw40[playerid], 0xFFFFFFFF);
  724.     TextDrawSetOutline(Textdraw40[playerid], 1);
  725.     TextDrawSetProportional(Textdraw40[playerid], 1);
  726. */
  727.     Textdraw41[playerid] = TextDrawCreate(326.000000, 134.000000, " "); // speed gun points
  728.     TextDrawAlignment(Textdraw41[playerid], 2);
  729.     TextDrawBackgroundColor(Textdraw41[playerid], 255);
  730.     TextDrawFont(Textdraw41[playerid], 1);
  731.     TextDrawLetterSize(Textdraw41[playerid], 4.499998, 17.899999);
  732.     TextDrawColor(Textdraw41[playerid], -1);
  733.     TextDrawSetOutline(Textdraw41[playerid], 1);
  734.     TextDrawSetProportional(Textdraw41[playerid], 1);
  735.     TextDrawUseBox(Textdraw41[playerid], 1);
  736.     TextDrawBoxColor(Textdraw41[playerid], 100);
  737.     TextDrawTextSize(Textdraw41[playerid], 160.000000, 280.000000);
  738.  
  739.     Textdraw42[playerid] = TextDrawCreate(326.000000, 192.000000, " "); // Speed gun speed string
  740.     TextDrawAlignment(Textdraw42[playerid], 2);
  741.     TextDrawBackgroundColor(Textdraw42[playerid], 255);
  742.     TextDrawFont(Textdraw42[playerid], 1);
  743.     TextDrawLetterSize(Textdraw42[playerid], 0.379999, 1.700000);
  744.     TextDrawColor(Textdraw42[playerid], -1);
  745.     TextDrawSetOutline(Textdraw42[playerid], 1);
  746.     TextDrawSetProportional(Textdraw42[playerid], 1);
  747.     TextDrawUseBox(Textdraw42[playerid], 1);
  748.     TextDrawBoxColor(Textdraw42[playerid], 255);
  749.     TextDrawTextSize(Textdraw42[playerid], 10.000000, 280.000000);
  750.  
  751.     Textdraw49[playerid] = TextDrawCreate(86.000000, 428.000000, " "); // area
  752.     TextDrawAlignment(Textdraw49[playerid], 2);
  753.     TextDrawBackgroundColor(Textdraw49[playerid], 255);
  754.     TextDrawFont(Textdraw49[playerid], 2);
  755.     TextDrawLetterSize(Textdraw49[playerid],0.280000, 1.100000);
  756.     TextDrawColor(Textdraw49[playerid], -1);
  757.     TextDrawSetOutline(Textdraw49[playerid], 1);
  758.     TextDrawSetProportional(Textdraw49[playerid], 1);
  759.  
  760.     Textdraw51[playerid] = TextDrawCreate(608.000000, 98.000000, " "); // bank money
  761.     TextDrawAlignment(Textdraw51[playerid], 3);
  762.     TextDrawBackgroundColor(Textdraw51[playerid], 255);
  763.     TextDrawFont(Textdraw51[playerid], 3);
  764.     TextDrawLetterSize(Textdraw51[playerid], 0.650000, 2.199999);
  765.     TextDrawColor(Textdraw51[playerid], 43775);
  766.     TextDrawSetOutline(Textdraw51[playerid], 1);
  767.     TextDrawSetProportional(Textdraw51[playerid], 1);
  768.    
  769.     Textdraw52[playerid] = TextDrawCreate(494.000000, 81.000000, " "); // money changes
  770.     TextDrawAlignment(Textdraw52[playerid], 3);
  771.     TextDrawBackgroundColor(Textdraw52[playerid], 255);
  772.     TextDrawFont(Textdraw52[playerid], 1);
  773.     TextDrawLetterSize(Textdraw52[playerid], 0.279999, 1.600000);
  774.     TextDrawColor(Textdraw52[playerid], 0xFFFFFFFF);
  775.     TextDrawSetOutline(Textdraw52[playerid], 1);
  776.     TextDrawSetProportional(Textdraw52[playerid], 1);
  777.    
  778.     Textdraw53[playerid] = TextDrawCreate(320.000000, 341.000000, " "); // GPS
  779.     TextDrawAlignment(Textdraw53[playerid], 2);
  780.     TextDrawBackgroundColor(Textdraw53[playerid], 255);
  781.     TextDrawFont(Textdraw53[playerid], 2);
  782.     TextDrawLetterSize(Textdraw53[playerid], 0.400000, 1.500000);
  783.     TextDrawColor(Textdraw53[playerid], -1);
  784.     TextDrawSetOutline(Textdraw53[playerid], 1);
  785.     TextDrawSetProportional(Textdraw53[playerid], 1);
  786.    
  787.     Textdraw54[playerid] = TextDrawCreate(331.000000, 340.000000, " "); // Spectate
  788.     TextDrawAlignment(Textdraw54[playerid], 2);
  789.     TextDrawBackgroundColor(Textdraw54[playerid], 255);
  790.     TextDrawFont(Textdraw54[playerid], 1);
  791.     TextDrawLetterSize(Textdraw54[playerid], 0.500000, 1.000000);
  792.     TextDrawColor(Textdraw54[playerid], -1);
  793.     TextDrawSetOutline(Textdraw54[playerid], 0);
  794.     TextDrawSetProportional(Textdraw54[playerid], 1);
  795.     TextDrawSetShadow(Textdraw54[playerid], 0);
  796.    
  797.     Textdraw64[playerid] = TextDrawCreate(317.000000, 253.000000, " "); // Medals
  798.     TextDrawAlignment(Textdraw64[playerid], 2);
  799.     TextDrawBackgroundColor(Textdraw64[playerid], 255);
  800.     TextDrawFont(Textdraw64[playerid], 3);
  801.     TextDrawLetterSize(Textdraw64[playerid], 0.239999, 1.200000);
  802.     TextDrawColor(Textdraw64[playerid], -1);
  803.     TextDrawSetOutline(Textdraw64[playerid], 1);
  804.     TextDrawSetProportional(Textdraw64[playerid], 1);
  805.    
  806.     format(string, sizeof(string), "LARP/Users/%s.ini", plname);
  807.     SendClientMessage(playerid, COLOR_YELLOW2, "Molimo pricekajte...");
  808.     new File: hFile = fopen(string, io_read);
  809.     if (hFile)
  810.     {
  811.         gPlayerAccount[playerid] = 1;
  812.         return 1;
  813.     }
  814.     else
  815.     {
  816.         gPlayerAccount[playerid] = 0;
  817.         return 1;
  818.     }
  819.     //MySQLCheckConnection();
  820.  
  821.     // Check if the account exists
  822.     /*new sqlaccountstatus = MySQLCheckAccount(plname);
  823.     if(sqlaccountstatus != 0)
  824.     {
  825.         // Check if the account is locked
  826.         if (MySQLCheckAccountLocked(sqlaccountstatus) != 0)
  827.         {
  828.             SendClientMessage(playerid, COLOR_LIGHTRED, "This account has been locked and cannot be accessed. Please contact an admin.");
  829.             Kick(playerid);
  830.             return 0;
  831.         }
  832.         gPlayerAccount[playerid] = 1;
  833.         PlayerInfo[playerid][pSQLID] = sqlaccountstatus;
  834.     }
  835.     else
  836.     {
  837.         gPlayerAccount[playerid] = 0;
  838.     }*/
  839.  
  840.  
  841.     return 1;
  842. }
Advertisement
Add Comment
Please, Sign In to add comment