Login deos not work.
#1

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.
Reply
#2

Could you post the code located under OnPlayerConnect / OnPlayerLogin callbacks?
Reply
#3

onplayerconnect
PHP код:
public OnPlayerConnect(playerid)
{
    new 
name[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    if(!
strfind("samp."nametrue)  || !strfind("gta."nametrue) || !strfind("cvl"nametrue) || !strfind("efl"nametrue) || !strfind("lgn"nametrue) || !strfind("freakz"nametrue)
    || !
strfind("c v l"nametrue) || !strfind("goldz"nametrue) || !strfind("goldz.tk"nametrue) ||!strfind("l g n"nametrue) || !strfind("e f l"nametrue) || !strfind("samp,"nametrue) || !strfind("gta,"nametrue))
    {
        
SendClientMessage(playerid0xFF0000E7"» Iei MUIE de la tot Serverul !");
        
Ban(playerid);
    }
    
    
SpawnInDMplayerid ] = " "//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(playerid57661160.96, -1180.5870.4141250.0); // Awning shadows
            
RemoveBuildingForPlayer(playerid57671160.96, -1180.5870.4141250.0); // Building
            
RemoveBuildingForPlayer(playerid59641160.96, -1180.5870.4141250.0); // LOD
//=======================Remove Buildings=======================================
//remove building pentru job inghetata //
     
RemoveBuildingForPlayer(playerid59751014.0234, -1361.460920.35160.25);
       
RemoveBuildingForPlayer(playerid57321014.0234, -1361.460920.35160.25);
       
RemoveBuildingForPlayer(playerid14381015.5313, -1337.171912.55470.25);
       
RemoveBuildingForPlayer(playerid12971019.4219, -1332.000015.64060.25);
    
RemoveBuildingForPlayer(playerid57641065.1406, -1270.578125.71090.25);
//remove pentru cladire elevator //
 // Remove the lamp post at the underground car park entrance
     
RemoveBuildingForPlayer(playerid1226265.481, -1581.132.93115.0);
            
// Remove the night lights object (must be removed to also remove any
            // occulsion zones inside the building)
    
RemoveBuildingForPlayer(playerid6518280.297, -1606.272.3984250.0);
//remove building tufisuri spawn //
RemoveBuildingForPlayer(playerid792820.9297, -2066.179712.17190.25);
RemoveBuildingForPlayer(playerid792851.7969, -2066.359412.17190.25);
// remove building politie noua // 
// remove building V.I.P //
 
RemoveBuildingForPlayer(playerid59311114.3125, -1348.101617.98440.25);
RemoveBuildingForPlayer(playerid59351120.1563, -1303.453118.57030.25);
RemoveBuildingForPlayer(playerid12971112.6172, -1389.867215.67190.25);
RemoveBuildingForPlayer(playerid58101114.3125, -1348.101617.98440.25);
RemoveBuildingForPlayer(playerid59931110.8984, -1328.812513.85160.25);
RemoveBuildingForPlayer(playerid58111131.1953, -1380.421917.07030.25);
RemoveBuildingForPlayer(playerid14401141.9844, -1346.109413.26560.25);
RemoveBuildingForPlayer(playerid57371120.1563, -1303.453118.57030.25);
 
// remove building pentru new taxi hq //
     
RemoveBuildingForPlayer(playerid59301134.2500, -1338.078123.15630.25);
    
RemoveBuildingForPlayer(playerid57081134.2500, -1338.078123.15630.25);
    
RemoveBuildingForPlayer(playerid6171178.6016, -1332.070312.89060.25);
    
RemoveBuildingForPlayer(playerid6201184.0078, -1353.500012.57810.25);
    
RemoveBuildingForPlayer(playerid6201184.0078, -1343.265612.57810.25);
    
RemoveBuildingForPlayer(playerid6181177.7344, -1315.664113.29690.25);
    
RemoveBuildingForPlayer(playerid6201184.8125, -1292.914112.57810.25);
    
RemoveBuildingForPlayer(playerid6201184.8125, -1303.148412.57810.25);
// remove building fireman + medic //
    
RemoveBuildingForPlayer(playerid40251777.8359, -1773.906312.52340.25);
    
RemoveBuildingForPlayer(playerid40721777.4375, -1782.304712.62500.25);
    
RemoveBuildingForPlayer(playerid42151777.5547, -1775.039136.75000.25);
    
RemoveBuildingForPlayer(playerid6471791.1797, -1816.632814.62500.25);
    
RemoveBuildingForPlayer(playerid7001788.5078, -1816.570313.35160.25);
    
RemoveBuildingForPlayer(playerid6471796.9609, -1817.390614.62500.25);
    
RemoveBuildingForPlayer(playerid7001801.8828, -1817.304713.35160.25);
    
RemoveBuildingForPlayer(playerid40121777.4375, -1782.304712.62500.25);
    
RemoveBuildingForPlayer(playerid40191777.8359, -1773.906312.52340.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(playerid40461479.5234, -1852.640624.51560.25);
RemoveBuildingForPlayer(playerid40471531.6328, -1852.640624.51560.25);
RemoveBuildingForPlayer(playerid42171449.2500, -1852.570322.36720.25);
RemoveBuildingForPlayer(playerid12661482.0859, -1859.968825.03910.25);
RemoveBuildingForPlayer(playerid7131405.2344, -1821.117213.10160.25);
RemoveBuildingForPlayer(playerid6201417.9766, -1832.531311.98440.25);
RemoveBuildingForPlayer(playerid41701433.9531, -1844.406321.42190.25);
RemoveBuildingForPlayer(playerid6201456.3984, -1832.531311.98440.25);
RemoveBuildingForPlayer(playerid12601482.0859, -1859.968825.03910.25);
RemoveBuildingForPlayer(playerid40041479.5234, -1852.640624.51560.25);
RemoveBuildingForPlayer(playerid41711503.3984, -1848.335921.46090.25);
RemoveBuildingForPlayer(playerid6201504.8438, -1832.531311.98440.25);
RemoveBuildingForPlayer(playerid40481531.6328, -1852.640624.51560.25);
RemoveBuildingForPlayer(playerid6201549.5313, -1832.312512.88280.25);
//remove building pentru palat mexes//
RemoveBuildingForPlayer(playerid61051223.7188, -1616.320319.11720.25);
RemoveBuildingForPlayer(playerid61061226.9531, -1656.156324.77340.25);
RemoveBuildingForPlayer(playerid61491170.0781, -1668.562518.92190.25);
RemoveBuildingForPlayer(playerid61961225.3359, -1642.750025.10160.25);
RemoveBuildingForPlayer(playerid15251271.4844, -1662.320320.25000.25);
RemoveBuildingForPlayer(playerid6471190.9844, -1686.312513.09380.25);
RemoveBuildingForPlayer(playerid6471190.9844, -1691.390613.09380.25);
RemoveBuildingForPlayer(playerid6201191.7891, -1691.906312.01560.25);
RemoveBuildingForPlayer(playerid6471190.9844, -1681.523413.09380.25);
RemoveBuildingForPlayer(playerid6201191.4063, -1674.421912.01560.25);
RemoveBuildingForPlayer(playerid6471190.9844, -1674.148413.09380.25);
RemoveBuildingForPlayer(playerid6471196.7266, -1691.390613.09380.25);
RemoveBuildingForPlayer(playerid6471202.4141, -1691.390613.09380.25);
RemoveBuildingForPlayer(playerid6471202.4141, -1686.312513.09380.25);
RemoveBuildingForPlayer(playerid6201204.3906, -1692.320312.01560.25);
RemoveBuildingForPlayer(playerid6471202.4141, -1681.523413.09380.25);
RemoveBuildingForPlayer(playerid6261258.5781, -1675.500014.60160.25);
RemoveBuildingForPlayer(playerid6261267.6719, -1675.500014.60160.25);
RemoveBuildingForPlayer(playerid6201203.6406, -1674.484412.01560.25);
RemoveBuildingForPlayer(playerid6471202.4141, -1674.148413.09380.25);
RemoveBuildingForPlayer(playerid6471197.2734, -1674.148413.09380.25);
RemoveBuildingForPlayer(playerid7921155.7344, -1653.343813.17970.25);
RemoveBuildingForPlayer(playerid61501170.0781, -1668.562518.92190.25);
RemoveBuildingForPlayer(playerid6261181.3125, -1665.468814.79690.25);
RemoveBuildingForPlayer(playerid12811197.2344, -1667.054713.35160.25);
RemoveBuildingForPlayer(playerid12811189.6016, -1667.312513.35160.25);
RemoveBuildingForPlayer(playerid6261208.2813, -1665.468814.50000.25);
RemoveBuildingForPlayer(playerid12811195.1797, -1661.500013.35160.25);
RemoveBuildingForPlayer(playerid12811187.7422, -1661.421913.35160.25);
RemoveBuildingForPlayer(playerid12801188.3438, -1655.820313.17970.25);
RemoveBuildingForPlayer(playerid12801200.3125, -1655.820313.17970.25);
RemoveBuildingForPlayer(playerid61021226.9531, -1656.156324.77340.25);
RemoveBuildingForPlayer(playerid6261258.5781, -1659.875014.60160.25);
RemoveBuildingForPlayer(playerid6261267.6719, -1659.875014.60160.25);
RemoveBuildingForPlayer(playerid6471237.5000, -1643.429714.85160.25);
RemoveBuildingForPlayer(playerid6471233.4688, -1643.429714.85160.25);
RemoveBuildingForPlayer(playerid6471245.5625, -1643.429714.85160.25);
RemoveBuildingForPlayer(playerid6471241.5313, -1643.429714.85160.25);
RemoveBuildingForPlayer(playerid6261258.5781, -1643.367214.60160.25);
RemoveBuildingForPlayer(playerid6261267.6719, -1643.367214.60160.25);
RemoveBuildingForPlayer(playerid6261219.1172, -1640.460928.42190.25);
RemoveBuildingForPlayer(playerid6261231.3125, -1640.460928.42190.25);
RemoveBuildingForPlayer(playerid6261243.5078, -1640.460928.42190.25);
RemoveBuildingForPlayer(playerid6261255.7109, -1640.460928.42190.25);
RemoveBuildingForPlayer(playerid6261282.8281, -1639.960928.42190.25);
RemoveBuildingForPlayer(playerid6261211.6016, -1632.867228.42190.25);
RemoveBuildingForPlayer(playerid6261219.1172, -1632.867228.42190.25);
RemoveBuildingForPlayer(playerid6261231.3125, -1632.867228.42190.25);
RemoveBuildingForPlayer(playerid61031223.7188, -1616.320319.11720.25);
RemoveBuildingForPlayer(playerid6261243.5078, -1632.867228.42190.25);
RemoveBuildingForPlayer(playerid6261255.7109, -1632.867228.42190.25);
RemoveBuildingForPlayer(playerid6261282.8281, -1619.851628.42190.25);
RemoveBuildingForPlayer(playerid6261282.8281, -1629.109428.42190.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(playerid6357505.0547, -1269.937528.68750.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(playerid137591413.4141, -804.742283.43750.25);
RemoveBuildingForPlayer(playerid137221413.4141, -804.742283.43750.25);
RemoveBuildingForPlayer(playerid138311413.4141, -804.742283.43750.25);
//-----------------------------Remove Cartier Burger Sus------------------------
RemoveBuildingForPlayer(playerid36851249.5547, -905.460945.03130.25);
RemoveBuildingForPlayer(playerid36851287.6875, -900.460945.06250.25);
RemoveBuildingForPlayer(playerid36851284.2031, -871.296945.27340.25);
RemoveBuildingForPlayer(playerid36851245.4609, -874.703145.07030.25);
RemoveBuildingForPlayer(playerid6171235.8281, -917.523441.87500.25);
RemoveBuildingForPlayer(playerid6171231.4141, -886.929741.87500.25);
RemoveBuildingForPlayer(playerid12321241.1953, -886.843844.35940.25);
RemoveBuildingForPlayer(playerid6171227.6094, -870.804741.87500.25);
RemoveBuildingForPlayer(playerid6171261.9531, -913.781341.87500.25);
RemoveBuildingForPlayer(playerid6171275.6016, -911.960941.87500.25);
RemoveBuildingForPlayer(playerid36841249.5547, -905.460945.03130.25);
RemoveBuildingForPlayer(playerid6171263.8828, -894.351641.87500.25);
RemoveBuildingForPlayer(playerid6171271.8672, -892.367241.87500.25);
RemoveBuildingForPlayer(playerid6171299.5000, -909.140641.87500.25);
RemoveBuildingForPlayer(playerid36841287.6875, -900.460945.06250.25);
RemoveBuildingForPlayer(playerid58471295.8594, -895.093841.71090.25);
RemoveBuildingForPlayer(playerid12321252.2578, -885.875044.35940.25);
RemoveBuildingForPlayer(playerid6171262.9844, -882.218841.87500.25);
RemoveBuildingForPlayer(playerid6171271.2031, -882.398441.87500.25);
RemoveBuildingForPlayer(playerid12321285.6484, -881.312544.35940.25);
RemoveBuildingForPlayer(playerid36841245.4609, -874.703145.07030.25);
RemoveBuildingForPlayer(playerid36841284.2031, -871.296945.27340.25);
//---------------------------Case noi pe 2 benzi--------------------------------
RemoveBuildingForPlayer(playerid40831334.9766, -1644.187511.78910.25);
RemoveBuildingForPlayer(playerid42001352.6328, -1647.343814.70310.25);
RemoveBuildingForPlayer(playerid42201370.6406, -1643.445333.17970.25);
RemoveBuildingForPlayer(playerid41061342.9688, -1652.265615.20310.25);
RemoveBuildingForPlayer(playerid40111334.9766, -1644.187511.78910.25);
RemoveBuildingForPlayer(playerid41991352.6328, -1647.343814.70310.25);
RemoveBuildingForPlayer(playerid41211336.0156, -1604.734425.63280.25);
// ----- Piscina la Spray LS
    
RemoveBuildingForPlayer(playerid1646975.8594, -1017.242241.96090.25);
    
RemoveBuildingForPlayer(playerid1646980.0156, -1017.242241.96090.25);
    
RemoveBuildingForPlayer(playerid7161015.7813, -1028.843829.48440.25);
    
RemoveBuildingForPlayer(playerid1646992.2031, -1015.406341.96090.25);
    
    
    
// nfs hq //
    
    
    
RemoveBuildingForPlayer(playerid59281309.9141, -1330.132825.18750.25);
RemoveBuildingForPlayer(playerid59331281.4375, -1337.953112.37500.25);
RemoveBuildingForPlayer(playerid58091281.4375, -1337.953112.37500.25);
RemoveBuildingForPlayer(playerid6201321.5234, -1374.429712.58590.25);
RemoveBuildingForPlayer(playerid6201292.0000, -1374.296912.36720.25);
RemoveBuildingForPlayer(playerid6201300.5859, -1374.296912.36720.25);
RemoveBuildingForPlayer(playerid57041309.9141, -1330.132825.18750.25);
RemoveBuildingForPlayer(playerid6201329.4766, -1374.429712.58590.25);
RemoveBuildingForPlayer(playerid6201330.6016, -1340.98446.10940.25);
RemoveBuildingForPlayer(playerid6201326.6953, -1316.00788.72660.25);
RemoveBuildingForPlayer(playerid6201327.5938, -1333.67196.10940.25);
RemoveBuildingForPlayer(playerid6201332.0000, -1309.42978.72660.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;<MAX_PLAYERS;i++)
    {
        
ignore[playerid][i] = 0;
    }
    
SetPlayerMapIcon(playerid21,  1528.779, -1678.1135.890625300MAPICON_LOCAL); // LSPD
    
SetPlayerMapIcon(playerid221203.0322,-919.2150,46.6817170MAPICON_LOCAL); //BurgerShot LS
    //SetPlayerMapIcon(playerid, 11, 1417.301147,-1681.589233,13.592200, 52, 0, MAPICON_LOCAL); // Banca LS ( langa PD,primarie)
    
SetPlayerMapIcon(playerid111462.9099,-1011.6534,26.8438520MAPICON_LOCAL); // Banca LS
    
SetPlayerMapIcon(playerid121791.3640,-1164.3727,23.828160MAPICON_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(playerid161028.0814,-1032.5697,31.9013630MAPICON_LOCAL); // Spray 1
    
SetPlayerMapIcon(playerid172073.8887,-1832.1604,13.5469630MAPICON_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(playerid25295.0975,-1599.7577,95.5747550MAPICON_LOCAL); // DealerShip
  //  SetPlayerMapIcon(playerid, 26, 601.9354,-1243.5402,18.3076, 6, 0, MAPICON_LOCAL); //Mats Get LS
      
SetPlayerMapIcon(playerid51517.5896,-2621.6406,13.546950MAPICON_LOCAL); // avioane dealer
      
SetPlayerMapIcon(playerid983.4199,-1631.0671,11.471490MAPICON_LOCAL); //barci dealer
      
SetPlayerMapIcon(playerid311236.8499,-1644.6886,13.6441310MAPICON_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(playerid0xEEEC00E7"** 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(playeridLoginS0);
    
TextDrawShowForPlayer(playeridLoginS1);
    
TextDrawShowForPlayer(playeridLoginS2);
    
TextDrawShowForPlayer(playeridTextdraw100);
    
TextDrawShowForPlayer(playeridTextdraw101);
    
TextDrawShowForPlayer(playeridTextdraw102);
    
TextDrawShowForPlayer(playeridTextdraw103);
    
TextDrawShowForPlayer(playeridTextdraw104); 
    
    
TextDrawShowForPlayer(playeridTextdrawLinie1);
    
TextDrawShowForPlayer(playeridTextdrawLinie2);
    
TextDrawShowForPlayer(playeridTextdrawLinie3);
    
TextDrawShowForPlayer(playeridTextdrawLinie4);
    
    
TextDrawShowForPlayer(playeridShadowsRandom);
    
TextDrawShowForPlayer(playeridTime), TextDrawShowForPlayer(playeridDate);
//    TextDrawHideForPlayer(playerid, SafeText[playerid]);
//    TextDrawShowForPlayer(playerid, LoginS3);
    
cblls[playerid] = 1clsv[playerid] = 1cgst[playerid] = 1cvla[playerid] = 1cdnb[playerid] = 1csfr[playerid] = 1;
    
gActivePlayers[playerid]++;
    
numplayers++;
    new 
plname[MAX_PLAYER_NAME];
    new 
string[MAX_PLAYER_NAME];
    
WantedLevel[playerid] = 0;
    
WantedPoints[playerid] = 0;
    
SelectChar[playerid] = 0HidePM[playerid] = 0PhoneOnline[playerid] = 0PlayerIsHarvesting[playerid] = 0;
    
SelectCharID[playerid] = 0SelectCharPlace[playerid] = 0ChosenSkin[playerid] = 0;
    
GettingJob[playerid] = 0GuardOffer[playerid] = 999GuardPrice[playerid] = 0;
    
ApprovedLawyer[playerid] = 0CallLawyer[playerid] = 0WantLawyer[playerid] = 0;
    
KickPlayer[playerid] = 0CurrentMoney[playerid] = 0UsedFind[playerid] = 0;
    
CP[playerid] = 0SpawnChange[playerid] = 1;
    
CarOffer[playerid] = 999CarPrice[playerid] = 0CarID[playerid] = 0CarCalls[playerid] = 0;
    
MoneyMessage[playerid] = 0Condom[playerid] = 0;
    
STDPlayer[playerid] = 0SexOffer[playerid] = 999SexPrice[playerid] = 0;
    
RepairOffer[playerid] = 999RepairPrice[playerid] = 0RepairCar[playerid] = 0;
    
TalkingLive[playerid] = 255LiveOffer[playerid] = 999TakingLesson[playerid] = 0;
    
RefillOffer[playerid] = 999RefillPrice[playerid] = 0MapIconsShown[playerid] = 0;
    
DrugOffer[playerid] = 999PlayerCuffed[playerid] = 0PlayerCuffedTime[playerid] = 0;
    
DrugPrice[playerid] = 0RegistrationStep[playerid] = 0OnCK[playerid] = 999GettingCK[playerid] = 999;
    
DrugGram[playerid] = 0ConnectedToPC[playerid] = 0OrderReady[playerid] = 0;
    
JailPrice[playerid] = 0MedicTime[playerid] = 0NeedMedicTime[playerid] = 0MedicBill[playerid] = 0GotHit[playerid] = 0;
    
GoChase[playerid] = 999GetChased[playerid] = 999PlacedNews[playerid] = 0;
    
OnDuty[playerid] = 0TestFishes[playerid] = 0;
    
BoxWaitTime[playerid] = 0ChangePos2[playerid][1] = 0//SchoolSpawn[playerid] = 0;
    
SafeTime[playerid] = 60TransportDuty[playerid] = 0PlayerTied[playerid] = 0;
    
BusCallTime[playerid] = 0TaxiCallTime[playerid] = 0MedicCallTime[playerid] = 0MechanicCallTime[playerid] = 0;
    
FindTimePoints[playerid] = 0FindTime[playerid] = 0JobDuty[playerid] = 0PlayerInfo[playerid][pGarbageTime] = 0;
    
Mobile[playerid] = 255Music[playerid] = 0BoxOffer[playerid] = 999PlayerBoxing[playerid] = 0;
    
Spectate[playerid] = 255PlayerDrunk[playerid] = 0PlayerDrunkTime[playerid] = 0;
    
Unspec[playerid][sLocal] = 255FishCount[playerid] = 0;
    
WritingPaper[playerid] = 0WritingPaperNumber[playerid] = 999WritingLine[playerid] = 0BringingPaper[playerid] = 0GotPaper[playerid] = 0;
    
PaperOffer[playerid] = 999ConsumingMoney[playerid] = 0;
    
gLastCar[playerid] = 0FirstSpawn[playerid] = 0;
    
gOoc[playerid] = 0gNews[playerid] = 0BigEar[playerid] = 0gDice[playerid] = 0gFam[playerid] = 0;
    
gSpeedo[playerid] = 0gGas[playerid] = 0gNewb 1;
    
gPlayerLogged[playerid] = 0gPlayerLogTries[playerid] = 0gPlayerAccount[playerid] = 0;
    
IsCollectingRubbish[playerid] = 0GarbageEndTime[playerid] = 0GarbageTime[playerid] = 0BinTime[playerid] = 0;//garbagejob
    
gPlayerSpawned[playerid] = 0PlayerKarting[playerid] = 0PlayerInKart[playerid] = 0;
    
PlayerTazeTime[playerid] = 0PlayerStoned[playerid] = 0;
    
StartTime[playerid] = 0TicketOffer[playerid] = 999TicketMoney[playerid] = 0;
    
MatsHolding[playerid] = 0TutTime[playerid] = 0;
    
gPlayerMission[playerid] = 0TaxiAccepted[playerid] = 999BusAccepted[playerid] = 999;
    
PlayerInfo[playerid][pCash] = dollahNoFuel[playerid] = 0;
    
HireCar[playerid] = 299PlayersChannel[playerid] = 999;
    
TransportValue[playerid] = 0TransportMoney[playerid] = 0TransportTime[playerid] = 0TransportCost[playerid] = 0TransportDriver[playerid] = 999;
    
Locator[playerid] = 0PlayerOnMission[playerid] = 0MissionCheckpoint[playerid] = 0;
    
WatchingTV[playerid] = 0PlayerPaintballing[playerid] = 0PlayerPaintballKills[playerid] = 0;
    
Fishes[playerid][pLastFish] = 0Fishes[playerid][pFishID] = 0;
    
ProposeOffer[playerid] = 999MarryWitness[playerid] = 999MarryWitnessOffer[playerid] = 999MarriageCeremoney[playerid] = 0ProposedTo[playerid] = 999GotProposedBy[playerid] = 999DivorceOffer[playerid] = 999;
    
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]); BugReport[playerid] = 0BugNeedHelp[playerid] = 0BugAdvertise[playerid] = 0Robbing[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(playeridplnamesizeof(plname));
    
format(stringsizeof(string), "Users/%s.ini"plname);
    if(
fexist(string))
    {
        
gPlayerAccount[playerid] = 1;
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"{33CC33}Contul dumneavoastra este deja inregistrat !");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"{33CC33}Scrie parola contului {FF6347}Indungi!");
        
//SendClientMessage(playerid, 0xFF0000FF, "*www.sa-mp.ro*");
    
}
    else
    {
        
gPlayerAccount[playerid] = 0;
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"");
    
//    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Creatorul server-ul este {FF6347}Indungi");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"{33CC33}Contul dumneavoastra nu este inregistrat !");
        
SendClientMessage(playeridCOLOR_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(playeridplayername2sizeof(playername2));
    
split(playername2playernamesplit'_');
    
format(string2sizeof(string2), "Users/%s.ini"playername2);
    new 
FileUserFile fopen(string2io_read);
    if ( 
UserFile )
    {
        new 
PassData[256];
        new 
keytmp[256], valtmp[256];
        
freadUserFile PassData sizeofPassData ) );
        
keytmp ini_GetKeyPassData );
        if( 
strcmpkeytmp "Key" true ) == )
        {
            
valtmp ini_GetValuePassData );
            
strmid(PlayerInfo[playerid][pKey], valtmp0strlen(valtmp)-1255);
        }
        if(
strcmp(PlayerInfo[playerid][pKey],passwordtrue ) == )
        {
                new 
key256 ] , val256 ];
                new 
Data256 ];
                while ( 
freadUserFile Data sizeofData ) ) )
                {
                    
key ini_GetKeyData );
                    if( 
strcmpkey "Level" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLevel] = strvalval ); }
                    if( 
strcmpkey "AdminLevel" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAdmin] = strvalval ); }
                    if( 
strcmpkey "HelperLevel" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pHelper] = strvalval ); }
                    if( 
strcmpkey "NFS CLub" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pNfs] = strvalval ); }
                    if( 
strcmpkey "UpgradePoints" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][gPupgrade] = strvalval ); }
                    if( 
strcmpkey "ConnectedTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pConnectTime] = strvalval ); }
                    if( 
strcmpkey "Registered" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pReg] = strvalval ); }
                    if( 
strcmpkey "Sex" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSex] = strvalval ); }
                    if( 
strcmpkey "Age" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAge] = strvalval ); }
                    if( 
strcmpkey "Origin" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pOrigin] = strvalval ); }
                    if( 
strcmpkey "CK" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCK] = strvalval ); }
                    if( 
strcmpkey "Muted" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMuted] = strvalval ); }
                    if( 
strcmpkey "MuteTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMuteTime] = strvalval ); }
                    if( 
strcmpkey "Respect" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pExp] = strvalval ); }
                    if( 
strcmpkey "Coin" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCoin] = strvalval ); }
                    if( 
strcmpkey "Money" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCash] = strvalval ); }
                    if( 
strcmpkey "Bank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAccount] = strvalval ); }
                    if( 
strcmpkey "Crimes" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCrimes] = strvalval ); }
                    if( 
strcmpkey "DonateRank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDonateRank] = strvalval ); }
                    if( 
strcmpkey "Kills" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pKills] = strvalval ); }
                    if( 
strcmpkey "Deaths" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDeaths] = strvalval ); }
                    if( 
strcmpkey "Arrested" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pArrested] = strvalval ); }
                    if( 
strcmpkey "WantedDeaths" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWantedDeaths] = strvalval ); }
                    if( 
strcmpkey "Phonebook" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPhoneBook] = strvalval ); }
                    if( 
strcmpkey "LottoNr" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLottoNr] = strvalval ); }
                    if( 
strcmpkey "Fishes" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishes] = strvalval ); }
                    if( 
strcmpkey "BiggestFish" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBiggestFish] = strvalval ); }
                    if( 
strcmpkey "Job" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJob] = strvalval ); }
                    if( 
strcmpkey "Paycheck" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPayCheck] = strvalval ); }
                    if( 
strcmpkey "HeadValue" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pHeadValue] = strvalval ); }
                    if( 
strcmpkey "Jailed" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJailed] = strvalval ); }
                    if( 
strcmpkey "JailTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJailTime] = strvalval ); }
                    if( 
strcmpkey "Materials" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMats] = strvalval ); }
                    if( 
strcmpkey "Drugs" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrugs] = strvalval ); }
                    if( 
strcmpkey "Weed" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWeed] = strvalval ); }
                    if( 
strcmpkey "Leader" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLeader] = strvalval ); }
                    if( 
strcmpkey "Member" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMember] = strvalval ); }
                    if( 
strcmpkey "FMember" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFMember] = strvalval ); }
                    if( 
strcmpkey "Rank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pRank] = strvalval ); }
                    if( 
strcmpkey "Char" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pChar] = strvalval ); }
//                    if( strcmp( key , "WarKills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarKills] = strval( val ); }
                    
if( strcmpkey "ContractTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pContractTime] = strvalval ); }
                    if( 
strcmpkey "DetSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDetSkill] = strvalval ); }
                    if( 
strcmpkey "SexSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSexSkill] = strvalval ); }
                    if( 
strcmpkey "BoxSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBoxSkill] = strvalval ); }
                    if( 
strcmpkey "LawSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLawSkill] = strvalval ); }
                    if( 
strcmpkey "MechSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMechSkill] = strvalval ); }
                    if( 
strcmpkey "JackSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJackSkill] = strvalval ); }
                    if( 
strcmpkey "CarSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCarSkill] = strvalval ); }
                    if( 
strcmpkey "NewsSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pNewsSkill] = strvalval ); }
                    if( 
strcmpkey "DrugsSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrugsSkill] = strvalval ); }
                    if( 
strcmpkey "CookSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCookSkill] = strvalval ); }
                    if( 
strcmpkey "FishSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishSkill] = strvalval ); }
                    if( 
strcmpkey "pSHealth" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSHealth] = floatstrval ); }
                    if( 
strcmpkey "pHealth" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pHealth] = floatstrval ); }
//                       if( strcmp( key , "RobSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRobSkill] = strvalEx( val ); }
                    
if( strcmpkey "Int" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pInt] = strvalval ); }
                    if( 
strcmpkey "Local" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLocal] = strvalval ); }
                    if( 
strcmpkey "Team" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTeam] = strvalval ); }
                    if( 
strcmpkey "Model" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pModel] = strvalval ); }
                    if( 
strcmpkey "PhoneNr" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPnumber] = strvalval ); }
                    if( 
strcmpkey "House" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPhousekey] = strvalval ); }
                    if( 
strcmpkey "Bizz" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPbiskey] = strvalval ); }
                    if( 
strcmpkey "Pos_x" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_x] = floatstrval ); }
                    if( 
strcmpkey "Pos_y" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_y] = floatstrval ); }
                    if( 
strcmpkey "Pos_z" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_z] = floatstrval ); }
                    if( 
strcmpkey "CarLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCarLic] = strvalval ); }
                    if( 
strcmpkey "FlyLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFlyLic] = strvalval ); }
                    if( 
strcmpkey "BoatLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBoatLic] = strvalval ); }
                    if( 
strcmpkey "Rob" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pRob] = strvalExval ); }
                    if( 
strcmpkey "FishLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishLic] = strvalval ); }
                    if( 
strcmpkey "GunLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGunLic] = strvalval ); }
                    if( 
strcmpkey "Gun1" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun1] = strvalval ); } //dgun
                    
if( strcmpkey "Gun2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun2] = strvalval ); } //dgun
                    
if( strcmpkey "Gun3" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun3] = strvalval ); } //dgun
                    
if( strcmpkey "Gun4" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun4] = strvalval ); } //dgun
                    
if( strcmpkey "Ammo1" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo1] = strvalval ); }
                    if( 
strcmpkey "Ammo2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo2] = strvalval ); }
                    if( 
strcmpkey "Ammo3" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo3] = strvalval ); }
                    if( 
strcmpkey "Ammo4" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo4] = strvalval ); }
                    if( 
strcmpkey "CarTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCarTime] = strvalval ); }
                    if( 
strcmpkey "PayDay" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPayDay] = strvalval ); }
                    if( 
strcmpkey "PayDayHad" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPayDayHad] = strvalval ); }
                    if( 
strcmpkey "CDPlayer" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCDPlayer] = strvalval ); }
                    if( 
strcmpkey "Wins" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWins] = strvalval ); }
                    if( 
strcmpkey "Loses" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLoses] = strvalval ); }
                    if( 
strcmpkey "VirWorld" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pVirWorld] = strvalval ); }
                    if( 
strcmpkey "AlcoholPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAlcoholPerk] = strvalval ); }
                    if( 
strcmpkey "DrugPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrugPerk] = strvalval ); }
                    if( 
strcmpkey "MiserPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMiserPerk] = strvalval ); }
                    if( 
strcmpkey "PainPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPainPerk] = strvalval ); }
                    if( 
strcmpkey "TraderPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTraderPerk] = strvalval ); }
                    if( 
strcmpkey "Warnings" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWarns] = strvalval ); }
                    if( 
strcmpkey "FactionWarns" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFWarns] = strvalval ); }
                    if( 
strcmpkey "Tutorial" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTut] = strvalval ); }
                    if( 
strcmpkey "Mission" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMissionNr] = strvalval ); }
                    if( 
strcmpkey "Warnings" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWarns] = strvalval ); }
                     if( 
strcmpkey "FactionWarns" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFWarns] = strvalval ); }
                    if( 
strcmpkey "Adjustable" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAdjustable] = strvalval ); }
                    if( 
strcmpkey "Fuel" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFuel] = strvalval ); }
                    if( 
strcmpkey "Married" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMarried] = strvalval ); }
                    if( 
strcmpkey "MarriedTo" true ) == ) { val ini_GetValueData ); strmid(PlayerInfo[playerid][pMarriedTo], val0strlen(val)-1255); }
                    if( 
strcmpkey "Crack" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCrack] = strvalval ); }
                    if( 
strcmpkey "Passport" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPassport] = strvalExval ); }
                    if( 
strcmpkey "GGKills" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pggKills] = strvalval ); }
                    if( 
strcmpkey "GGKills2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pggKills2] = strvalval ); }
                    if( 
strcmpkey "GGDeaths" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pggDeaths] = strvalval ); }
                    if( 
strcmpkey "GGLevel" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pggLevel] = strvalval ); }
                    if( 
strcmpkey "InGG" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pInGG] = strvalval ); }
                    if( 
strcmpkey "Slot1" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDGun1] = strvalval ); } //dgun
                    
if( strcmpkey "Slot2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDGun2] = strvalval ); } //dgun
                    
if( strcmpkey "Slot3" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDGun3] = strvalval ); } //dgun
                    
if( strcmpkey "Slot4" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDGun4] = strvalval ); } //dgun
                    
if( strcmpkey "Slot5" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDGun5] = strvalval ); } //dgun
                    
if( strcmpkey "Wanted" true ) == ) { val ini_GetValueData ); WantedLevel[playerid] = strvalval ); }
                    if( 
strcmpkey "GPS" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGps] = strvalval ); }
                    if( 
strcmpkey "BlackList" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBlackList] = strvalval ); }
                    if( 
strcmpkey "BlackListTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBlackListTime] = strvalval ); }
                    if( 
strcmpkey "BlackList2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBlackList2] = strvalval ); }
                    if( 
strcmpkey "BlackListTime2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBlackListTime2] = strvalval ); }
                }
                
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(playerid2000);
        }
        if(
PlayerInfo[playerid][pLevel] == -999//autoban
        
{
            
Ban(playerid);
        }
        else if(
PlayerInfo[playerid][pCK] > 0)
        {
            
Kick(playerid);
        }
        
format(string2sizeof(string2), "{33CC33}Bine ai venit {FF6347}%s",playername2);
        
SendClientMessage(playeridCOLOR_WHITE,string2);
        
printf("%s s-a logat.",playername2);
        if (
PlayerInfo[playerid][pDonateRank] == 1)
        {
            
SendClientMessage(playeridCOLOR_WHITE,"{33CC33}Te-ai logat cu {FF6347}V.I.P Account.");
        }
        if (
PlayerInfo[playerid][pDonateRank] == 2)
        {
            
SendClientMessage(playeridCOLOR_WHITE,"{33CC33}Te-ai logat cu {FF6347}Extra V.I.P Account.");
        }
        if (
PlayerInfo[playerid][pDonateRank] == 3)
        {
            
SendClientMessage(playeridCOLOR_WHITE,"{33CC33}Te-ai logat cu {FF6347}Mega V.I.P Account.");
        }
        if (
PlayerInfo[playerid][pAdmin] > 0)
        {
            
format(string2sizeof(string2), "{33CC33}Te-ai logat cu {FF6347}Admin %d",PlayerInfo[playerid][pAdmin]);
            
SendClientMessage(playeridCOLOR_WHITE,string2);
        }
        new 
playersip[64];
        
GetPlayerIp(playerid,playersip,sizeof(playersip));
        if (
PlayerInfo[playerid][pLevel] >= 0)
        {
            
format(string2sizeof(string2), "» {FF6347}%s{33CC33} a intrat. IP: {FF6347}%s.",playername2playersip);
            
SendAdminMessage(COLOR_YELLOW2,string2);
        }
        if (
PlayerInfo[playerid][pHelper] > 0)
        {
            
format(string2sizeof(string2), "{33CC33}Te-ai logat cu {FF6347}Helper %d",PlayerInfo[playerid][pHelper]);
            
SendClientMessage(playeridCOLOR_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(string2sizeof(string2), "{FF6347}Ai mute, scrie /mutetime.");
            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring2);
        }
        
SetSpawnInfo(playeridPlayerInfo[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(playeridLoginS0);
        
TextDrawHideForPlayer(playeridLoginS1);
        
TextDrawHideForPlayer(playeridLoginS2);
//        TextDrawHideForPlayer(playerid, LoginS3);
        
gPlayerLogged[playerid] = 1;
        
SpawnPlayer(playerid);
        
format(tmp2sizeof(tmp2), "~w~Bine ai venit ~n~~r~~h~ %s"playername2);
        
DateProp(playerid);
        
GameTextForPlayer(playeridtmp23001);
        
SendClientMessage(playeridCOLOR_YELLOWmotd);
        new 
yearmonthdayhourminutesecond;
        
getdate(yearmonthday);
        
gettime(hourminutesecond);
        
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(tmp2sizeof(tmp2), "Family MOTD: %s."FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
            
SendClientMessage(playeridCOLOR_YELLOWtmp2);
        }
        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;

And i have a FS from sa-mp.com with anti bot[captcha]

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(playeriddialogidresponselistiteminputtext[]){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 0word[i]= Random('A','Z');case 1word[i]= Random('0','9');}}word[len-1]=0;} 
Reply
#4

Guys sorry for double post but my server is on and player can not connect,please help me fast
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)