SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 26/08/2015, 10:56 AM   #1
ChunkyGaming26
Little Clucker
 
Join Date: Jun 2015
Posts: 16
Reputation: 0
Default Loogin Help

Please can someone help me for a +Rep Login system is bugged i think when you enter the wrong password it still lets you login but you have no score or anything as soon as you try to login with the real password it it wipes your other account stuff apart from your admin.


Code:
public OnPlayerConnect(playerid)
{
	if (udb_Exists(PlayerName2(playerid)))
    {
	  if(PlayerInfo[playerid][LoggedIn] == 0)
	  {
	      ShowPlayerDialog(playerid, 125, DIALOG_STYLE_PASSWORD, "Login","This account is register!login please","Login","Quit");
      }
    }
    if (!udb_Exists(PlayerName2(playerid)))
	{
      if(PlayerInfo[playerid][Registered] == 0)
	  {
	      new string[200];
		  format(string, sizeof(string),""cwhite"Welcome To COD - Ghosts II "cred"%s "cwhite"You are not Registered\nPlease Enter a password to register an account", PlayerName2(playerid));
	      ShowPlayerDialog(playerid, 126, DIALOG_STYLE_PASSWORD, "Register",string,"Register","Quit");
      }
    }
    if(PlayerInfo[playerid][LoggedIn] == 1)
    {
        new pname[128];
	    new file[128];
	    GetPlayerName(playerid, pname, sizeof(pname));
        format(file, sizeof(file), savefolder,pname);
        if(!dini_Exists(file))
		{
	        dini_Create(file);
	        dini_IntSet(file, "Score", 0);
	        dini_IntSet(file, "Money", 0);
	        SetPlayerScore(playerid, dini_Int(file, "Score"));
	        SetPlayerMoney(playerid, dini_Int(file, "Money"));
        }
        else
		{
	        SetPlayerScore(playerid, dini_Int(file, "Score"));
	        SetPlayerMoney(playerid, dini_Int(file, "Money"));
	    }
	}
	//-----
	IsPlayerUsingAnims[playerid] = 0;
	Synching[playerid] = false;
	IsPlayerAnimsPreloaded[playerid] = 0;
	for(new i; i<PING_MAX_EXCEEDS; i++) PlayerInfo[playerid][pPing][i] = 0;
	PlayerInfo[playerid][PingCount] = 0;
	PlayerInfo[playerid][PingTime] = 0;
	
	new name[MAX_PLAYER_NAME], string1[40+MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, sizeof(name));
	format(string1, sizeof(string1), "~w~%s has ~g~joined ~w~the server.", name);
     SendBoxMessage(string1);
     
	 VBanCheck(playerid);
     
	SetPlayerWorldBounds(playerid, 9999.9, -9999.9, 9999.9, -9999.9 );
	//-----
	 SendClientMessage(playerid,0xFD01FDAA,"Welcome to Call of Duty Ghosts II Server.");
	 SendClientMessage(playerid,green,"Use /Help for server help.");
	 ShowPlayerBox(playerid);
	//-----
	//------
	//-------
	LastPm[playerid] = -1;
	Spectating[playerid] = 0;
	FirstSpawn[playerid] = 0;
	rconAttempts[playerid] = 0;
	
	IsPlayerCapturing[playerid][SNAKE] = 0;
	IsPlayerCapturing[playerid][BAY] = 0;
	IsPlayerCapturing[playerid][BIG] = 0;
	IsPlayerCapturing[playerid][ARMY] = 0;
	IsPlayerCapturing[playerid][PETROL] = 0;
	IsPlayerCapturing[playerid][OIL] = 0;
	IsPlayerCapturing[playerid][DESERT] = 0;
	IsPlayerCapturing[playerid][QUARRY] = 0;
	IsPlayerCapturing[playerid][GUEST] = 0;
	IsPlayerCapturing[playerid][EAR] = 0;
	
	CountVar[playerid][SNAKE] = 25;
	CountVar[playerid][BAY] = 25;
	CountVar[playerid][BIG] = 25;
	CountVar[playerid][PETROL] = 25;
	CountVar[playerid][ARMY] = 25;
	CountVar[playerid][DESERT] = 25;
	CountVar[playerid][OIL] = 25;
	CountVar[playerid][QUARRY] = 25;
	CountVar[playerid][GUEST] = 25;
	CountVar[playerid][EAR] = 25;
	
	DND[playerid] = 0;
	//-------------
	RemoveBuildingForPlayer(playerid, 11437, -775.5938, 1555.6797, 26.0938, 0.25);
 	RemoveBuildingForPlayer(playerid, 16412, -215.2344, 1119.1953, 18.3516, 0.25);
	RemoveBuildingForPlayer(playerid, 16413, -174.2109, 1120.4531, 24.4063, 0.25);
	RemoveBuildingForPlayer(playerid, 16435, -209.6641, 1066.5234, 22.2578, 0.25);
	RemoveBuildingForPlayer(playerid, 16440, 12.1172, 1178.5391, 20.8125, 0.25);
	RemoveBuildingForPlayer(playerid, 16441, -32.5234, 1185.1875, 22.4297, 0.25);
	RemoveBuildingForPlayer(playerid, 16443, -161.1719, 1179.5313, 22.4922, 0.25);
	RemoveBuildingForPlayer(playerid, 3301, -216.8750, 2770.1484, 63.5703, 0.25);
	RemoveBuildingForPlayer(playerid, 3301, -282.2266, 2719.2578, 63.5703, 0.25);
	RemoveBuildingForPlayer(playerid, 3299, -314.1875, 2720.6406, 62.2109, 0.25);
	RemoveBuildingForPlayer(playerid, 3342, -275.1797, 2738.4844, 61.3047, 0.25);
	RemoveBuildingForPlayer(playerid, 16447, -219.3750, 1176.6563, 22.1641, 0.25);
	RemoveBuildingForPlayer(playerid, 3344, -235.8594, 1051.3047, 18.6719, 0.25);
	RemoveBuildingForPlayer(playerid, 16476, -98.1953, 1180.0703, 18.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 3371, -18.0547, 1120.8594, 21.6719, 0.25);
	RemoveBuildingForPlayer(playerid, 3371, 6.9453, 1075.8828, 21.6719, 0.25);
	RemoveBuildingForPlayer(playerid, 3373, -38.0313, 1075.8828, 20.7734, 0.25);
	RemoveBuildingForPlayer(playerid, 3373, -43.0547, 1120.8594, 20.7734, 0.25);
	RemoveBuildingForPlayer(playerid, 3368, 323.0078, 2411.3828, 15.4766, 0.25);
	RemoveBuildingForPlayer(playerid, 3369, 349.8750, 2438.2500, 15.4766, 0.25);
	RemoveBuildingForPlayer(playerid, 3369, 269.2656, 2411.3828, 15.4766, 0.25);
	RemoveBuildingForPlayer(playerid, 3369, 242.3984, 2438.2500, 15.4766, 0.25);
	RemoveBuildingForPlayer(playerid, 3367, 296.1406, 2438.2500, 15.4766, 0.25);
	RemoveBuildingForPlayer(playerid, 16566, -222.1953, 979.2500, 17.3828, 0.25);
	RemoveBuildingForPlayer(playerid, 16618, -117.7656, 1079.4609, 22.2188, 0.25);
	RemoveBuildingForPlayer(playerid, 3372, 6.9531, 1120.8516, 21.6719, 0.25);
	RemoveBuildingForPlayer(playerid, 3372, -38.0469, 1045.8516, 21.6719, 0.25);
	RemoveBuildingForPlayer(playerid, 16765, -227.4531, 2716.3516, 62.1719, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -238.2578, 981.3438, 18.6719, 0.25);
	RemoveBuildingForPlayer(playerid, 16563, -222.1953, 979.2500, 17.3828, 0.25);
	RemoveBuildingForPlayer(playerid, 780, -209.1641, 1005.5625, 18.1797, 0.25);
	RemoveBuildingForPlayer(playerid, 16738, -217.4922, 1026.8203, 27.6797, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -206.5000, 1000.9063, 17.3672, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -199.6719, 1028.7266, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -207.0625, 1023.1641, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 3171, -235.8594, 1051.3047, 18.6719, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -228.8281, 1050.7500, 18.8125, 0.25);
	RemoveBuildingForPlayer(playerid, 700, -240.0625, 1050.6328, 19.0156, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -220.4375, 1056.5547, 17.3672, 0.25);
	RemoveBuildingForPlayer(playerid, 16061, -193.3750, 1055.2891, 18.3203, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -199.6719, 1043.1875, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -199.6719, 1058.1250, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -233.1172, 1061.6563, 18.8594, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -227.3906, 1063.3047, 19.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -232.6641, 1063.3047, 19.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -237.9375, 1063.3047, 19.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 16005, -209.6641, 1066.5234, 22.2578, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -222.1094, 1063.3047, 19.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 1500, -206.5703, 1061.4375, 18.6719, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -199.6719, 1073.7734, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -227.4844, 1077.2891, 17.3672, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -161.0156, 1011.1953, 19.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 773, -154.1953, 1012.9453, 18.3281, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -161.0156, 1021.7500, 19.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -161.0156, 1016.4766, 19.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -161.0156, 1027.0234, 19.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 774, -82.9688, 1022.7813, 18.6328, 0.25);
	RemoveBuildingForPlayer(playerid, 700, -127.8750, 1058.6641, 19.0156, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -161.0156, 1032.3047, 19.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 780, -147.2500, 1055.5156, 18.8750, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -120.4766, 1061.2109, 18.6797, 0.25);
	RemoveBuildingForPlayer(playerid, 652, -82.2969, 1060.2734, 18.4531, 0.25);
	RemoveBuildingForPlayer(playerid, 769, -96.9453, 1054.9297, 18.0469, 0.25);
	RemoveBuildingForPlayer(playerid, 700, -160.5156, 1066.0703, 19.0156, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -139.3984, 1067.3516, 19.0547, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -164.3750, 1078.3906, 17.7656, 0.25);
	RemoveBuildingForPlayer(playerid, 691, -51.3516, 1006.5781, 18.5625, 0.25);
	RemoveBuildingForPlayer(playerid, 700, -39.0938, 999.8672, 19.0938, 0.25);
	RemoveBuildingForPlayer(playerid, 652, -19.9297, 1006.3672, 18.4922, 0.25);
	RemoveBuildingForPlayer(playerid, 700, -1.4609, 998.1094, 18.8438, 0.25);
	RemoveBuildingForPlayer(playerid, 700, -5.0156, 1017.7266, 18.8438, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -30.1719, 1028.4141, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 3304, -38.0469, 1045.8516, 21.6719, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -51.6875, 1042.5938, 18.6797, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -55.5078, 1035.3828, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 652, -51.1484, 1052.1094, 18.4531, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -20.2266, 1057.6406, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 3303, -38.0313, 1075.8828, 20.7734, 0.25);
	RemoveBuildingForPlayer(playerid, 700, -51.1406, 1064.8125, 19.0156, 0.25);
	RemoveBuildingForPlayer(playerid, 691, 1.2578, 1027.0938, 18.5625, 0.25);
	RemoveBuildingForPlayer(playerid, 691, 11.8594, 1009.8125, 17.9688, 0.25);
	RemoveBuildingForPlayer(playerid, 773, 4.9453, 1052.8906, 14.5469, 0.25);
	RemoveBuildingForPlayer(playerid, 3305, 6.9453, 1075.8828, 21.6719, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -235.5703, 1093.6953, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -228.3828, 1111.8750, 18.8281, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -235.5703, 1102.9375, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 16434, -180.7109, 1081.0781, 27.1094, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -166.7500, 1107.9688, 18.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -146.8438, 1093.6953, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 16006, -215.2344, 1119.1953, 18.3516, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -225.3125, 1127.2109, 18.8047, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -199.6719, 1123.5547, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -232.7578, 1129.7578, 19.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -227.4844, 1129.7578, 19.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -186.4609, 1123.3984, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 16070, -174.2109, 1120.4531, 24.4063, 0.25);
	RemoveBuildingForPlayer(playerid, 1345, -160.2656, 1122.5391, 19.5391, 0.25);
	RemoveBuildingForPlayer(playerid, 1692, -161.7656, 1115.8516, 27.2969, 0.25);
	RemoveBuildingForPlayer(playerid, 16760, -178.2031, 1122.3203, 28.8594, 0.25);
	RemoveBuildingForPlayer(playerid, 1447, -154.8281, 1137.1406, 20.0078, 0.25);
	RemoveBuildingForPlayer(playerid, 1447, -160.0703, 1137.1406, 20.0078, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -162.1953, 1136.2266, 18.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -232.8125, 1139.4063, 18.8125, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -164.1719, 1144.0625, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 16740, -152.3203, 1144.0703, 30.3047, 0.25);
	RemoveBuildingForPlayer(playerid, 700, -239.8594, 1148.9609, 19.0156, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -229.4375, 1156.6250, 17.3672, 0.25);
	RemoveBuildingForPlayer(playerid, 16060, -192.0469, 1147.3906, 17.6953, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -161.9297, 1162.0781, 18.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -164.1719, 1153.3125, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1345, -170.1719, 1169.0547, 19.5391, 0.25);
	RemoveBuildingForPlayer(playerid, 1345, -218.0313, 1164.9219, 19.5391, 0.25);
	RemoveBuildingForPlayer(playerid, 1345, -149.8203, 1164.1094, 19.5391, 0.25);
	RemoveBuildingForPlayer(playerid, 1345, -162.0938, 1175.1406, 19.5391, 0.25);
	RemoveBuildingForPlayer(playerid, 769, -232.3594, 1174.4766, 18.5781, 0.25);
	RemoveBuildingForPlayer(playerid, 16064, -161.1719, 1179.5313, 22.4922, 0.25);
	RemoveBuildingForPlayer(playerid, 16065, -219.3750, 1176.6563, 22.1641, 0.25);
	RemoveBuildingForPlayer(playerid, 1692, -174.2422, 1177.8984, 22.7813, 0.25);
	RemoveBuildingForPlayer(playerid, 3286, -230.2031, 1185.7734, 23.3516, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -159.8594, 1187.8281, 18.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 1352, -206.0703, 1192.9219, 18.7109, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -160.7734, 1193.6406, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -220.0391, 1193.6406, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -160.7734, 1202.8828, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 16386, -117.7656, 1079.4609, 22.2188, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -111.7422, 1087.5000, 19.4844, 0.25);
	RemoveBuildingForPlayer(playerid, 1352, -59.7813, 1088.1094, 18.7109, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -86.8438, 1088.4141, 19.4844, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -90.7891, 1093.6953, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -50.1797, 1093.6953, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1352, -54.9063, 1103.9922, 18.7109, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -45.7344, 1109.0234, 19.4844, 0.25);
	RemoveBuildingForPlayer(playerid, 3303, -43.0547, 1120.8594, 20.7734, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -53.2656, 1135.5781, 18.6797, 0.25);
	RemoveBuildingForPlayer(playerid, 652, -45.2031, 1130.4141, 17.7734, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -70.5859, 1135.2266, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -90.9922, 1141.0000, 19.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 16735, -49.2422, 1137.7031, 28.7813, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -90.9922, 1146.2734, 19.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 780, -84.8906, 1143.4375, 18.4219, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -50.1797, 1144.1094, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -90.9922, 1151.5469, 19.9375, 0.25);
	RemoveBuildingForPlayer(playerid, 652, -81.0859, 1149.6406, 18.4531, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -50.5078, 1160.9141, 18.6797, 0.25);
	RemoveBuildingForPlayer(playerid, 700, -41.8125, 1160.0781, 19.0156, 0.25);
	RemoveBuildingForPlayer(playerid, 700, -126.1719, 1159.0703, 19.0156, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -110.7813, 1158.7422, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1345, -88.8594, 1165.3828, 19.4609, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -47.7031, 1162.3672, 19.8906, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -52.9766, 1162.3672, 19.9453, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -42.4219, 1162.3672, 19.8594, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -96.7188, 1164.3516, 18.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -127.0000, 1173.4219, 18.6797, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -70.5859, 1173.5234, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1345, -44.3047, 1179.2734, 19.2422, 0.25);
	RemoveBuildingForPlayer(playerid, 16475, -98.1953, 1180.0703, 18.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -46.6953, 1179.5703, 18.5703, 0.25);
	RemoveBuildingForPlayer(playerid, 1522, -53.1016, 1188.3281, 18.3438, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -132.0703, 1187.4609, 18.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -76.5313, 1187.6406, 18.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -120.4922, 1183.3516, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -133.2266, 1193.6406, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -81.7188, 1193.6406, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -133.2266, 1202.8828, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -65.8984, 1202.8828, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 652, -26.7422, 1080.1719, 18.4531, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -26.4766, 1087.5859, 19.4844, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -3.7813, 1093.6953, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 700, -5.2188, 1112.5703, 19.0156, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -13.2969, 1112.2656, 18.6797, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -4.3125, 1108.9453, 19.4844, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -30.1719, 1102.9375, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 3304, 6.9531, 1120.8516, 21.6719, 0.25);
	RemoveBuildingForPlayer(playerid, 3305, -18.0547, 1120.8594, 21.6719, 0.25);
	RemoveBuildingForPlayer(playerid, 652, -31.8672, 1118.8359, 17.7734, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -36.4922, 1136.0703, 18.6797, 0.25);
	RemoveBuildingForPlayer(playerid, 652, 1.5000, 1133.8984, 17.7734, 0.25);
	RemoveBuildingForPlayer(playerid, 773, -18.3906, 1136.8203, 18.4609, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, 1.1484, 1137.7578, 19.4844, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -3.7813, 1144.1094, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 761, 12.0156, 1159.5703, 18.8281, 0.25);
	RemoveBuildingForPlayer(playerid, 700, 3.8281, 1159.2969, 19.0156, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, 11.4063, 1160.0234, 19.9453, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, 6.1328, 1160.0234, 19.9453, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, 0.8594, 1160.0234, 19.9453, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -26.4141, 1159.4844, 19.4844, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -30.1719, 1153.3516, 23.2031, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -31.3203, 1160.6875, 18.6797, 0.25);
	RemoveBuildingForPlayer(playerid, 1345, -24.8203, 1165.4063, 19.2422, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -37.1484, 1162.3672, 19.7656, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, -31.8359, 1162.3672, 19.7188, 0.25);
	RemoveBuildingForPlayer(playerid, 16069, 12.1172, 1178.5391, 20.8125, 0.25);
	RemoveBuildingForPlayer(playerid, 16442, -18.4688, 1178.8828, 29.3750, 0.25);
	RemoveBuildingForPlayer(playerid, 16068, -32.5234, 1185.1875, 22.4297, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -25.7813, 1188.0313, 18.6328, 0.25);
	RemoveBuildingForPlayer(playerid, 1294, -25.7813, 1193.6406, 22.8125, 0.25);
	RemoveBuildingForPlayer(playerid, 700, 22.2578, 1158.4766, 18.4063, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, 16.6875, 1160.0234, 19.9453, 0.25);
	RemoveBuildingForPlayer(playerid, 1468, 21.9609, 1160.0234, 19.9453, 0.25);
	RemoveBuildingForPlayer(playerid, 3269, 242.3984, 2438.2500, 15.4766, 0.25);
	RemoveBuildingForPlayer(playerid, 3269, 269.2656, 2411.3828, 15.4766, 0.25);
	RemoveBuildingForPlayer(playerid, 3271, 296.1406, 2438.2500, 15.4766, 0.25);
	RemoveBuildingForPlayer(playerid, 3270, 323.0078, 2411.3828, 15.4766, 0.25);
	RemoveBuildingForPlayer(playerid, 16368, 321.6719, 2463.4922, 25.6641, 0.25);
	RemoveBuildingForPlayer(playerid, 3269, 349.8750, 2438.2500, 15.4766, 0.25);
	RemoveBuildingForPlayer(playerid, 16374, 425.4688, 2531.0000, 22.5547, 0.25);
	RemoveBuildingForPlayer(playerid, 16776, -237.0234, 2662.8359, 62.6094, 0.25);
	RemoveBuildingForPlayer(playerid, 1340, -197.4922, 2659.9141, 62.8203, 0.25);
	RemoveBuildingForPlayer(playerid, 16062, -222.6641, 2663.3047, 66.2344, 0.25);
	RemoveBuildingForPlayer(playerid, 16063, -222.3438, 2663.4531, 71.0156, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -206.6328, 2672.2422, 61.8438, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -156.0234, 2675.2031, 61.8438, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -283.9453, 2695.3203, 61.7500, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -307.9922, 2707.6563, 61.7500, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -263.1563, 2711.1250, 61.7500, 0.25);
	RemoveBuildingForPlayer(playerid, 16013, -286.2266, 2709.7266, 73.4375, 0.25);
	RemoveBuildingForPlayer(playerid, 3284, -282.2266, 2719.2578, 63.5703, 0.25);
	RemoveBuildingForPlayer(playerid, 3283, -314.1875, 2720.6406, 62.2109, 0.25);
	RemoveBuildingForPlayer(playerid, 672, -240.8359, 2737.1484, 62.4844, 0.25);
	RemoveBuildingForPlayer(playerid, 3173, -275.1797, 2738.4844, 61.3047, 0.25);
	RemoveBuildingForPlayer(playerid, 672, -245.3125, 2781.4922, 62.3672, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -242.0313, 2789.3438, 61.2422, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -238.6016, 2695.5469, 61.7500, 0.25);
	RemoveBuildingForPlayer(playerid, 16011, -227.4531, 2716.3516, 62.1719, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -209.7734, 2745.3906, 61.7500, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -231.2813, 2757.4297, 61.7500, 0.25);
	RemoveBuildingForPlayer(playerid, 3284, -216.8750, 2770.1484, 63.5703, 0.25);
	RemoveBuildingForPlayer(playerid, 16015, -235.7891, 2782.9375, 73.1563, 0.25);
	RemoveBuildingForPlayer(playerid, 669, -155.0938, 2711.2344, 61.8438, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, -150.2734, 2700.0781, 61.1484, 0.25);
	RemoveBuildingForPlayer(playerid, 16094, 191.1406, 1870.0391, 21.4766, 0.25);
	//----
	PlayerInfo[playerid][dRank] = 0;
    PlayerInfo[playerid][Deaths] = 0;
	PlayerInfo[playerid][Kills] = 0;
	PlayerInfo[playerid][Jailed] = 0;
	PlayerInfo[playerid][Frozen] = 0;
	PlayerInfo[playerid][Level] = 0;
	PlayerInfo[playerid][Helper] = 0;
	PlayerInfo[playerid][OnDuty] = 0;
	PlayerInfo[playerid][LoggedIn] = 0;
	PlayerInfo[playerid][Registered] = 0;
	PlayerInfo[playerid][God] = 0;
	PlayerInfo[playerid][GodCar] = 0;
	PlayerInfo[playerid][TimesSpawned] = 0;
	PlayerInfo[playerid][Muted] = 0;
	PlayerInfo[playerid][MuteWarnings] = 0;
	PlayerInfo[playerid][Warnings] = 0;
	PlayerInfo[playerid][Caps] = 0;
	PlayerInfo[playerid][DoorsLocked] = 0;
	PlayerInfo[playerid][pCar] = -1;
	PlayerInfo[playerid][SpamCount] = 0;
	PlayerInfo[playerid][SpamTime] = 0;
	PlayerInfo[playerid][PingCount] = 0;
	PlayerInfo[playerid][PingTime] = 0;
	PlayerInfo[playerid][FailLogin] = 0;
	PlayerInfo[playerid][blip] = 0;
	PlayerInfo[playerid][ConnectTime] = gettime();
	AntiSK[playerid] = 0;
	//------------------------------------------------------
	Attach3DTextLabelToPlayer(RankLabel[playerid], playerid, 0.0, 0.0, 0.5);
	//------------------------------------------------------
	new PlayerName[MAX_PLAYER_NAME], string[128]; //file[256];
	GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
	new tmp3[50]; GetPlayerIp(playerid,tmp3,50);
	//-----------------------------------------------------
	//-----------------------------------------------------
	//-----------------------------------------------------
	if(ServerInfo[NameKick] == 1) {
		for(new s = 0; s < BadNameCount; s++) {
  			if(!strcmp(BadNames[s],PlayerName,true)) {
				SendClientMessage(playerid,red, "Your name is on our black list, you have been kicked.");
				format(string,sizeof(string),"%s ID:%d was auto kicked. (Reason: Forbidden name)",PlayerName,playerid);
				SendClientMessageToAll(grey, string);  print(string);
				SaveToFile("KickLog",string);  Kick(playerid);
				return 1;
			}
		}
	}
	//-----------------------------------------------------
	if(ServerInfo[PartNameKick] == 1) {
		for(new s = 0; s < BadPartNameCount; s++) {
			new pos;
			while((pos = strfind(PlayerName,BadPartNames[s],true)) != -1) for(new i = pos, j = pos + strlen(BadPartNames[s]); i < j; i++)
			{
				SendClientMessage(playerid,red, "Your name is not allowed on this server, you have been kicked.");
				format(string,sizeof(string),"%s ID:%d was auto kicked. (Reason: Forbidden name)",PlayerName,playerid);
				SendClientMessageToAll(grey, string);  print(string);
				SaveToFile("KickLog",string);  Kick(playerid);
				return 1;
			}
		}
	}
	//-----------------------------------------------------
	if(ServerInfo[Locked] == 1) {
		PlayerInfo[playerid][AllowedIn] = false;
		SendClientMessage(playerid,red,"Server is Locked!  You have 20 seconds to enter the server password before you are kicked!");
		SendClientMessage(playerid,red," Type /password [password]");
		LockKickTimer[playerid] = SetTimerEx("AutoKick", 20000, 0, "i", playerid);
	}
	//-----------------------------------------------------
	if(strlen(dini_Get("ladmin/config/aka.txt", tmp3)) == 0) dini_Set("ladmin/config/aka.txt", tmp3, PlayerName);
 	else
	{
	    if( strfind( dini_Get("ladmin/config/aka.txt", tmp3), PlayerName, true) == -1 )
		{
		    format(string,sizeof(string),"%s,%s", dini_Get("ladmin/config/aka.txt",tmp3), PlayerName);
		    dini_Set("ladmin/config/aka.txt", tmp3, string);
		}
	}
	//-----------------------------------------------------
	/*TextDrawShowForPlayer(playerid, tBox);
	for(new line; line<15; line++)
	{
	  TextDrawShowForPlayer(playerid, Message[line]);
	}
	*/
	Streak[playerid] = 0;
	Skills[playerid] = 0;
	//------
	if(tCP[SNAKE] == TEAM_NONE) GangZoneShowForAll(Zone[SNAKE], -66);
	else if(tCP[SNAKE] == TEAM_EURASIA) GangZoneShowForAll(Zone[SNAKE], TEAM_ZONE_EURASIA_COLOR);
	else if(tCP[SNAKE] == TEAM_ARAB) GangZoneShowForAll(Zone[SNAKE], TEAM_ZONE_ARAB_COLOR);
	else if(tCP[SNAKE] == TEAM_USA) GangZoneShowForAll(Zone[SNAKE], TEAM_ZONE_USA_COLOR);
	else if(tCP[SNAKE] == TEAM_AUS) GangZoneShowForAll(Zone[SNAKE], TEAM_ZONE_AUS_COLOR);
	else if(tCP[SNAKE] == TEAM_SOVIET) GangZoneShowForAll(Zone[SNAKE], TEAM_ZONE_SOVIET_COLOR);
	//------
	if(tCP[BAY] == TEAM_NONE) GangZoneShowForAll(Zone[BAY], -66);
	else if(tCP[BAY] == TEAM_EURASIA) GangZoneShowForAll(Zone[BAY], TEAM_ZONE_EURASIA_COLOR);
	else if(tCP[BAY] == TEAM_ARAB) GangZoneShowForAll(Zone[BAY], TEAM_ZONE_ARAB_COLOR);
	else if(tCP[BAY] == TEAM_USA) GangZoneShowForAll(Zone[BAY], TEAM_ZONE_USA_COLOR);
	else if(tCP[BAY] == TEAM_AUS) GangZoneShowForAll(Zone[BAY], TEAM_ZONE_AUS_COLOR);
	else if(tCP[BAY] == TEAM_SOVIET) GangZoneShowForAll(Zone[BAY], TEAM_ZONE_SOVIET_COLOR);
	//------
	if(tCP[BIG] == TEAM_NONE) GangZoneShowForAll(Zone[BIG], -66);
	else if(tCP[BIG] == TEAM_EURASIA) GangZoneShowForAll(Zone[BIG], TEAM_ZONE_EURASIA_COLOR);
	else if(tCP[BIG] == TEAM_ARAB) GangZoneShowForAll(Zone[BIG], TEAM_ZONE_ARAB_COLOR);
	else if(tCP[BIG] == TEAM_USA) GangZoneShowForAll(Zone[BIG], TEAM_ZONE_USA_COLOR);
	else if(tCP[BIG] == TEAM_AUS) GangZoneShowForAll(Zone[BIG], TEAM_ZONE_AUS_COLOR);
	else if(tCP[BIG] == TEAM_SOVIET) GangZoneShowForAll(Zone[BIG], TEAM_ZONE_SOVIET_COLOR);
	//------
	if(tCP[ARMY] == TEAM_NONE) GangZoneShowForAll(Zone[ARMY], -66);
	else if(tCP[ARMY] == TEAM_EURASIA) GangZoneShowForAll(Zone[ARMY], TEAM_ZONE_EURASIA_COLOR);
	else if(tCP[ARMY] == TEAM_ARAB) GangZoneShowForAll(Zone[ARMY], TEAM_ZONE_ARAB_COLOR);
	else if(tCP[ARMY] == TEAM_USA) GangZoneShowForAll(Zone[ARMY], TEAM_ZONE_USA_COLOR);
	else if(tCP[ARMY] == TEAM_AUS) GangZoneShowForAll(Zone[ARMY], TEAM_ZONE_AUS_COLOR);
	else if(tCP[ARMY] == TEAM_SOVIET) GangZoneShowForAll(Zone[ARMY], TEAM_ZONE_SOVIET_COLOR);
	//------
	if(tCP[PETROL] == TEAM_NONE) GangZoneShowForAll(Zone[PETROL], -66);
	else if(tCP[PETROL] == TEAM_EURASIA) GangZoneShowForAll(Zone[PETROL], TEAM_ZONE_EURASIA_COLOR);
	else if(tCP[PETROL] == TEAM_ARAB) GangZoneShowForAll(Zone[PETROL], TEAM_ZONE_ARAB_COLOR);
	else if(tCP[PETROL] == TEAM_USA) GangZoneShowForAll(Zone[PETROL], TEAM_ZONE_USA_COLOR);
	else if(tCP[PETROL] == TEAM_AUS) GangZoneShowForAll(Zone[PETROL], TEAM_ZONE_AUS_COLOR);
	else if(tCP[PETROL] == TEAM_SOVIET) GangZoneShowForAll(Zone[PETROL], TEAM_ZONE_SOVIET_COLOR);
	//------
	if(tCP[OIL] == TEAM_NONE) GangZoneShowForAll(Zone[OIL], -66);
	else if(tCP[OIL] == TEAM_EURASIA) GangZoneShowForAll(Zone[OIL], TEAM_ZONE_EURASIA_COLOR);
	else if(tCP[OIL] == TEAM_ARAB) GangZoneShowForAll(Zone[OIL], TEAM_ZONE_ARAB_COLOR);
	else if(tCP[OIL] == TEAM_USA) GangZoneShowForAll(Zone[OIL], TEAM_ZONE_USA_COLOR);
	else if(tCP[OIL] == TEAM_AUS) GangZoneShowForAll(Zone[OIL], TEAM_ZONE_AUS_COLOR);
	else if(tCP[OIL] == TEAM_SOVIET) GangZoneShowForAll(Zone[OIL], TEAM_ZONE_SOVIET_COLOR);
	//------
	if(tCP[DESERT] == TEAM_NONE) GangZoneShowForAll(Zone[DESERT], -66);
	else if(tCP[DESERT] == TEAM_EURASIA) GangZoneShowForAll(Zone[DESERT], TEAM_ZONE_EURASIA_COLOR);
	else if(tCP[DESERT] == TEAM_ARAB) GangZoneShowForAll(Zone[DESERT], TEAM_ZONE_ARAB_COLOR);
	else if(tCP[DESERT] == TEAM_USA) GangZoneShowForAll(Zone[DESERT], TEAM_ZONE_USA_COLOR);
	else if(tCP[DESERT] == TEAM_AUS) GangZoneShowForAll(Zone[DESERT], TEAM_ZONE_AUS_COLOR);
	else if(tCP[DESERT] == TEAM_SOVIET) GangZoneShowForAll(Zone[DESERT], TEAM_ZONE_SOVIET_COLOR);
	//------
	if(tCP[QUARRY] == TEAM_NONE) GangZoneShowForAll(Zone[QUARRY], -66);
	else if(tCP[QUARRY] == TEAM_EURASIA) GangZoneShowForAll(Zone[QUARRY], TEAM_ZONE_EURASIA_COLOR);
	else if(tCP[QUARRY] == TEAM_ARAB) GangZoneShowForAll(Zone[QUARRY], TEAM_ZONE_ARAB_COLOR);
	else if(tCP[QUARRY] == TEAM_USA) GangZoneShowForAll(Zone[QUARRY], TEAM_ZONE_USA_COLOR);
	else if(tCP[QUARRY] == TEAM_AUS) GangZoneShowForAll(Zone[QUARRY], TEAM_ZONE_AUS_COLOR);
	else if(tCP[QUARRY] == TEAM_SOVIET) GangZoneShowForAll(Zone[QUARRY], TEAM_ZONE_SOVIET_COLOR);
	//------
	if(tCP[GUEST] == TEAM_NONE) GangZoneShowForAll(Zone[GUEST], -66);
	else if(tCP[GUEST] == TEAM_EURASIA) GangZoneShowForAll(Zone[GUEST], TEAM_ZONE_EURASIA_COLOR);
	else if(tCP[GUEST] == TEAM_ARAB) GangZoneShowForAll(Zone[GUEST], TEAM_ZONE_ARAB_COLOR);
	else if(tCP[GUEST] == TEAM_USA) GangZoneShowForAll(Zone[GUEST], TEAM_ZONE_USA_COLOR);
	else if(tCP[GUEST] == TEAM_AUS) GangZoneShowForAll(Zone[GUEST], TEAM_ZONE_AUS_COLOR);
	else if(tCP[GUEST] == TEAM_SOVIET) GangZoneShowForAll(Zone[GUEST], TEAM_ZONE_SOVIET_COLOR);
	//------
	if(tCP[EAR] == TEAM_NONE) GangZoneShowForAll(Zone[EAR], -66);
	else if(tCP[EAR] == TEAM_EURASIA) GangZoneShowForAll(Zone[EAR], TEAM_ZONE_EURASIA_COLOR);
	else if(tCP[EAR] == TEAM_ARAB) GangZoneShowForAll(Zone[EAR], TEAM_ZONE_ARAB_COLOR);
	else if(tCP[EAR] == TEAM_USA) GangZoneShowForAll(Zone[EAR], TEAM_ZONE_USA_COLOR);
	else if(tCP[EAR] == TEAM_AUS) GangZoneShowForAll(Zone[EAR], TEAM_ZONE_AUS_COLOR);
	else if(tCP[EAR] == TEAM_SOVIET) GangZoneShowForAll(Zone[EAR], TEAM_ZONE_SOVIET_COLOR);
	//-----
	PlayAudioStreamForPlayer(playerid, "https://www.dropbox.com/s/qv6jr290epeojk2/COD-GhostsII.mp3?raw=1");
	return 1;
ChunkyGaming26 is offline   Reply With Quote
Old 26/08/2015, 10:58 AM   #2
Yerro
Little Clucker
 
Join Date: Oct 2013
Location: Spain
Posts: 35
Reputation: 3
Default Respuesta: Loogin Help

Where is "OnDialogResponse"?
__________________
Whetstone RP || http://www.whetstone.es/ || ES
Yerro is offline   Reply With Quote
Old 26/08/2015, 11:06 AM   #3
ChunkyGaming26
Little Clucker
 
Join Date: Jun 2015
Posts: 16
Reputation: 0
Default Re: Loogin Help

Aint there. can you remake it?
ChunkyGaming26 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 01:40 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.