onplayerdeath
#1

hey, why system don't skip first part of script if he false ?

Код:
	
if(playerData[playerid][DMZONE])
	{
		if(playerData[killerid][GuyInDMONE])
		{
			SetPlayerPos(killerid, -62.0927,2473.2788,16.4844);
	       	SetPlayerPos(playerid, -62.0927,2473.2788,16.4844);
		}
		else if(playerData[killerid][GuyInDMTWO])
		{

			SetPlayerPos(killerid, -62.0927,2473.2788,16.4844);
	       	SetPlayerPos(playerid, -62.0927,2473.2788,16.4844);
		}
		else if(!playerData[playerid][DMZONE])
		{
			print("else if DMZONE false skip DMZONE true and move to hospital");
			playerData[playerid][HPTIME] = 60;
			playerData[playerid][HPINSITE]= 1;
			MoveToHospital(playerid);
		}
	}
	return 1;
Reply
#2

any solutions ?
Reply
#3

if(playerData[playerid][DMZONE])
{
if(playerData[killerid][GuyInDMONE])
{
SetPlayerPos(killerid, -62.0927,2473.2788,16.4844);
SetPlayerPos(playerid, -62.0927,2473.2788,16.4844);
}
else if(playerData[killerid][GuyInDMTWO])
{

SetPlayerPos(killerid, -62.0927,2473.2788,16.4844);
SetPlayerPos(playerid, -62.0927,2473.2788,16.4844);
}
}
else if(!playerData[playerid][DMZONE])
{
print("else if DMZONE false skip DMZONE true and move to hospital");
playerData[playerid][HPTIME] = 60;
playerData[playerid][HPINSITE]= 1;
MoveToHospital(playerid);
}
return 1;
Reply
#4

Код:
if(playerData[playerid][DMZONE])
	{
		if(playerData[killerid][GuyInDMONE])
		{
			SetPlayerPos(killerid, -62.0927,2473.2788,16.4844);
	       	SetPlayerPos(playerid, -62.0927,2473.2788,16.4844);
		}
		if(playerData[killerid][GuyInDMTWO])
		{

			SetPlayerPos(killerid, -62.0927,2473.2788,16.4844);
	       	SetPlayerPos(playerid, -62.0927,2473.2788,16.4844);
		}
		if(!playerData[playerid][DMZONE])
		{
			print("else if DMZONE false skip DMZONE true and move to hospital");
			playerData[playerid][HPTIME] = 60;
			playerData[playerid][HPINSITE]= 1;
			MoveToHospital(playerid);
		}
	}
	return 1;
Please +Rep if it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)