Soprano
Новичок
Покупаешь дом,вводишь /exit не работает!
ALT тоже не работает,в чем дело?
else if (strcmp("/exit", cmdtext, true) == 0 )
{
if(PlayerToPoint(8.0,playerid,386.2079,173.5334,1008.3828))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1478.7963,-1814.1805,14.2739);
SetPlayerFacingAngle(playerid, 0.3133);
}
else if(PlayerToPoint(8.0,playerid,366.6773,193.4174,1008.3828))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1411.3784,-1789.9296,14.5647);
SetPlayerFacingAngle(playerid, 94.6852);
}
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[hExitx], HouseInfo[hExity], HouseInfo[hExitz]))
{
if (GetPlayerVirtualWorld(playerid) == i+50)
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
}
}
ALT тоже не работает,в чем дело?
else if (strcmp("/exit", cmdtext, true) == 0 )
{
if(PlayerToPoint(8.0,playerid,386.2079,173.5334,1008.3828))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1478.7963,-1814.1805,14.2739);
SetPlayerFacingAngle(playerid, 0.3133);
}
else if(PlayerToPoint(8.0,playerid,366.6773,193.4174,1008.3828))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1411.3784,-1789.9296,14.5647);
SetPlayerFacingAngle(playerid, 94.6852);
}
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[hExitx], HouseInfo[hExity], HouseInfo[hExitz]))
{
if (GetPlayerVirtualWorld(playerid) == i+50)
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
}
}
