artyr0601
Новичок
Не входит в отель(Когда жмешь альт не чего не происхоидт).
Я думаю дело в мирах.
if(newkeys & KEY_WALK && !IsPlayerInAnyVehicle(playerid))
Я думаю дело в мирах.
if(newkeys & KEY_WALK && !IsPlayerInAnyVehicle(playerid))
PHP:
new hotel = EnterHotel[playerid];
if(hotel != -1)
{
if(GetPlayerVirtualWorld(playerid) != (hotel+150) )
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, HotelInfo[hotel][htPos_X], HotelInfo[hotel][htPos_Y], HotelInfo[hotel][htPos_Z]))
{
if(!HotelInfo[hotel][htLock])
{
EnterHotel[playerid]=hotel;
if(hotel==8 || hotel==9 || hotel==10)SetPlayerInterior(playerid, 0);
else SetPlayerInterior(playerid, 1);
pTemp[playerid][pAntiAir] += 4;
SetPlayerVirtualWorld(playerid, hotel+150);
J_SetPlayerFacingAngle(playerid, HotelInfo[hotel][htExit_A]);
NoEnterPickup[playerid] =2;
f_TogglePlayerControllable(playerid,false);
J_SetPlayerPos(playerid, HotelInfo[hotel][htExit_X], HotelInfo[hotel][htExit_Y], HotelInfo[hotel][htExit_Z]);
return true;
}
else SendClientMessage(playerid, COLOR_GREY, "[Ioeaea] {FFFFFF}Aaa?u cae?uoa");
}
}
if(IsPlayerInRangeOfPoint(playerid, 0.5, HotelInfo[hotel][htExit_X], HotelInfo[hotel][htExit_Y], HotelInfo[hotel][htExit_Z]))
{
pTemp[playerid][pAntiAir] += 4;
SetPlayerVirtualWorld(playerid,HotelInfo[hotel][htWorld]);
if(hotel==8 || hotel==9 || hotel==10)SetPlayerInterior(playerid, 0);
else SetPlayerInterior(playerid, 1);
J_SetPlayerFacingAngle(playerid, HotelInfo[hotel][htPos_A]);
J_SetPlayerPos(playerid,HotelInfo[hotel][htPos_X],HotelInfo[hotel][htPos_Y],HotelInfo[hotel][htPos_Z]);
NoEnterPickup[playerid] =2;
f_TogglePlayerControllable(playerid,false);
EnterHotel[playerid] = -1;
return true;
}
}
}
