01.11.2014, 17:28
pawn Код:
if(PlayerInfo[playerid][pMuerto] == 0 /*&& AdminDuty[playerid] == 0*/) //Sistema de muerte
{
GetPlayerPos(playerid, MuertoX[playerid], MuertoY[playerid], MuertoZ[playerid]);
MuertoInt[playerid] = GetPlayerInterior(playerid), MuertoVW[playerid] = GetPlayerVirtualWorld(playerid); //-2653.3765, 629.7842, 13.4351
if(GetDistance(MuertoX[playerid], MuertoY[playerid], MuertoZ[playerid], 1182.8728, -1323.5931, 13.5783) > GetDistance(MuertoX[playerid], MuertoY[playerid], MuertoZ[playerid], 2002.5728, -1445.3669, 13.5616) > GetDistance(MuertoX[playerid], MuertoY[playerid], MuertoZ[playerid], -2653.3765, 629.7842, 13.4351) > GetDistance(MuertoX[playerid], MuertoY[playerid], MuertoZ[playerid], 1602.0519,1819.3652,10.8280))
{ // Si se cumple la condiciуn...
PlayerInfo[playerid][pMuerto] = 1;
}
else
{ // Si NO se cumple...
PlayerInfo[playerid][pMuerto] = 2;
}
else
{ // Si NO se cumple...
PlayerInfo[playerid][pMuerto] = 3;
}
else
{ // Si NO se cumple...
PlayerInfo[playerid][pMuerto] = 4;
}
}
//-------- DEBERНA SER ASН
if(PlayerInfo[playerid][pMuerto] == 0 /*&& AdminDuty[playerid] == 0*/) //Sistema de muerte
{
GetPlayerPos(playerid, MuertoX[playerid], MuertoY[playerid], MuertoZ[playerid]);
MuertoInt[playerid] = GetPlayerInterior(playerid), MuertoVW[playerid] = GetPlayerVirtualWorld(playerid); //-2653.3765, 629.7842, 13.4351
if(GetDistance(MuertoX[playerid], MuertoY[playerid], MuertoZ[playerid], 1182.8728, -1323.5931, 13.5783) > GetDistance(MuertoX[playerid], MuertoY[playerid], MuertoZ[playerid], 2002.5728, -1445.3669, 13.5616) > GetDistance(MuertoX[playerid], MuertoY[playerid], MuertoZ[playerid], -2653.3765, 629.7842, 13.4351) > GetDistance(MuertoX[playerid], MuertoY[playerid], MuertoZ[playerid], 1602.0519,1819.3652,10.8280))
{ // Si se cumple la condiciуn...
PlayerInfo[playerid][pMuerto] = 1;
}
else
{ // Si NO se cumple...
PlayerInfo[playerid][pMuerto] = 2;
PlayerInfo[playerid][pMuerto] = 3;
PlayerInfo[playerid][pMuerto] = 4;
}
}