11.07.2015, 15:50
Hello,my server is working fine for about a few hours,then,the login does not work.
1.They enter the anti bot code[captcha] and the image stays there,it does not do anything,its like freezing.
2. After 5-6 hours or more,the server is restarting.
If you can help me at 1 and then at 2,it is ok.
Something is wrong in my script,tell me what lines or public should i show you
Thanks in advance.
onplayerconnect
And i have a FS from sa-mp.com with anti bot[captcha]
1.They enter the anti bot code[captcha] and the image stays there,it does not do anything,its like freezing.
2. After 5-6 hours or more,the server is restarting.
If you can help me at 1 and then at 2,it is ok.
Something is wrong in my script,tell me what lines or public should i show you
Thanks in advance.
onplayerconnect
PHP код:
public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
if(!strfind("samp.", name, true) || !strfind("gta.", name, true) || !strfind("cvl", name, true) || !strfind("efl", name, true) || !strfind("lgn", name, true) || !strfind("freakz", name, true)
|| !strfind("c v l", name, true) || !strfind("goldz", name, true) || !strfind("goldz.tk", name, true) ||!strfind("l g n", name, true) || !strfind("e f l", name, true) || !strfind("samp,", name, true) || !strfind("gta,", name, true))
{
SendClientMessage(playerid, 0xFF0000E7, "» Iei MUIE de la tot Serverul !");
Ban(playerid);
}
SpawnInDM[ playerid ] = " "; //daca un jucator cu acelasi ID de dinainte iesise de pe server cand era intr-un DM, pe noul jucator conectat cu acelasi ID l-ar fi respawnat in acel DM
// === Civil Cars
// remove bulding spawn //
RemoveBuildingForPlayer(playerid, 5766, 1160.96, -1180.58, 70.4141, 250.0); // Awning shadows
RemoveBuildingForPlayer(playerid, 5767, 1160.96, -1180.58, 70.4141, 250.0); // Building
RemoveBuildingForPlayer(playerid, 5964, 1160.96, -1180.58, 70.4141, 250.0); // LOD
//=======================Remove Buildings=======================================
//remove building pentru job inghetata //
RemoveBuildingForPlayer(playerid, 5975, 1014.0234, -1361.4609, 20.3516, 0.25);
RemoveBuildingForPlayer(playerid, 5732, 1014.0234, -1361.4609, 20.3516, 0.25);
RemoveBuildingForPlayer(playerid, 1438, 1015.5313, -1337.1719, 12.5547, 0.25);
RemoveBuildingForPlayer(playerid, 1297, 1019.4219, -1332.0000, 15.6406, 0.25);
RemoveBuildingForPlayer(playerid, 5764, 1065.1406, -1270.5781, 25.7109, 0.25);
//remove pentru cladire elevator //
// Remove the lamp post at the underground car park entrance
RemoveBuildingForPlayer(playerid, 1226, 265.481, -1581.1, 32.9311, 5.0);
// Remove the night lights object (must be removed to also remove any
// occulsion zones inside the building)
RemoveBuildingForPlayer(playerid, 6518, 280.297, -1606.2, 72.3984, 250.0);
//remove building tufisuri spawn //
RemoveBuildingForPlayer(playerid, 792, 820.9297, -2066.1797, 12.1719, 0.25);
RemoveBuildingForPlayer(playerid, 792, 851.7969, -2066.3594, 12.1719, 0.25);
// remove building politie noua //
// remove building V.I.P //
RemoveBuildingForPlayer(playerid, 5931, 1114.3125, -1348.1016, 17.9844, 0.25);
RemoveBuildingForPlayer(playerid, 5935, 1120.1563, -1303.4531, 18.5703, 0.25);
RemoveBuildingForPlayer(playerid, 1297, 1112.6172, -1389.8672, 15.6719, 0.25);
RemoveBuildingForPlayer(playerid, 5810, 1114.3125, -1348.1016, 17.9844, 0.25);
RemoveBuildingForPlayer(playerid, 5993, 1110.8984, -1328.8125, 13.8516, 0.25);
RemoveBuildingForPlayer(playerid, 5811, 1131.1953, -1380.4219, 17.0703, 0.25);
RemoveBuildingForPlayer(playerid, 1440, 1141.9844, -1346.1094, 13.2656, 0.25);
RemoveBuildingForPlayer(playerid, 5737, 1120.1563, -1303.4531, 18.5703, 0.25);
// remove building pentru new taxi hq //
RemoveBuildingForPlayer(playerid, 5930, 1134.2500, -1338.0781, 23.1563, 0.25);
RemoveBuildingForPlayer(playerid, 5708, 1134.2500, -1338.0781, 23.1563, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1178.6016, -1332.0703, 12.8906, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1184.0078, -1353.5000, 12.5781, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1184.0078, -1343.2656, 12.5781, 0.25);
RemoveBuildingForPlayer(playerid, 618, 1177.7344, -1315.6641, 13.2969, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1184.8125, -1292.9141, 12.5781, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1184.8125, -1303.1484, 12.5781, 0.25);
// remove building fireman + medic //
RemoveBuildingForPlayer(playerid, 4025, 1777.8359, -1773.9063, 12.5234, 0.25);
RemoveBuildingForPlayer(playerid, 4072, 1777.4375, -1782.3047, 12.6250, 0.25);
RemoveBuildingForPlayer(playerid, 4215, 1777.5547, -1775.0391, 36.7500, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1791.1797, -1816.6328, 14.6250, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1788.5078, -1816.5703, 13.3516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1796.9609, -1817.3906, 14.6250, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1801.8828, -1817.3047, 13.3516, 0.25);
RemoveBuildingForPlayer(playerid, 4012, 1777.4375, -1782.3047, 12.6250, 0.25);
RemoveBuildingForPlayer(playerid, 4019, 1777.8359, -1773.9063, 12.5234, 0.25);
// remove building casele spawn //
/* RemoveBuildingForPlayer(playerid, 4177, 1686.4375, -1570.1484, 18.0313, 0.25);
RemoveBuildingForPlayer(playerid, 4176, 1686.4375, -1570.1484, 18.0313, 0.25);
RemoveBuildingForPlayer(playerid, 3999, 1785.9766, -1564.8594, 25.2500, 0.25);
RemoveBuildingForPlayer(playerid, 4080, 1787.1328, -1565.6797, 11.9688, 0.25);
RemoveBuildingForPlayer(playerid, 4081, 1734.3047, -1560.7109, 18.8828, 0.25);
RemoveBuildingForPlayer(playerid, 3998, 1734.3047, -1560.7109, 18.8828, 0.25);
RemoveBuildingForPlayer(playerid, 4099, 1770.0469, -1549.4141, 10.4688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1781.3750, -1596.3438, 14.2109, 0.25);
RemoveBuildingForPlayer(playerid, 4079, 1785.9766, -1564.8594, 25.2500, 0.25);
RemoveBuildingForPlayer(playerid, 4189, 1794.6172, -1576.7344, 17.7578, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1799.1563, -1596.5391, 13.4453, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1805.6328, -1589.9688, 14.5469, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1807.4688, -1590.4766, 13.4453, 0.25);
RemoveBuildingForPlayer(playerid, 1216, 1808.3750, -1597.9219, 13.2266, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1808.8672, -1591.0547, 14.4609, 0.25);
RemoveBuildingForPlayer(playerid, 4000, 1787.1328, -1565.6797, 11.9688, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 1811.9844, -1582.2500, 12.8672, 0.25); */
RemoveBuildingForPlayer(playerid, 4046, 1479.5234, -1852.6406, 24.5156, 0.25);
RemoveBuildingForPlayer(playerid, 4047, 1531.6328, -1852.6406, 24.5156, 0.25);
RemoveBuildingForPlayer(playerid, 4217, 1449.2500, -1852.5703, 22.3672, 0.25);
RemoveBuildingForPlayer(playerid, 1266, 1482.0859, -1859.9688, 25.0391, 0.25);
RemoveBuildingForPlayer(playerid, 713, 1405.2344, -1821.1172, 13.1016, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1417.9766, -1832.5313, 11.9844, 0.25);
RemoveBuildingForPlayer(playerid, 4170, 1433.9531, -1844.4063, 21.4219, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1456.3984, -1832.5313, 11.9844, 0.25);
RemoveBuildingForPlayer(playerid, 1260, 1482.0859, -1859.9688, 25.0391, 0.25);
RemoveBuildingForPlayer(playerid, 4004, 1479.5234, -1852.6406, 24.5156, 0.25);
RemoveBuildingForPlayer(playerid, 4171, 1503.3984, -1848.3359, 21.4609, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1504.8438, -1832.5313, 11.9844, 0.25);
RemoveBuildingForPlayer(playerid, 4048, 1531.6328, -1852.6406, 24.5156, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1549.5313, -1832.3125, 12.8828, 0.25);
//remove building pentru palat mexes//
RemoveBuildingForPlayer(playerid, 6105, 1223.7188, -1616.3203, 19.1172, 0.25);
RemoveBuildingForPlayer(playerid, 6106, 1226.9531, -1656.1563, 24.7734, 0.25);
RemoveBuildingForPlayer(playerid, 6149, 1170.0781, -1668.5625, 18.9219, 0.25);
RemoveBuildingForPlayer(playerid, 6196, 1225.3359, -1642.7500, 25.1016, 0.25);
RemoveBuildingForPlayer(playerid, 1525, 1271.4844, -1662.3203, 20.2500, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1190.9844, -1686.3125, 13.0938, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1190.9844, -1691.3906, 13.0938, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1191.7891, -1691.9063, 12.0156, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1190.9844, -1681.5234, 13.0938, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1191.4063, -1674.4219, 12.0156, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1190.9844, -1674.1484, 13.0938, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1196.7266, -1691.3906, 13.0938, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1202.4141, -1691.3906, 13.0938, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1202.4141, -1686.3125, 13.0938, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1204.3906, -1692.3203, 12.0156, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1202.4141, -1681.5234, 13.0938, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1258.5781, -1675.5000, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1267.6719, -1675.5000, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1203.6406, -1674.4844, 12.0156, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1202.4141, -1674.1484, 13.0938, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1197.2734, -1674.1484, 13.0938, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1155.7344, -1653.3438, 13.1797, 0.25);
RemoveBuildingForPlayer(playerid, 6150, 1170.0781, -1668.5625, 18.9219, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1181.3125, -1665.4688, 14.7969, 0.25);
RemoveBuildingForPlayer(playerid, 1281, 1197.2344, -1667.0547, 13.3516, 0.25);
RemoveBuildingForPlayer(playerid, 1281, 1189.6016, -1667.3125, 13.3516, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1208.2813, -1665.4688, 14.5000, 0.25);
RemoveBuildingForPlayer(playerid, 1281, 1195.1797, -1661.5000, 13.3516, 0.25);
RemoveBuildingForPlayer(playerid, 1281, 1187.7422, -1661.4219, 13.3516, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1188.3438, -1655.8203, 13.1797, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1200.3125, -1655.8203, 13.1797, 0.25);
RemoveBuildingForPlayer(playerid, 6102, 1226.9531, -1656.1563, 24.7734, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1258.5781, -1659.8750, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1267.6719, -1659.8750, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1237.5000, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1233.4688, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1245.5625, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1241.5313, -1643.4297, 14.8516, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1258.5781, -1643.3672, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1267.6719, -1643.3672, 14.6016, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1219.1172, -1640.4609, 28.4219, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1231.3125, -1640.4609, 28.4219, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1243.5078, -1640.4609, 28.4219, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1255.7109, -1640.4609, 28.4219, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1282.8281, -1639.9609, 28.4219, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1211.6016, -1632.8672, 28.4219, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1219.1172, -1632.8672, 28.4219, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1231.3125, -1632.8672, 28.4219, 0.25);
RemoveBuildingForPlayer(playerid, 6103, 1223.7188, -1616.3203, 19.1172, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1243.5078, -1632.8672, 28.4219, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1255.7109, -1632.8672, 28.4219, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1282.8281, -1619.8516, 28.4219, 0.25);
RemoveBuildingForPlayer(playerid, 626, 1282.8281, -1629.1094, 28.4219, 0.25);
//remove building pt loc masini //
/* RemoveBuildingForPlayer(playerid, 6048, 1117.5859, -1490.0078, 32.7188, 0.25);
RemoveBuildingForPlayer(playerid, 6130, 1117.5859, -1490.0078, 32.7188, 0.25);
RemoveBuildingForPlayer(playerid, 6131, 1117.5859, -1490.0078, 32.7188, 0.25);
RemoveBuildingForPlayer(playerid, 6194, 1116.6250, -1542.9063, 22.4688, 0.25);
RemoveBuildingForPlayer(playerid, 6255, 1117.5859, -1490.0078, 32.7188, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1117.6094, -1536.9766, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1111.5625, -1533.9609, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1105.6016, -1531.1563, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1137.9297, -1537.0625, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1143.7891, -1534.7031, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1148.6016, -1532.2578, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1097.4766, -1523.9766, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1093.4219, -1519.8281, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1089.5781, -1515.7891, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1087.1953, -1510.4922, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1084.9688, -1504.4219, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1101.1406, -1527.9688, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1128.7344, -1518.4922, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1111.2578, -1512.3594, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 3586, 1128.9688, -1502.0234, 18.2969, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1077.8594, -1499.8672, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1083.6719, -1499.4922, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1106.4375, -1501.3750, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1134.0781, -1500.3750, 22.2813, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1123.2500, -1500.5313, 22.2813, 0.25);
RemoveBuildingForPlayer(playerid, 6051, 1110.3281, -1489.0938, 18.9922, 0.25);
RemoveBuildingForPlayer(playerid, 3586, 1129.0078, -1476.7188, 18.2891, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1124.3672, -1476.9844, 22.2813, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1133.2266, -1476.2266, 22.2813, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1144.3984, -1512.7891, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1152.3828, -1502.5391, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1153.5391, -1529.8047, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1157.8203, -1525.4844, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1161.3281, -1521.5781, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1165.1563, -1517.2109, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1167.7813, -1513.1797, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1169.1641, -1509.3359, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1170.8047, -1503.5547, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1118.0156, -1467.4688, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 955, 1154.7266, -1460.8906, 15.1563, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1139.9219, -1467.4688, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1139.9219, -1456.4375, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1118.0156, -1456.4375, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1139.9219, -1445.1016, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1118.0156, -1445.1016, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1139.9219, -1434.0703, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1118.0156, -1434.0703, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 762, 1175.3594, -1420.1875, 19.8828, 0.25);
RemoveBuildingForPlayer(playerid, 762, 1077.1797, -1420.8125, 17.9531, 0.25);
RemoveBuildingForPlayer(playerid, 615, 1075.1016, -1418.4844, 12.4766, 0.25);
RemoveBuildingForPlayer(playerid, 615, 1110.5469, -1416.7266, 13.9531, 0.25);
RemoveBuildingForPlayer(playerid, 615, 1166.3516, -1417.6953, 13.9531, 0.25);
RemoveBuildingForPlayer(playerid, 615, 1147.6016, -1416.8750, 13.9531, 0.25);
RemoveBuildingForPlayer(playerid, 615, 1182.0469, -1418.6250, 13.9531, 0.25); */
//remove showroom //
RemoveBuildingForPlayer(playerid, 6357, 505.0547, -1269.9375, 28.6875, 0.25);
// ----- Primarie veche(CLASIC)
/*RemoveBuildingForPlayer(playerid, 4024, 1479.8672, -1790.3984, 56.0234, 0.25);
RemoveBuildingForPlayer(playerid, 4044, 1481.1875, -1785.0703, 22.3828, 0.25);
RemoveBuildingForPlayer(playerid, 1527, 1448.2344, -1755.8984, 14.5234, 0.25);
RemoveBuildingForPlayer(playerid, 4002, 1479.8672, -1790.3984, 56.0234, 0.25);
RemoveBuildingForPlayer(playerid, 3980, 1481.1875, -1785.0703, 22.3828, 0.25);
RemoveBuildingForPlayer(playerid, 4003, 1481.0781, -1747.0313, 33.5234, 0.25);
RemoveBuildingForPlayer(playerid, 4024, 1479.8672, -1790.3984, 56.0234, 0.25);
RemoveBuildingForPlayer(playerid, 4044, 1481.1875, -1785.0703, 22.3828, 0.25);
RemoveBuildingForPlayer(playerid, 4046, 1479.5234, -1852.6406, 24.5156, 0.25);
RemoveBuildingForPlayer(playerid, 4047, 1531.6328, -1852.6406, 24.5156, 0.25);
RemoveBuildingForPlayer(playerid, 1527, 1448.2344, -1755.8984, 14.5234, 0.25);
RemoveBuildingForPlayer(playerid, 4217, 1449.2500, -1852.5703, 22.3672, 0.25);
RemoveBuildingForPlayer(playerid, 713, 1407.1953, -1749.3125, 13.0938, 0.25);
RemoveBuildingForPlayer(playerid, 1266, 1482.0859, -1859.9688, 25.0391, 0.25);
RemoveBuildingForPlayer(playerid, 713, 1405.2344, -1821.1172, 13.1016, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1417.9766, -1832.5313, 11.9844, 0.25);
RemoveBuildingForPlayer(playerid, 673, 1405.5781, -1831.6953, 12.3984, 0.25);
RemoveBuildingForPlayer(playerid, 1265, 1465.4766, -1848.2500, 12.9922, 0.25);
RemoveBuildingForPlayer(playerid, 1372, 1466.9453, -1847.8438, 12.6641, 0.25);
RemoveBuildingForPlayer(playerid, 1372, 1419.7344, -1846.5469, 12.6641, 0.25);
RemoveBuildingForPlayer(playerid, 1265, 1420.4297, -1845.3438, 12.9844, 0.25);
RemoveBuildingForPlayer(playerid, 1372, 1419.6953, -1844.2031, 12.6641, 0.25);
RemoveBuildingForPlayer(playerid, 1220, 1420.4922, -1842.4375, 12.9297, 0.25);
RemoveBuildingForPlayer(playerid, 1220, 1419.7266, -1842.8516, 12.9297, 0.25);
RemoveBuildingForPlayer(playerid, 1230, 1419.6719, -1842.0313, 12.9766, 0.25);
RemoveBuildingForPlayer(playerid, 4170, 1433.9531, -1844.4063, 21.4219, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1447.1016, -1832.5000, 12.9141, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1432.3047, -1832.9141, 15.2891, 0.25);
RemoveBuildingForPlayer(playerid, 4174, 1435.7656, -1823.6641, 15.1797, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1456.3984, -1832.5313, 11.9844, 0.25);
RemoveBuildingForPlayer(playerid, 673, 1464.0938, -1831.8828, 12.3984, 0.25);
RemoveBuildingForPlayer(playerid, 1260, 1482.0859, -1859.9688, 25.0391, 0.25);
RemoveBuildingForPlayer(playerid, 4004, 1479.5234, -1852.6406, 24.5156, 0.25);
RemoveBuildingForPlayer(playerid, 1357, 1487.6953, -1848.1094, 12.8125, 0.25);
RemoveBuildingForPlayer(playerid, 1372, 1486.2109, -1848.1250, 12.6641, 0.25);
RemoveBuildingForPlayer(playerid, 1372, 1468.0625, -1847.7891, 12.6641, 0.25);
RemoveBuildingForPlayer(playerid, 1230, 1488.9219, -1848.2734, 12.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1480.0313, -1832.9141, 15.2891, 0.25);
RemoveBuildingForPlayer(playerid, 4171, 1503.3984, -1848.3359, 21.4609, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1504.8438, -1832.5313, 11.9844, 0.25);
RemoveBuildingForPlayer(playerid, 673, 1499.0469, -1832.2734, 12.8828, 0.25);
RemoveBuildingForPlayer(playerid, 1265, 1515.3828, -1850.0547, 12.9844, 0.25);
RemoveBuildingForPlayer(playerid, 1265, 1514.4219, -1850.0391, 12.9922, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1512.9453, -1832.3516, 13.4688, 0.25);
RemoveBuildingForPlayer(playerid, 1372, 1516.6875, -1850.0547, 12.6641, 0.25);
RemoveBuildingForPlayer(playerid, 4002, 1479.8672, -1790.3984, 56.0234, 0.25);
RemoveBuildingForPlayer(playerid, 3980, 1481.1875, -1785.0703, 22.3828, 0.25);
RemoveBuildingForPlayer(playerid, 4003, 1481.0781, -1747.0313, 33.5234, 0.25);
RemoveBuildingForPlayer(playerid, 4048, 1531.6328, -1852.6406, 24.5156, 0.25);
RemoveBuildingForPlayer(playerid, 1372, 1538.9453, -1849.2734, 12.6641, 0.25);
RemoveBuildingForPlayer(playerid, 1230, 1538.8359, -1847.6250, 13.6719, 0.25);
RemoveBuildingForPlayer(playerid, 1220, 1538.3906, -1847.9297, 12.9297, 0.25);
RemoveBuildingForPlayer(playerid, 1220, 1539.1016, -1847.2969, 12.9297, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1529.2891, -1832.9141, 15.2891, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1549.5313, -1832.3125, 12.8828, 0.25);
RemoveBuildingForPlayer(playerid, 673, 1555.6641, -1830.5938, 13.0234, 0.25);
RemoveBuildingForPlayer(playerid, 4175, 1524.4141, -1823.8516, 15.1797, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1554.8203, -1816.1563, 13.4766, 0.25); */
//---------------------------Mapa adaugate ProDj--------------------------------
RemoveBuildingForPlayer(playerid, 13759, 1413.4141, -804.7422, 83.4375, 0.25);
RemoveBuildingForPlayer(playerid, 13722, 1413.4141, -804.7422, 83.4375, 0.25);
RemoveBuildingForPlayer(playerid, 13831, 1413.4141, -804.7422, 83.4375, 0.25);
//-----------------------------Remove Cartier Burger Sus------------------------
RemoveBuildingForPlayer(playerid, 3685, 1249.5547, -905.4609, 45.0313, 0.25);
RemoveBuildingForPlayer(playerid, 3685, 1287.6875, -900.4609, 45.0625, 0.25);
RemoveBuildingForPlayer(playerid, 3685, 1284.2031, -871.2969, 45.2734, 0.25);
RemoveBuildingForPlayer(playerid, 3685, 1245.4609, -874.7031, 45.0703, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1235.8281, -917.5234, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1231.4141, -886.9297, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1241.1953, -886.8438, 44.3594, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1227.6094, -870.8047, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1261.9531, -913.7813, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1275.6016, -911.9609, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 3684, 1249.5547, -905.4609, 45.0313, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1263.8828, -894.3516, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1271.8672, -892.3672, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1299.5000, -909.1406, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 3684, 1287.6875, -900.4609, 45.0625, 0.25);
RemoveBuildingForPlayer(playerid, 5847, 1295.8594, -895.0938, 41.7109, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1252.2578, -885.8750, 44.3594, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1262.9844, -882.2188, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1271.2031, -882.3984, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1285.6484, -881.3125, 44.3594, 0.25);
RemoveBuildingForPlayer(playerid, 3684, 1245.4609, -874.7031, 45.0703, 0.25);
RemoveBuildingForPlayer(playerid, 3684, 1284.2031, -871.2969, 45.2734, 0.25);
//---------------------------Case noi pe 2 benzi--------------------------------
RemoveBuildingForPlayer(playerid, 4083, 1334.9766, -1644.1875, 11.7891, 0.25);
RemoveBuildingForPlayer(playerid, 4200, 1352.6328, -1647.3438, 14.7031, 0.25);
RemoveBuildingForPlayer(playerid, 4220, 1370.6406, -1643.4453, 33.1797, 0.25);
RemoveBuildingForPlayer(playerid, 4106, 1342.9688, -1652.2656, 15.2031, 0.25);
RemoveBuildingForPlayer(playerid, 4011, 1334.9766, -1644.1875, 11.7891, 0.25);
RemoveBuildingForPlayer(playerid, 4199, 1352.6328, -1647.3438, 14.7031, 0.25);
RemoveBuildingForPlayer(playerid, 4121, 1336.0156, -1604.7344, 25.6328, 0.25);
// ----- Piscina la Spray LS
RemoveBuildingForPlayer(playerid, 1646, 975.8594, -1017.2422, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 980.0156, -1017.2422, 41.9609, 0.25);
RemoveBuildingForPlayer(playerid, 716, 1015.7813, -1028.8438, 29.4844, 0.25);
RemoveBuildingForPlayer(playerid, 1646, 992.2031, -1015.4063, 41.9609, 0.25);
// nfs hq //
RemoveBuildingForPlayer(playerid, 5928, 1309.9141, -1330.1328, 25.1875, 0.25);
RemoveBuildingForPlayer(playerid, 5933, 1281.4375, -1337.9531, 12.3750, 0.25);
RemoveBuildingForPlayer(playerid, 5809, 1281.4375, -1337.9531, 12.3750, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1321.5234, -1374.4297, 12.5859, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1292.0000, -1374.2969, 12.3672, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1300.5859, -1374.2969, 12.3672, 0.25);
RemoveBuildingForPlayer(playerid, 5704, 1309.9141, -1330.1328, 25.1875, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1329.4766, -1374.4297, 12.5859, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1330.6016, -1340.9844, 6.1094, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1326.6953, -1316.0078, 8.7266, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1327.5938, -1333.6719, 6.1094, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1332.0000, -1309.4297, 8.7266, 0.25);
// ----- Noua Banca LS
//RemoveBuildingForPlayer(playerid, 4054, 1402.5000, -1682.0234, 25.5469, 0.25);
// RemoveBuildingForPlayer(playerid, 4055, 1394.3594, -1620.6641, 32.1484, 0.25);
// RemoveBuildingForPlayer(playerid, 4220, 1370.6406, -1643.4453, 33.1797, 0.25);
// RemoveBuildingForPlayer(playerid, 4005, 1402.5000, -1682.0234, 25.5469, 0.25);
// RemoveBuildingForPlayer(playerid, 4006, 1394.3594, -1620.6641, 32.1484, 0.25);
//==============================================================================
PlayerInfo[playerid][pPcarkey] = -1;
PlayerInfo[playerid][pPcarkey2] = -1;
PlayerInfo[playerid][pPcarkey3] = -1;
AFKCheck[playerid] = 0;
togzones[playerid] = 0;
PPos[playerid][0] = 0;
PPos[playerid][1] = 0;
PPos[playerid][2] = 0;
for(new i=0;i <MAX_PLAYERS;i++)
{
ignore[playerid][i] = 0;
}
SetPlayerMapIcon(playerid, 21, 1528.779, -1678.113, 5.890625, 30, 0, MAPICON_LOCAL); // LSPD
SetPlayerMapIcon(playerid, 22, 1203.0322,-919.2150,46.6817, 17, 0, MAPICON_LOCAL); //BurgerShot LS
//SetPlayerMapIcon(playerid, 11, 1417.301147,-1681.589233,13.592200, 52, 0, MAPICON_LOCAL); // Banca LS ( langa PD,primarie)
SetPlayerMapIcon(playerid, 11, 1462.9099,-1011.6534,26.8438, 52, 0, MAPICON_LOCAL); // Banca LS
SetPlayerMapIcon(playerid, 12, 1791.3640,-1164.3727,23.8281, 6, 0, MAPICON_LOCAL); // gsls
// SetPlayerMapIcon(playerid, 13, 2166.6174,-1674.4028,15.0802, 24, COLOR_YELLOW); // drugs
// SetPlayerMapIcon(playerid, 14, 2244.8225,-1662.6737,15.4690, 45, COLOR_YELLOW); // clothes
// SetPlayerMapIcon(playerid, 15, 2244.8225,-1662.6737,15.4690, 45, COLOR_YELLOW); // clothes
SetPlayerMapIcon(playerid, 16, 1028.0814,-1032.5697,31.9013, 63, 0, MAPICON_LOCAL); // Spray 1
SetPlayerMapIcon(playerid, 17, 2073.8887,-1832.1604,13.5469, 63, 0, MAPICON_LOCAL); // Spray 2
// SetPlayerMapIcon(playerid, 18, 1179.7965,-1325.3317,13.9882, 22, 0, MAPICON_LOCAL); // Hospital Icon
// SetPlayerMapIcon(playerid, 19, 1380.1548,-1089.0107,27.3906, 19, 0, MAPICON_LOCAL); // Mission Billboard
// SetPlayerMapIcon(playerid, 20, 2144.8623,-1484.2261,25.5391, 59, 0, MAPICON_LOCAL); // Ballas
// SetPlayerMapIcon(playerid, 21, 688.7253,-1276.3905,13.5586, 58, 0, MAPICON_LOCAL); // VLA
// SetPlayerMapIcon(playerid, 22, 2169.1162,-1021.0499,62.6764, 60, 0, MAPICON_LOCAL); // LSV
// SetPlayerMapIcon(playerid, 23, 2495.4177,-1688.3864,13.7738, 62, 0, MAPICON_LOCAL); // Grove
// SetPlayerMapIcon(playerid, 24, 1718.6870,-1697.2708,13.5000, 23, 0, MAPICON_LOCAL); // SpawnCivil
SetPlayerMapIcon(playerid, 25, 295.0975,-1599.7577,95.5747, 55, 0, MAPICON_LOCAL); // DealerShip
// SetPlayerMapIcon(playerid, 26, 601.9354,-1243.5402,18.3076, 6, 0, MAPICON_LOCAL); //Mats Get LS
SetPlayerMapIcon(playerid, 5, 1517.5896,-2621.6406,13.5469, 5, 0, MAPICON_LOCAL); // avioane dealer
SetPlayerMapIcon(playerid, 9, 83.4199,-1631.0671,11.4714, 9, 0, MAPICON_LOCAL); //barci dealer
SetPlayerMapIcon(playerid, 31, 1236.8499,-1644.6886,13.6441, 31, 0, MAPICON_LOCAL); //PALAT LS
/*TextDrawShowForPlayer(playerid, Textdrawsite1[playerid]);
TextDrawShowForPlayer(playerid, Textdrawsite2[playerid]);
TextDrawShowForPlayer(playerid, Textdrawsite3[playerid]);
TextDrawShowForPlayer(playerid, Textdrawsite4[playerid]); */
PlayerInfo[playerid][SpawnDance] = true;
if(Security != 0)
{
SendClientMessage(playerid, 0xEEEC00E7, "** Host has broken one of the Agreement rules, action has been taken.");
Kick(playerid);
return 1;
}
gPlayerLogged[playerid] = 0;
Seatbelt[playerid] = 0;
JustReported[playerid] = 0;
PlayerNeedsHelp[playerid] = 0;
UsedCrack[playerid] = 0;
CrackOffer[playerid] = 999;
CrackPrice[playerid] = 0;
CrackGram[playerid] = 0;
STIPlayer[playerid] = 0;
TextDrawShowForPlayer(playerid, LoginS0);
TextDrawShowForPlayer(playerid, LoginS1);
TextDrawShowForPlayer(playerid, LoginS2);
TextDrawShowForPlayer(playerid, Textdraw100);
TextDrawShowForPlayer(playerid, Textdraw101);
TextDrawShowForPlayer(playerid, Textdraw102);
TextDrawShowForPlayer(playerid, Textdraw103);
TextDrawShowForPlayer(playerid, Textdraw104);
TextDrawShowForPlayer(playerid, TextdrawLinie1);
TextDrawShowForPlayer(playerid, TextdrawLinie2);
TextDrawShowForPlayer(playerid, TextdrawLinie3);
TextDrawShowForPlayer(playerid, TextdrawLinie4);
TextDrawShowForPlayer(playerid, ShadowsRandom);
TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
// TextDrawHideForPlayer(playerid, SafeText[playerid]);
// TextDrawShowForPlayer(playerid, LoginS3);
cblls[playerid] = 1; clsv[playerid] = 1; cgst[playerid] = 1; cvla[playerid] = 1; cdnb[playerid] = 1; csfr[playerid] = 1;
gActivePlayers[playerid]++;
numplayers++;
new plname[MAX_PLAYER_NAME];
new string[MAX_PLAYER_NAME];
WantedLevel[playerid] = 0;
WantedPoints[playerid] = 0;
SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0; PlayerIsHarvesting[playerid] = 0;
SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0;
GettingJob[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0;
ApprovedLawyer[playerid] = 0; CallLawyer[playerid] = 0; WantLawyer[playerid] = 0;
KickPlayer[playerid] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;
CP[playerid] = 0; SpawnChange[playerid] = 1;
CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;
MoneyMessage[playerid] = 0; Condom[playerid] = 0;
STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0;
RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0;
TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0;
RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0;
DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0; OnCK[playerid] = 999; GettingCK[playerid] = 999;
DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; OrderReady[playerid] = 0;
JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0;
GoChase[playerid] = 999; GetChased[playerid] = 999; PlacedNews[playerid] = 0;
OnDuty[playerid] = 0; TestFishes[playerid] = 0;
BoxWaitTime[playerid] = 0; ChangePos2[playerid][1] = 0; //SchoolSpawn[playerid] = 0;
SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0;
BusCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0;
FindTimePoints[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0; PlayerInfo[playerid][pGarbageTime] = 0;
Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0;
Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
Unspec[playerid][sLocal] = 255; FishCount[playerid] = 0;
WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999; WritingLine[playerid] = 0; BringingPaper[playerid] = 0; GotPaper[playerid] = 0;
PaperOffer[playerid] = 999; ConsumingMoney[playerid] = 0;
gLastCar[playerid] = 0; FirstSpawn[playerid] = 0;
gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0;
gSpeedo[playerid] = 0; gGas[playerid] = 0; gNewb = 1;
gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0;
IsCollectingRubbish[playerid] = 0; GarbageEndTime[playerid] = 0; GarbageTime[playerid] = 0; BinTime[playerid] = 0;//garbagejob
gPlayerSpawned[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0;
PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0;
StartTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
MatsHolding[playerid] = 0; TutTime[playerid] = 0;
gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999;
PlayerInfo[playerid][pCash] = dollah; NoFuel[playerid] = 0;
HireCar[playerid] = 299; PlayersChannel[playerid] = 999;
TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
Locator[playerid] = 0; PlayerOnMission[playerid] = 0; MissionCheckpoint[playerid] = 0;
WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0;
Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0;
ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999;
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]); BugReport[playerid] = 0; BugNeedHelp[playerid] = 0; BugAdvertise[playerid] = 0; Robbing[playerid] = 0;
PlayerInfo[playerid][pLevel] = 2;
PlayerInfo[playerid][pAdmin] = 0;
PlayerInfo[playerid][pHelper] = 0;
PlayerInfo[playerid][pNfs] = 0;
PlayerInfo[playerid][pDonateRank] = 0;
PlayerInfo[playerid][gPupgrade] = 0;
PlayerInfo[playerid][pConnectTime] = 0;
PlayerInfo[playerid][pReg] = 0;
PlayerInfo[playerid][pSex] = 0;
PlayerInfo[playerid][pAge] = 0;
PlayerInfo[playerid][pOrigin] = 0;
PlayerInfo[playerid][pExp] = 6;
PlayerInfo[playerid][pCoin] = 0;
PlayerInfo[playerid][pAccount] = 0;
PlayerInfo[playerid][pCrimes] = 0;
PlayerInfo[playerid][pDeaths] = 0;
PlayerInfo[playerid][pArrested] = 0;
PlayerInfo[playerid][pWantedDeaths] = 0;
PlayerInfo[playerid][pPhoneBook] = 0;
PlayerInfo[playerid][pLottoNr] = 0;
PlayerInfo[playerid][pFishes] = 0;
PlayerInfo[playerid][pBiggestFish] = 0;
PlayerInfo[playerid][pJob] = 0;
PlayerInfo[playerid][pPayCheck] = 4;
PlayerInfo[playerid][pHeadValue] = 0;
PlayerInfo[playerid][pJailed] = 0;
PlayerInfo[playerid][pJailTime] = 0;
PlayerInfo[playerid][pMats] = 0;
PlayerInfo[playerid][pDrugs] = 0;
PlayerInfo[playerid][pWeed] = 0;
PlayerInfo[playerid][pLeader] = 0;
PlayerInfo[playerid][pMember] = 0;
PlayerInfo[playerid][pFMember] = 255;
PlayerInfo[playerid][pRank] = 0;
PlayerInfo[playerid][pChar] = 0;
PlayerInfo[playerid][pContractTime] = 0;
PlayerInfo[playerid][pDetSkill] = 0;
PlayerInfo[playerid][pSexSkill] = 0;
PlayerInfo[playerid][pBoxSkill] = 0;
PlayerInfo[playerid][pLawSkill] = 0;
PlayerInfo[playerid][pMechSkill] = 0;
PlayerInfo[playerid][pJackSkill] = 0;
PlayerInfo[playerid][pCarSkill] = 0;
PlayerInfo[playerid][pNewsSkill] = 0;
PlayerInfo[playerid][pDrugsSkill] = 0;
PlayerInfo[playerid][pCookSkill] = 0;
PlayerInfo[playerid][pFishSkill] = 0;
PlayerInfo[playerid][pSHealth] = 0.0;
PlayerInfo[playerid][pHealth] = 50.0;
PlayerInfo[playerid][pPos_x] = 2246.6;
PlayerInfo[playerid][pPos_y] = -1161.9;
PlayerInfo[playerid][pPos_z] = 1029.7;
PlayerInfo[playerid][pInt] = 15;
// PlayerInfo[playerid][pRobSkill] = 0;
PlayerInfo[playerid][pRob] = 0;
PlayerInfo[playerid][pLocal] = 255;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pModel] = 21;
new randphone = 1000 + random(8999);//minimum 1000 max 9999 //giving one at the start
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPhousekey] = 255;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pCarLic] = 1;
PlayerInfo[playerid][pFlyLic] = 0;
PlayerInfo[playerid][pBoatLic] = 0;
PlayerInfo[playerid][pFishLic] = 0;
PlayerInfo[playerid][pGunLic] = 0;
PlayerInfo[playerid][pGun1] = 0;
PlayerInfo[playerid][pGun2] = 0;
PlayerInfo[playerid][pGun3] = 0;
PlayerInfo[playerid][pGun4] = 0;
PlayerInfo[playerid][pAmmo1] = 0;
PlayerInfo[playerid][pAmmo2] = 0;
PlayerInfo[playerid][pAmmo3] = 0;
PlayerInfo[playerid][pAmmo4] = 0;
PlayerInfo[playerid][pCarTime] = 0;
PlayerInfo[playerid][pPayDay] = 0;
PlayerInfo[playerid][pPayDayHad] = 0;
PlayerInfo[playerid][pCDPlayer] = 0;
PlayerInfo[playerid][pWins] = 0;
PlayerInfo[playerid][pLoses] = 0;
PlayerInfo[playerid][pAlcoholPerk] = 0;
PlayerInfo[playerid][pDrugPerk] = 0;
PlayerInfo[playerid][pMiserPerk] = 0;
PlayerInfo[playerid][pPainPerk] = 0;
PlayerInfo[playerid][pTraderPerk] = 0;
PlayerInfo[playerid][pTut] = 0;
PlayerInfo[playerid][pMissionNr] = 0;
PlayerInfo[playerid][pWarns] = 0;
PlayerInfo[playerid][pFWarns] = 0;
PlayerInfo[playerid][pFuel] = 0;
PlayerInfo[playerid][pVirWorld] = 0;
PlayerInfo[playerid][pMaskuse] = 0;
PlayerInfo[playerid][pAdjustable] = 0;
PlayerInfo[playerid][pPassport] = 0;
PlayerInfo[playerid][pCrack] = 0;
PlayerInfo[playerid][pGarbageTime] = 0;//garbage job
PlayerInfo[playerid][pDGun1] = 0; //dgun
PlayerInfo[playerid][pDGun2] = 0; //dgun
PlayerInfo[playerid][pDGun3] = 0; //dgun
PlayerInfo[playerid][pDGun4] = 0; //dgun
PlayerInfo[playerid][pDGun5] = 0; //dgun
PlayerInfo[playerid][pLoginYear] = 0;
PlayerInfo[playerid][pLoginMonth] = 0;
PlayerInfo[playerid][pLoginDay] = 0;
PlayerInfo[playerid][pLoginHour] = 0;
PlayerInfo[playerid][pLoginMinute] = 0;
PlayerInfo[playerid][pLoginSecond] = 0;
PlayerInfo[playerid][pGps] = 1;
// PlayerInfo[playerid][pBlackList] = 0;
// PlayerInfo[playerid][pBLTime] = 0;
PlayerInfo[playerid][pBlackList] = 0;
PlayerInfo[playerid][pBlackListTime] = 0;
PlayerInfo[playerid][pJoinedEvent] = 0;
PlayerInfo[playerid][pEventON] = 0;
PlayerInfo[playerid][pBlackList2] = 0;
PlayerInfo[playerid][pBlackListTime2] = 0;
HouseEntered[playerid] = 255;
pgun[playerid] = 0; //dgun
ClearFishes(playerid);
ClearCooking(playerid);
ClearGroceries(playerid);
ClearMarriage(playerid);
SetPlayerColor(playerid,COLOR_GRAD2);
GetPlayerName(playerid, plname, sizeof(plname));
format(string, sizeof(string), "Users/%s.ini", plname);
if(fexist(string))
{
gPlayerAccount[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "{33CC33}Contul dumneavoastra este deja inregistrat !");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "{33CC33}Scrie parola contului {FF6347}Indungi!");
//SendClientMessage(playerid, 0xFF0000FF, "*www.sa-mp.ro*");
}
else
{
gPlayerAccount[playerid] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "");
// SendClientMessage(playerid, COLOR_LIGHTBLUE, "Creatorul server-ul este {FF6347}Indungi");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "{33CC33}Contul dumneavoastra nu este inregistrat !");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "{33CC33}Scrie o parola pentru contul {FF6347}Indungi!");
//SendClientMessage(playerid, 0xFF0000FF, "Bine ai venit pe www.sa-mp.ro ! Speram sa va distrati la noi pe server !");
//SendClientMessage(playerid, 0xFF0000FF, "Multa bafta !");
}
return 1;
}
PHP код:
public OnPlayerLogin(playerid,password[])
{
new tmp2[256];
new string2[64];
new playername2[MAX_PLAYER_NAME];
new playernamesplit[3][MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
split(playername2, playernamesplit, '_');
format(string2, sizeof(string2), "Users/%s.ini", playername2);
new File: UserFile = fopen(string2, io_read);
if ( UserFile )
{
new PassData[256];
new keytmp[256], valtmp[256];
fread( UserFile , PassData , sizeof( PassData ) );
keytmp = ini_GetKey( PassData );
if( strcmp( keytmp , "Key" , true ) == 0 )
{
valtmp = ini_GetValue( PassData );
strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
}
if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( UserFile , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); }
if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }
if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
if( strcmp( key , "NFS CLub" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNfs] = strval( val ); }
if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); }
if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }
if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strval( val ); }
if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }
if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); }
if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
if( strcmp( key , "MuteTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuteTime] = strval( val ); }
if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
if( strcmp( key , "Coin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCoin] = strval( val ); }
if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); }
if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateRank] = strval( val ); }
if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); }
if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); }
if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); }
if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); }
if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); }
if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); }
if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); }
if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }
if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }
if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }
if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }
if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); }
if( strcmp( key , "Weed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeed] = strval( val ); }
if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); }
if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); }
if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strval( val ); }
if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); }
if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); }
// if( strcmp( key , "WarKills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarKills] = strval( val ); }
if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }
if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); }
if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); }
if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); }
if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); }
if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); }
if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strval( val ); }
if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strval( val ); }
if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); }
if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strval( val ); }
if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); }
if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( val ); }
if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); }
if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); }
// if( strcmp( key , "RobSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRobSkill] = strvalEx( val ); }
if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); }
if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }
if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); }
if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strval( val ); }
if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( val ); }
if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); }
if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); }
if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); }
if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); }
if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }
if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }
if( strcmp( key , "Rob" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRob] = strvalEx( val ); }
if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); }
if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }
if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); } //dgun
if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); } //dgun
if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); } //dgun
if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); } //dgun
if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); }
if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); }
if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); }
if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strval( val ); }
if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strval( val ); }
if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }
if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }
if( strcmp( key , "VirWorld" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVirWorld] = strval( val ); }
if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); }
if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }
if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); }
if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); }
if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); }
if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
if( strcmp( key , "FactionWarns" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFWarns] = strval( val ); }
if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }
if( strcmp( key , "Mission" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMissionNr] = strval( val ); }
if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
if( strcmp( key , "FactionWarns" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFWarns] = strval( val ); }
if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strval( val ); }
if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); }
if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }
if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrack] = strval( val ); }
if( strcmp( key , "Passport" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassport] = strvalEx( val ); }
if( strcmp( key , "GGKills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pggKills] = strval( val ); }
if( strcmp( key , "GGKills2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pggKills2] = strval( val ); }
if( strcmp( key , "GGDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pggDeaths] = strval( val ); }
if( strcmp( key , "GGLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pggLevel] = strval( val ); }
if( strcmp( key , "InGG" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInGG] = strval( val ); }
if( strcmp( key , "Slot1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDGun1] = strval( val ); } //dgun
if( strcmp( key , "Slot2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDGun2] = strval( val ); } //dgun
if( strcmp( key , "Slot3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDGun3] = strval( val ); } //dgun
if( strcmp( key , "Slot4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDGun4] = strval( val ); } //dgun
if( strcmp( key , "Slot5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDGun5] = strval( val ); } //dgun
if( strcmp( key , "Wanted" , true ) == 0 ) { val = ini_GetValue( Data ); WantedLevel[playerid] = strval( val ); }
if( strcmp( key , "GPS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGps] = strval( val ); }
if( strcmp( key , "BlackList" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBlackList] = strval( val ); }
if( strcmp( key , "BlackListTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBlackListTime] = strval( val ); }
if( strcmp( key , "BlackList2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBlackList2] = strval( val ); }
if( strcmp( key , "BlackListTime2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBlackListTime2] = strval( val ); }
}
fclose(UserFile);
}
else
{
new loginstring[128];
new loginname[64];
new tittle[64];
format(tittle,64,"Login{FFE100}[%d/5]",gPlayerLogTries[playerid]+2);
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"Parola gresita\nTe rugam sa scrii parola corecta:",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_PASSWORD,tittle,loginstring,"Login","Exit");
fclose(UserFile);
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 6) { Kick(playerid); }
return 1;
}
PlayerInfo[playerid][pAdjustable] = 0;
ResetPlayerMoney(playerid);
ConsumingMoney[playerid] = 1;
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
if(PlayerInfo[playerid][pReg] == 0)
{
PlayerInfo[playerid][pLevel] = 2;
PlayerInfo[playerid][pSHealth] = 0.0;
PlayerInfo[playerid][pHealth] = 100.0;
PlayerInfo[playerid][pPos_x] = 2246.6;
PlayerInfo[playerid][pPos_y] = -1161.9;
PlayerInfo[playerid][pPos_z] = 1029.7;
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pModel] = 7;
new randphone = 1000 + random(8999);//minimum 1000 max 9999 //giving one at the start
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPhousekey] = 255;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pAccount] = 50000;
PlayerInfo[playerid][pReg] = 1;
GivePlayerMoney(playerid, 2000);
}
if(PlayerInfo[playerid][pLevel] == -999) //autoban
{
Ban(playerid);
}
else if(PlayerInfo[playerid][pCK] > 0)
{
Kick(playerid);
}
format(string2, sizeof(string2), "{33CC33}Bine ai venit {FF6347}%s",playername2);
SendClientMessage(playerid, COLOR_WHITE,string2);
printf("%s s-a logat.",playername2);
if (PlayerInfo[playerid][pDonateRank] == 1)
{
SendClientMessage(playerid, COLOR_WHITE,"{33CC33}Te-ai logat cu {FF6347}V.I.P Account.");
}
if (PlayerInfo[playerid][pDonateRank] == 2)
{
SendClientMessage(playerid, COLOR_WHITE,"{33CC33}Te-ai logat cu {FF6347}Extra V.I.P Account.");
}
if (PlayerInfo[playerid][pDonateRank] == 3)
{
SendClientMessage(playerid, COLOR_WHITE,"{33CC33}Te-ai logat cu {FF6347}Mega V.I.P Account.");
}
if (PlayerInfo[playerid][pAdmin] > 0)
{
format(string2, sizeof(string2), "{33CC33}Te-ai logat cu {FF6347}Admin %d",PlayerInfo[playerid][pAdmin]);
SendClientMessage(playerid, COLOR_WHITE,string2);
}
new playersip[64];
GetPlayerIp(playerid,playersip,sizeof(playersip));
if (PlayerInfo[playerid][pLevel] >= 0)
{
format(string2, sizeof(string2), "» {FF6347}%s{33CC33} a intrat. IP: {FF6347}%s.",playername2, playersip);
SendAdminMessage(COLOR_YELLOW2,string2);
}
if (PlayerInfo[playerid][pHelper] > 0)
{
format(string2, sizeof(string2), "{33CC33}Te-ai logat cu {FF6347}Helper %d",PlayerInfo[playerid][pHelper]);
SendClientMessage(playerid, COLOR_WHITE,string2);
}
/* if(PlayerInfo[playerid][pBlackList] == 1)
{
format(string2, sizeof(string2), "* You are on BlackList, type /bltime.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, string2);
}*/
if(PlayerInfo[playerid][pMuted] == 1)
{
format(string2, sizeof(string2), "{FF6347}Ai mute, scrie /mutetime.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, string2);
}
SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
if(gTeam[playerid] == 0)
{
gTeam[playerid] = 3;
}
else
{
gTeam[playerid] = PlayerInfo[playerid][pTeam];
}
TextDrawHideForPlayer(playerid, LoginS0);
TextDrawHideForPlayer(playerid, LoginS1);
TextDrawHideForPlayer(playerid, LoginS2);
// TextDrawHideForPlayer(playerid, LoginS3);
gPlayerLogged[playerid] = 1;
SpawnPlayer(playerid);
format(tmp2, sizeof(tmp2), "~w~Bine ai venit ~n~~r~~h~ %s", playername2);
DateProp(playerid);
GameTextForPlayer(playerid, tmp2, 300, 1);
SendClientMessage(playerid, COLOR_YELLOW, motd);
new year, month, day, hour, minute, second;
getdate(year, month, day);
gettime(hour, minute, second);
PlayerInfo[playerid][pLoginYear] = year;
PlayerInfo[playerid][pLoginMonth] = month;
PlayerInfo[playerid][pLoginDay] = day;
PlayerInfo[playerid][pLoginHour] = hour;
PlayerInfo[playerid][pLoginMinute] = minute;
PlayerInfo[playerid][pLoginSecond] = second;
if(PlayerInfo[playerid][pFMember] < 255)
{
format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
SendClientMessage(playerid, COLOR_YELLOW, tmp2);
}
if(IsGunGame == 0)
{
PlayerInfo[playerid][pggKills2] = 0;
PlayerInfo[playerid][pggKills] = 0;
PlayerInfo[playerid][pggDeaths] = 0;
PlayerInfo[playerid][pggLevel] = 0;
PlayerInfo[playerid][pInGG] = 0;
}
/*new car1;
new car2;
new car3;
OnPlayerUpdateEx(playerid);
car1 = PlayerInfo[playerid][pPcarkey];
car2 = PlayerInfo[playerid][pPcarkey2];
car3 = PlayerInfo[playerid][pPcarkey3];
if (car1 == 0){ }
else
{
SetVehicleToRespawn(car1);
//SetVehiclePos(car1,CarInfo[car1][cLocationx],CarInfo[car1][cLocationy],CarInfo[car1][cLocationz]);
}
if (car2 == 0){ }
else
{
//SetVehiclePos(car2,CarInfo[car2][cLocationx],CarInfo[car2][cLocationy],CarInfo[car2][cLocationz]);
SetVehicleToRespawn(car2);
}
if (car3 == 0){ }
else
{
//SetVehiclePos(car3,CarInfo[car3][cLocationx],CarInfo[car3][cLocationy],CarInfo[car3][cLocationz]);
SetVehicleToRespawn(car3);
}*/
}
return 1;
}
PHP код:
// Anti-Bot system
// 18 Юль 2013
// SAMP-RU.ORG
#include <a_samp>
#pragma tabsize 0
#define SizeCaptcha 8
new Captcha[MAX_PLAYERS][24];
public OnPlayerConnect(playerid){GetRandomWord(SizeCaptcha,Captcha[playerid]);new str[128];format(str,128,"{ffffff}Introdu codul de mai jos pentru a putea continua[anti-bot]: {00ff00}\"%s\" ",Captcha[playerid]);ShowPlayerDialog(playerid,471,DIALOG_STYLE_INPUT,"Sistem Anti-Bot",str,"Enter","Cancel");return true;}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){if(dialogid == 471){if(!response)return Kick(playerid);{if(strcmp(Captcha[playerid],inputtext,true))return Kick(playerid);}}return false;}
stock Random(min,max) return min + random(max - min);
stock GetRandomWord(len,word[]){for(new i;i<len;i++){switch(Random(0,2)){case 0: word[i]= Random('A','Z');case 1: word[i]= Random('0','9');}}word[len-1]=0;}