Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

Баг после смерти

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

#Michael_Walker

Умник
Появился баг что после смерти любым способом игрок не умирает, а просто блокируеться управление но движения камеры возможны. Как это исправить
PHP:
{
    ResetPlayerWeapons(playerid);
	if(!AntiFakeKill[playerid]) return KickEx(playerid,3);
	AntiFakeKill[playerid] = false;
	SetPVarInt(playerid,"K_Times",GetPVarInt(playerid,"K_Times") + 1);
	if(GetPVarInt(playerid,"K_Times") > 1) return KickEx(playerid,4);
	if(HospTime[playerid] == true) KillTimer(HospTimer[playerid]);
	pTemp[playerid][pSpawn] = 0;
	if(killerid != INVALID_PLAYER_ID)
	{
		if(IsAGang(killerid) && IsAGang(playerid))
		{
			for(new i; i < TOTALGZ; i++)
			{
				if(GZInfo[i][ZoneOnBattle] == 1 && killerid != INVALID_PLAYER_ID)
				{
					if(PlayerInfo[killerid][pMRInections] != PlayerInfo[playerid][pMRInections])
					{
						if(PlayerInfo[killerid][pMRInections] == GZInfo[i][gNapad] || PlayerInfo[killerid][pMRInections] == GZInfo[i][gFrakVlad])
						{
							if(PlayerInfo[playerid][pMRInections] == GZInfo[i][gNapad] || PlayerInfo[playerid][pMRInections] == GZInfo[i][gFrakVlad])
							{
								SendDead(PlayerInfo[killerid][pMRInections],PlayerInfo[playerid][pMRInections],killerid,playerid,reason);
								CountOnZone[PlayerInfo[killerid][pMRInections]]++;
								break;
							}
						}
					}
				}
			}
		}
	}
	if(BizWarTime > 0)
	{
		if(ISAMAFIA(killerid) && ISAMAFIA(playerid) &&  killerid != INVALID_PLAYER_ID)
		{
			if(PlayerInfo[killerid][pMRInections] != PlayerInfo[playerid][pMRInections])
			{
				if(PlayerInfo[killerid][pMRInections] == MZInfo[bNapad] || PlayerInfo[killerid][pMRInections] == MZInfo[bFrakVlad])
				{
					if(PlayerInfo[playerid][pMRInections] == MZInfo[bNapad] || PlayerInfo[playerid][pMRInections] == MZInfo[bFrakVlad])
					{
						switch(MZInfo[bMesto])
						{
						case 1:
							if(PlayerToKvadrat(killerid,300.755706, 2402.644531, 468.755706, 2580.644531) && PlayerToKvadrat(playerid,300.755706, 2402.644531, 468.755706, 2580.644531))
							{
								SendDead(PlayerInfo[killerid][pMRInections],PlayerInfo[playerid][pMRInections],killerid,playerid,reason);
								MZInfo[bCountDead][PlayerInfo[killerid][pMRInections]]++;
							}
						case 2:
							if(PlayerToKvadrat(killerid,-855.6808,1891.0676,-519.0121,2128.4995) && PlayerToKvadrat(playerid,-855.6808,1891.0676,-519.0121,2128.4995))
							{
								SendDead(PlayerInfo[killerid][pMRInections],PlayerInfo[playerid][pMRInections],killerid,playerid,reason);
								MZInfo[bCountDead][PlayerInfo[killerid][pMRInections]]++;
							}
						case 3:
							if(PlayerToKvadrat(killerid,275.881378, 797.211608, 443.881378, 973.211608) && PlayerToKvadrat(playerid,275.881378, 797.211608, 443.881378, 973.211608))
							{
								SendDead(PlayerInfo[killerid][pMRInections],PlayerInfo[playerid][pMRInections],killerid,playerid,reason);
								MZInfo[bCountDead][PlayerInfo[killerid][pMRInections]]++;
							}
						}
					}
				}
			}
		}
	}
	if(reason == 38 && GetPlayerState(killerid) == PLAYER_STATE_PASSENGER)
	{
		new warnn[128];
		format(warnn, sizeof(warnn), "<Warning> %s[%d]: óáèë ñ ìèíèãàíà %s[%d] wep %d guns %d",PlayerInfo[killerid][pNames],killerid,PlayerInfo[playerid][pNames],playerid,GetPlayerWeapon(killerid),GetPlayerAmmo(killerid));
		ABroadCast(0xff0000ff,warnn,2);
		RemovePlayerFromVehicle(killerid);
	}
	if(reason == 38)
	{
		format(stringer,MAX_STR, "<Warning> %s[%d]: óáèë ñ ìèíèãàíà %s[%d]   wep %d  guns %d",PlayerInfo[killerid][pNames],killerid,PlayerInfo[playerid][pNames],playerid,GetPlayerWeapon(killerid),GetPlayerAmmo(killerid));
		ABroadCast(0xFF0000AA,stringer,1);
		minigun[playerid] += 4;
		RemoveFromVehicle(killerid);
	}
	PlayerHealth[playerid] = 100;
	SetPlayerHealthAC(playerid, PlayerHealth[playerid]);
	RemovePlayerAttachedObject(playerid,1);
	RemovePlayerAttachedObject(playerid,2);
	RemovePlayerAttachedObject(playerid,3);
	RemovePlayerAttachedObject(playerid,4);
	RemovePlayerAttachedObject(playerid,0);
	usemats[playerid] = 0;
    SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
	Delgun(playerid);
	PlayerInfo[playerid][pLocal] = 255;
	DisablePlayerCheckpoint(playerid);
	keys[playerid] = 0;
 	if(GetPVarInt(playerid,"HospRecover") == 1)
    {
        for(new i = 0; i < MAX_HOSPITAL; i++)
        {
            if(HospitalInfo[i][hStatus] == 0) continue;
            if(strcmp(PlayerInfo[playerid][pNames],HospitalInfo[i][hName],true)) continue;
            strmid(HospitalInfo[i][hName],"None",0x1,0x4);
            HospitalInfo[i][hStatus] = 0;
            format(stringer,200,"{FFFFFF}Êîéêà ¹%d\n{00CC00}Ñâîáîäíà\n\n{AAAAAA}Íàæìèòå êëàâèøó N\n×òîáû çàíÿòü ¸¸",HospitalInfo[i][hospID]);
            UpdateDynamic3DTextLabelText(HospitalInfo[i][hLabelHosp],0x317CDFFF,stringer);
        }
    }
	if(PlayerInfo[playerid][pWanted] > 0)
	{
		if(IsACop(killerid))
		{
			PlayerInfo[playerid][pJailTime] = PlayerInfo[playerid][pWanted]*600;
			format(stringer,MAX_STR,"[Âñåì ïîñòàì] %s %s íåéòðàëèçîâàë ïðåñòóïíèêà %s", RangName(PlayerInfo[killerid][pMRInections],PlayerInfo[killerid][pRKInections]), PlayerInfo[killerid][pNames],PlayerInfo[playerid][pNames]);
		   	SendPoliceMessage(0x0095ffFF, stringer);
			GameTextForPlayer(playerid, "~b~Arrest", 3500, 0);
			PlayerInfo[playerid][pMestoJail] = 1;
            PlayerInfo[playerid][pWanted] = 0;
            SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWanted]);
		}
	}
	if(StartPaintBall == 1 && TeamPain[playerid] != 0)
	{
		if(TeamPain[playerid] == 1) BluePlayer --;
		if(TeamPain[playerid] == 2) RedPlayer --;
		TeamPain[playerid] = 0;
		KillPain[playerid] = 0;
		DeathPain[playerid] = 0;
		SCM(playerid, COLOR_WHITE,"Âû áûëè äèñêâàëåôèöèðîâàíû!");
	}
	if(TeamPain[playerid] != 0 && TeamPain[killerid] != 0 && TeamPain[killerid] != TeamPain[playerid] && StartPaintBall == 2)
	{
		DeathPain[playerid] ++;
		KillPain[killerid] ++;
		SetPlayerHealthAC(killerid, 100.0);
		format(stringer1, SMALL_SIZE, "~r~Kill: %d Death: %d", KillPain[killerid], DeathPain[killerid]);
		GameTextForPlayer(killerid,stringer1, 2000, 4);
		format(stringer1, SMALL_SIZE, "~r~Kill: %d Death: %d", KillPain[playerid], DeathPain[playerid]);
		GameTextForPlayer(playerid,stringer1, 2000, 4);
		if(TeamPain[playerid] == 1) RedScore ++;
		if(TeamPain[playerid] == 2) BlueScore ++;
		foreach(i)
		{
			if(TeamPain[i] == 0) continue;
			new sttr[28];
			format(sttr,sizeof(sttr),"TEAM RED: ~w~%d",RedScore);
			TextDrawSetString(PaintDraws[3], sttr);
			format(sttr,sizeof(sttr),"TEAM BLUE: ~w~%d",BlueScore);
			TextDrawSetString(PaintDraws[2], sttr);
		}
	}
	if(PlayerInfo[playerid][pLRInections] == 0 && !IsAGang(playerid) && !ISAMAFIA(playerid) && !IsACop(playerid))
    {
        if(IsAGang(playerid) || ISAMAFIA(playerid) || IsACop(playerid) || PlayerInfo[playerid][pLRInections] > 0) return true;
		SetPVarInt(playerid,"HospRecover",0x0);
	    PlayerInfo[playerid][pHospital] = 0x1;
	    SetPlayerHealth(playerid, 10);
	    PlayerHealth[playerid] = 10;
	}
	GameTextForPlayer(playerid, "~r~WASTED", 3500, 0);
	return true;
}
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу