• Уважаемый Гость.
    - Прежде чем создать свою тему, пожалуйста, попробуй воспользоваться этим -> ПОИСКОМ !!!
    - После решения Вашего вопроса (проблемы) - нажмите "Лучший ответ", на сообщении, которое его решило. За игнорирование этого действия - Вы получите соответствующее предупреждение. Мы - стараемся Вам помочь. Уделите 10 секунд - чтобы нажать кнопку. (Если у Вас нет такой возможности - укажите в последнем своем сообщении какой ответ Вы считаете лучшим. Наши модераторы сделают это за Вас)
    ЗАПРЕЩЕНО:
    - Cоздавать темы с названиями "Помогите", "Плиз", "Ошибка", "Не могу найти", "Хелп" и тому подобное;
    - Cоздавать темы без детального описания того, что нужно исправить.
    - Cоздавать темы из одного скриншота.
    За игнор правил форума - Ваша тема будет удалена, а Вы получите системное предупреждение.

Как убрать проверку на заход с одного ип?

Статус
В этой теме нельзя размещать новые ответы.

saaashaaaa

Изучающий
Пользователь
Регистрация
12 Авг 2019
Сообщения
172
Лучшие ответы
0
Репутация
2
ниже код, мне сказали что проверка на заход с одно ип там , но я не знаю где она
PHP:
public OnPlayerConnect(playerid)
{
    if(PI[playerid][pDeActivate] == 1)
	{
		SendClientMessage(playerid, C_RED, "К сожалению Ваш аккаунт был деактивирован администратором сервера");
		SendClientMessage(playerid, C_RED, "Доступ к аккаунту запрещен. Ожидайте, возможно скоро с Вас снимут это ограничение");
		SendClientMessage(playerid, C_RED, "Если Вы считаете, что произошла ошибка - обратитесь к администратору сервера");
		Kick(playerid);
		return 1;
	}

	SetTimerEx("SecondTimer", 1000, 1, "d", playerid);
	
	//LoadPSurprise(playerid);
	
	//PlayAudioStreamForPlayer(playerid, "https://uzimusic.ru/mp3/16640674/Ost_13-JJ_Rajjon-Ultimatum_-_Muzyka_Iz_ilma_quot13_Rajjonquot(uzimusic.ru).mp3");
	
	mysql_log(LOG_WARNING | LOG_ERROR);
	if(mysql_errno() == -1)
    {
		ShowPlayerDialog
		(
			playerid, DIALOG_CMDS_PROPERTYY, DIALOG_STYLE_MSGBOX,
			"{FFCC00}Нет подключения к БД",
			"\n{FFFFFF}Подключение к БД: {FF0000}ОТСУТСТВУЕТ{FFFFFF}\n\n\
			Если Вы не умеете заливать моды,\n\
			то напишите сюда: {99CC00}vk.com/mark_richards",
			"Закрыть", ""
		);
    }
    clock();
    switch_fp[playerid] = false;
    //for(new i; i < 10; i++) TextDrawShowForPlayer(playerid,gLogo_TD[i]);
    TextDrawShowForPlayer(playerid, gLogo_TD);
    /*
	TextDrawShowForPlayer(playerid, Datum);
	TextDrawShowForPlayer(playerid, Vrijeme);
	*/
    if(playerid == INVALID_PLAYER_ID || gamemodeloaded != 1) return Kick(playerid);
    new CheckSobeit[10];
    GetPlayerVersion(playerid, CheckSobeit, sizeof(CheckSobeit));
    if(strfind(CheckSobeit, "LoL4" ) != -1) return Kick(playerid),SendClientMessage(playerid, COLOR_RED, "Вход на сервер с запрещенным ПО запрещен");
 

    GetPlayerIp(playerid, PI[playerid][pIP], 16);
    GetPlayerName(playerid, PI[playerid][pName], MAX_PLAYER_NAME);
	SetPlayerColor(playerid, 0x9E9E9EAA);
	SetPlayerScore(playerid, 1);
 
	CreateSpeedometrTextdraws(playerid);
	CreateReconTextDraws(playerid);

    if(slotUsed{playerid} && !strcmp(playersIP[playerid], PI[playerid][pIP], true)) return Ban(playerid);
    GetPlayerIp(playerid, playersIP[playerid], 16);
    slotUsed{playerid} = true;

 	if(IsLoginInvalid(GetName(playerid)))
	{
	    SendClientMessage(playerid, COLOR_RED, "Ваше имя содержит запрещенные символы или цифры, используйте имя формата Имя_Фамилия на английском");
		return Kick(playerid);
	}
    SetPlayerDataToDefault(playerid);
	CreateTextDraws(playerid);
	RemoveBuild(playerid);
    SetPVarInt(playerid, "DrawFill", 0);
    SetPVarInt(playerid, "PickupID", -1);

	for(new i = 0; i < sizeof GZInfo; i++) GangZoneShowForPlayer(playerid, GangZone[i], GetGangZoneColor(i));
	
	new string[144];
	GetPlayerIp(playerid, PI[playerid][pIP], 20);
	PI[playerid][pAntiDm] = 0;
	PI[playerid][pBanya] = 0;
	PI[playerid][pRepairCar] = 0;
	killused[playerid] = 0;
	format(string, 144, "[A] %s [%d] присоединился к серверу. [IP: %s]", PI[playerid][pName], playerid, PI[playerid][pIP]);
	SendAdminMessage(COLOR_GREY, string);
	
	radar_speed[playerid] = CreatePlayerTextDraw(playerid, 598.000000, 168.625000, "120");
	PlayerTextDrawLetterSize(playerid, radar_speed[playerid], 0.440499, 2.037499);
	PlayerTextDrawAlignment(playerid, radar_speed[playerid], 2);
	PlayerTextDrawColor(playerid, radar_speed[playerid], 255);
	PlayerTextDrawSetShadow(playerid, radar_speed[playerid], 0);
	PlayerTextDrawSetOutline(playerid, radar_speed[playerid], 0);
	PlayerTextDrawBackgroundColor(playerid, radar_speed[playerid], 51);
	PlayerTextDrawFont(playerid, radar_speed[playerid], 2);
	PlayerTextDrawSetProportional(playerid, radar_speed[playerid], 1);
	
	TD_GPS[playerid][0] = CreatePlayerTextDraw(playerid,39.000000,233.000000,"~n~");
	PlayerTextDrawLetterSize(playerid,TD_GPS[playerid][0],0.500000,1.999999);
	PlayerTextDrawTextSize(playerid,TD_GPS[playerid][0],130.000000,0.000000);
	PlayerTextDrawColor(playerid,TD_GPS[playerid][0],0xFFFFFFFF);
	PlayerTextDrawUseBox(playerid,TD_GPS[playerid][0],1);
	PlayerTextDrawBoxColor(playerid,TD_GPS[playerid][0],0x000000AA);
	PlayerTextDrawAlignment(playerid,TD_GPS[playerid][0],0);
	PlayerTextDrawFont(playerid,TD_GPS[playerid][0],1);
	PlayerTextDrawSetShadow(playerid,TD_GPS[playerid][0],1);
	PlayerTextDrawSetProportional(playerid,TD_GPS[playerid][0],1);
	PlayerTextDrawSetOutline(playerid,TD_GPS[playerid][0],0);
	PlayerTextDrawBackgroundColor(playerid,TD_GPS[playerid][0],0xe74c3c00);

	TD_GPS[playerid][1] = CreatePlayerTextDraw(playerid,41.000000,234.000000,"GPS ~n~~y~PLACE");
	PlayerTextDrawLetterSize(playerid,TD_GPS[playerid][1],0.180000,0.899999);
	PlayerTextDrawTextSize(playerid,TD_GPS[playerid][1],1280.000000,1280.000000);
	PlayerTextDrawColor(playerid,TD_GPS[playerid][1],0xFFFFFFFF);
	PlayerTextDrawUseBox(playerid,TD_GPS[playerid][1],0);
	PlayerTextDrawAlignment(playerid,TD_GPS[playerid][1],0);
	PlayerTextDrawFont(playerid,TD_GPS[playerid][1],1);
	PlayerTextDrawSetShadow(playerid,TD_GPS[playerid][1],0);
	PlayerTextDrawSetProportional(playerid,TD_GPS[playerid][1],1);
	PlayerTextDrawSetOutline(playerid,TD_GPS[playerid][1],0);
	PlayerTextDrawBackgroundColor(playerid,TD_GPS[playerid][1],0xe74c3c00);

	TD_GPS[playerid][2] = CreatePlayerTextDraw(playerid,39.000000,256.000000,"~n~");
	PlayerTextDrawLetterSize(playerid,TD_GPS[playerid][2],0.500000,1.099999);
	PlayerTextDrawTextSize(playerid,TD_GPS[playerid][2],130.000000,0.000000);
	PlayerTextDrawColor(playerid,TD_GPS[playerid][2],0xFFFFFFFF);
	PlayerTextDrawUseBox(playerid,TD_GPS[playerid][2],1);
	PlayerTextDrawBoxColor(playerid,TD_GPS[playerid][2],0x000000AA);
	PlayerTextDrawAlignment(playerid,TD_GPS[playerid][2],0);
	PlayerTextDrawFont(playerid,TD_GPS[playerid][2],1);
	PlayerTextDrawSetShadow(playerid,TD_GPS[playerid][2],1);
	PlayerTextDrawSetProportional(playerid,TD_GPS[playerid][2],1);
	PlayerTextDrawSetOutline(playerid,TD_GPS[playerid][2],0);
	PlayerTextDrawBackgroundColor(playerid,TD_GPS[playerid][2],0xe74c3c00);

	TD_GPS[playerid][3] = CreatePlayerTextDraw(playerid,81.000000,259.000000,"~n~");
	PlayerTextDrawLetterSize(playerid,TD_GPS[playerid][3],0.500000,0.399999);
	PlayerTextDrawTextSize(playerid,TD_GPS[playerid][3],128.000000,0.000000);
	PlayerTextDrawColor(playerid,TD_GPS[playerid][3],0xFFFFFFFF);
	PlayerTextDrawUseBox(playerid,TD_GPS[playerid][3],1);
	PlayerTextDrawBoxColor(playerid,TD_GPS[playerid][3],0x5A5A5AAA);
	PlayerTextDrawAlignment(playerid,TD_GPS[playerid][3],0);
	PlayerTextDrawFont(playerid,TD_GPS[playerid][3],1);
	PlayerTextDrawSetShadow(playerid,TD_GPS[playerid][3],1);
	PlayerTextDrawSetProportional(playerid,TD_GPS[playerid][3],1);
	PlayerTextDrawSetOutline(playerid,TD_GPS[playerid][3],0);
	PlayerTextDrawBackgroundColor(playerid,TD_GPS[playerid][3],0xe74c3c00);

	TD_GPS[playerid][4] = CreatePlayerTextDraw(playerid,81.000000,259.000000,"~n~");
	PlayerTextDrawLetterSize(playerid,TD_GPS[playerid][4],0.500000,0.399999);
	PlayerTextDrawTextSize(playerid,TD_GPS[playerid][4],127.500000,0.000000);
	PlayerTextDrawColor(playerid,TD_GPS[playerid][4],0xFFFFFFFF);
	PlayerTextDrawUseBox(playerid,TD_GPS[playerid][4],1);
	PlayerTextDrawBoxColor(playerid,TD_GPS[playerid][4],0xF6F6F6AA);
	PlayerTextDrawAlignment(playerid,TD_GPS[playerid][4],0);
	PlayerTextDrawFont(playerid,TD_GPS[playerid][4],1);
	PlayerTextDrawSetShadow(playerid,TD_GPS[playerid][4],1);
	PlayerTextDrawSetProportional(playerid,TD_GPS[playerid][4],1);
	PlayerTextDrawSetOutline(playerid,TD_GPS[playerid][4],0);
	PlayerTextDrawBackgroundColor(playerid,TD_GPS[playerid][4],0xe74c3c00);

	TD_GPS[playerid][5] = CreatePlayerTextDraw(playerid,42.000000,257.000000,"DISTANCE");
	PlayerTextDrawLetterSize(playerid,TD_GPS[playerid][5],0.160000,0.799999);
	PlayerTextDrawTextSize(playerid,TD_GPS[playerid][5],1280.000000,1280.000000);
	PlayerTextDrawColor(playerid,TD_GPS[playerid][5],0xFFFFFFFF);
	PlayerTextDrawUseBox(playerid,TD_GPS[playerid][5],0);
	PlayerTextDrawAlignment(playerid,TD_GPS[playerid][5],0);
	PlayerTextDrawFont(playerid,TD_GPS[playerid][5],1);
	PlayerTextDrawSetShadow(playerid,TD_GPS[playerid][5],0);
	PlayerTextDrawSetProportional(playerid,TD_GPS[playerid][5],1);
	PlayerTextDrawSetOutline(playerid,TD_GPS[playerid][5],0);
	PlayerTextDrawBackgroundColor(playerid,TD_GPS[playerid][5],0xe74c3c00);

	gUseALT_TD[0] = CreatePlayerTextDraw(playerid, 260.5000, 410.1112, "LD_SPAC:white"); // ?????
	PlayerTextDrawTextSize(playerid, gUseALT_TD[0], 113.0000, 20.9799);
	PlayerTextDrawAlignment(playerid, gUseALT_TD[0], 1);
	PlayerTextDrawColor(playerid, gUseALT_TD[0], -19909889);
	PlayerTextDrawBackgroundColor(playerid, gUseALT_TD[0], 255);
	PlayerTextDrawFont(playerid, gUseALT_TD[0], 4);
	PlayerTextDrawSetProportional(playerid, gUseALT_TD[0], 0);
	PlayerTextDrawSetShadow(playerid, gUseALT_TD[0], 0);

	gUseALT_TD[1] = CreatePlayerTextDraw(playerid, 245.8000, 405.1112, "LD_BEAT:chit"); // ?????
	PlayerTextDrawTextSize(playerid, gUseALT_TD[1], 26.0000, 31.1199);
	PlayerTextDrawAlignment(playerid, gUseALT_TD[1], 1);
	PlayerTextDrawColor(playerid, gUseALT_TD[1], -19909889);
	PlayerTextDrawBackgroundColor(playerid, gUseALT_TD[1], 255);
	PlayerTextDrawFont(playerid, gUseALT_TD[1], 4);
	PlayerTextDrawSetProportional(playerid, gUseALT_TD[1], 0);
	PlayerTextDrawSetShadow(playerid, gUseALT_TD[1], 0);

	gUseALT_TD[2] = CreatePlayerTextDraw(playerid, 360.0070, 405.1112, "LD_BEAT:chit"); // ?????
	PlayerTextDrawTextSize(playerid, gUseALT_TD[2], 26.0000, 31.1199);
	PlayerTextDrawAlignment(playerid, gUseALT_TD[2], 1);
	PlayerTextDrawColor(playerid, gUseALT_TD[2], -19909889);
	PlayerTextDrawBackgroundColor(playerid, gUseALT_TD[2], 255);
	PlayerTextDrawFont(playerid, gUseALT_TD[2], 4);
	PlayerTextDrawSetProportional(playerid, gUseALT_TD[2], 0);
	PlayerTextDrawSetShadow(playerid, gUseALT_TD[2], 0);

	gUseALT_TD[3] = CreatePlayerTextDraw(playerid, 315.0000, 414.0000, "њCЈOћ©џYќЏE ћ. ALT"); // ?????
	PlayerTextDrawLetterSize(playerid, gUseALT_TD[3], 0.2409, 1.2266);
	PlayerTextDrawAlignment(playerid, gUseALT_TD[3], 2);
	PlayerTextDrawColor(playerid, gUseALT_TD[3], 589505535);
	PlayerTextDrawBackgroundColor(playerid, gUseALT_TD[3], 255);
	PlayerTextDrawFont(playerid, gUseALT_TD[3], 2);
	PlayerTextDrawSetProportional(playerid, gUseALT_TD[3], 1);
	PlayerTextDrawSetShadow(playerid, gUseALT_TD[3], 0);
	
	gps_helper_td[0] = TextDrawCreate(10.333316, 428.103698, "box");
	TextDrawLetterSize(gps_helper_td[0], 0.000000, 1.133334);
	TextDrawTextSize(gps_helper_td[0], 105.000000, 0.000000);
	TextDrawAlignment(gps_helper_td[0], 1);
	TextDrawColor(gps_helper_td[0], -1061109505);
	TextDrawUseBox(gps_helper_td[0], 1);
	TextDrawBoxColor(gps_helper_td[0], 0x00000050);
	TextDrawBackgroundColor(gps_helper_td[0], 255);
	TextDrawFont(gps_helper_td[0], 3);
	TextDrawSetProportional(gps_helper_td[0], 1);

	arzp_PTD[playerid] = TextDrawCreate(39.333248, 425.614685, "Hњ›E™OPOљCKA¬ O—ћ");
	TextDrawLetterSize(arzp_PTD[playerid], 0.400000, 1.600000);
	TextDrawTextSize(arzp_PTD[playerid], 11.000000, 10.199999);
	TextDrawAlignment(arzp_PTD[playerid], 1);
	TextDrawColor(arzp_PTD[playerid], -1);
	TextDrawBackgroundColor(arzp_PTD[playerid], 255);
	TextDrawFont(arzp_PTD[playerid], 1);
	TextDrawSetProportional(arzp_PTD[playerid], 1);
	
    AnimDraw = TextDrawCreate(405.500000, 420.000000, "~y~~k~~PED_SPRINT~ ~g~to stop animation");
	TextDrawLetterSize(AnimDraw, 0.333499, 1.337500);
	TextDrawAlignment(AnimDraw, 1);
	TextDrawColor(AnimDraw, -1);
	TextDrawSetShadow(AnimDraw, 0);
	TextDrawSetOutline(AnimDraw, 1);
	TextDrawBackgroundColor(AnimDraw, 51);
	TextDrawFont(AnimDraw, 2);
	TextDrawSetProportional(AnimDraw, 1);
	for(new idx; idx < 50; idx++) SendClientMessage(playerid, -1, " ");
	SendClientMessage(playerid, COLOR_BLUE, "Добро пожаловать на "SERVER_NAME"");
	
	/*PlayerTimer[playerid][@_200] = SetTimerEx("@200mc_Timer", 200, true, "d", playerid);
	PlayerTimer[playerid][@_1000] = SetTimerEx("@1000mc_Timer", 1000, true, "d", playerid);
	PlayerTimer[playerid][@_5000] = SetTimerEx("@5000mc_Timer", 5000, true, "d", playerid);
	PlayerTimer[playerid][@_60000] = SetTimerEx("@60000mc_Timer", 60000, true, "d", playerid);*/
	return 1;
}
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу