24.02.2012, 23:24
Tipo eu ja sei o bags mais tipo nгo ta saindo no local certo tipo as duas hqs ao sair sai na mesma pos.
else if(PlayerToPoint(2, playerid,957.9416,-1556.2628,13.5802))
{//ENTRADA HQ HITMANS
GameTextForPlayer(playerid, "~w~HQ Hitmans", 5000, 1);
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,343.7183,304.9376,999.1484);
PlayerInfo[playerid][pInt] = 6;
SetPlayerVirtualWorld(playerid, 0);
}
else if(PlayerToPoint(2, playerid,-1681.4905,1350.2188,7.1722))
{//ENTRADA HQ Triads
GameTextForPlayer(playerid, "~w~HQ Triads", 5000, 1);
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,343.7183,304.9376,999.1484);
PlayerInfo[playerid][pInt] = 6;
SetPlayerVirtualWorld(playerid, 1);
atй aki blz
if(PlayerToPoint(1.0, playerid,343.7183,304.9376,999.1484))
{//SAIDA HQ HITMANS
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,957.9416,-1556.2628,13.5802);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
if(PlayerToPoint(1.0, playerid,343.7183,304.9376,999.1484))
{//SAIDA HQ Triads
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-1681.4905,1350.2188,7.1722);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
aki ja ferro, pq tipo sai no mesmo lugar sendo que a pos de saida й diferente.
if(PlayerToPoint(2, playerid,957.9416,-1556.2628,13.5802))
{//ENTRADA HQ HITMANS
GameTextForPlayer(playerid, "~w~HQ Hitmans", 5000, 1);
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,343.7183,304.9376,999.1484);
PlayerInfo[playerid][pInt] = 6;
SetPlayerVirtualWorld(playerid, 0);
}
else if(PlayerToPoint(2, playerid,-1681.4905,1350.2188,7.1722))
{//ENTRADA HQ Triads
GameTextForPlayer(playerid, "~w~HQ Triads", 5000, 1);
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,343.7183,304.9376,999.1484);//ta errado
PlayerInfo[playerid][pInt] = 6;
SetPlayerVirtualWorld(playerid, 1);
}
if(PlayerToPoint(1.0, playerid,343.7183,304.9376,999.1484))
{//SAIDA HQ HITMANS
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,957.9416,-1556.2628,13.5802);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
if(PlayerToPoint(1.0, playerid,343.7183,304.9376,999.1484))
{//SAIDA HQ Triads
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-1681.4905,1350.2188,7.1722);//ta errado
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
if(PlayerToPoint(1.0, playerid,343.7183,304.9376,999.1484) && GetPlayerVirtualWorld(playerid) == 0)
{//SAIDA HQ HITMANS
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,957.9416,-1556.2628,13.5802);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
if(PlayerToPoint(1.0, playerid,343.7183,304.9376,999.1484) && GetPlayerVirtualWorld(playerid) == 1)
{//SAIDA HQ Triads
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-1681.4905,1350.2188,7.1722);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}