All pastes #749027 Raw Edit

Miscellany

public text v1 · immutable
#749027 ·published 2007-10-25 11:24 UTC
rendered paste body
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])&& i==PlayerInfo[playerid][pLocal])
                        {
                                SetPlayerInterior(playerid,0);
                                SetPlayerVirtualWorld(playerid,0);//here it set your world back to 0
                                SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
                                PlayerInfo[playerid][pInt] = 0;
                                PlayerInfo[playerid][pLocal] = 255;
                                if(HouseInfo[i][hHel] == 1)
                                {
                                        new Float:tempheal;
                                        GetPlayerHealth(playerid,tempheal);
                                        if(tempheal < 100.0)
                                        {
                                                SetPlayerHealth(playerid,100.0);
                                        }
                                }
                        }
                }