Problem With Exit house to interior
#9

How? try this

if(strcmp(cmd, "/exit", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new h = PlayerInfo[playerid][pLocal];
new house = GetHouseID(playerid);
if (PlayerToPoint(3, playerid,HouseInfo[h][hExitx], HouseInfo[h][hExity], HouseInfo[h][hExitz]))
{
if (!IsAnMultiRooms(house))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);//here it set your world back to 0
SetPlayerPos(playerid,HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancey],HouseInfo[h][hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
if(HouseInfo[h][hHel] == 1)
{
new Float:tempheal;
GetPlayerHealth(playerid,tempheal);
if(tempheal < 100.0)
{
SetPlayerHealth(playerid,100.0);
}
}
}
else{
SetPlayerInterior(playerid,15);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,HouseInfo[h][hEntrancex],HouseInfo[h][hEntrancey],HouseInfo[h][hEntrancez]);
PlayerInfo[playerid][pInt] = 15;
}
return 1;
}
Reply


Messages In This Thread
Problem With Exit house to interior - by Ben147 - 05.08.2009, 06:55
Re: Problem With Exit house to interior - by MenaceX^ - 05.08.2009, 06:56
Re: Problem With Exit house to interior - by Ben147 - 05.08.2009, 07:01
Re: Problem With Exit house to interior - by MenaceX^ - 05.08.2009, 10:54
Re: Problem With Exit house to interior - by Ben147 - 05.08.2009, 12:20
Re: Problem With Exit house to interior - by Ben147 - 05.08.2009, 23:23
Re: Problem With Exit house to interior - by Ben147 - 06.08.2009, 07:35
Re: Problem With Exit house to interior - by RayPoda - 06.08.2009, 08:20
Re: Problem With Exit house to interior - by Ben147 - 06.08.2009, 08:41
Re: Problem With Exit house to interior - by Ben147 - 06.08.2009, 17:15

Forum Jump:


Users browsing this thread: 1 Guest(s)