help!!! can't exit and enter house
#7

triple posting, and bumping?

is the house set? like house entrance and exit?

pawn Код:
if(strcmp(cmd, "/exit", true) == 0)
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
//printf("House :%d",i);
if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
{
if(HouseEntered[playerid] == i)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
SetCameraBehindPlayer(playerid);
SetPlayerVirtualWorld(playerid,0);
HouseEntered[playerid] = 255;
if(HouseInfo[i][hHel] == 1)
{
new Float:tempheal;
GetPlayerHealth(playerid,tempheal);
if(tempheal < 100.0)
{
SetPlayerHealth(playerid,100.0);
}
}
return 1;
}
}
}
Reply


Messages In This Thread
help!!! can't exit and enter house - by melcal05 - 17.09.2010, 12:33
Re: help!!! can't exit and enter house - by melcal05 - 17.09.2010, 13:30
Re: help!!! can't exit and enter house - by Shelby - 17.09.2010, 13:43
Re: help!!! can't exit and enter house - by melcal05 - 17.09.2010, 13:48
Re: help!!! can't exit and enter house - by melcal05 - 17.09.2010, 15:08
Re: help!!! can't exit and enter house - by melcal05 - 18.09.2010, 03:30
Re: help!!! can't exit and enter house - by Hal - 18.09.2010, 03:55
Re: help!!! can't exit and enter house - by melcal05 - 18.09.2010, 10:02
Re : help!!! can't exit and enter house - by Alex Deregio - 22.02.2011, 23:01

Forum Jump:


Users browsing this thread: 1 Guest(s)