Still problem.. UNsloved
#5

pawn Код:
stock InDaHouse(playerid)
{
    for(new i; i < sizeof(HouseInfo); i++)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
        {
            return i;
        }
    }
    return -1;
}
if(strcmp(cmd, "/view", true) == 0)
{
    new HouseID = InDaHouse(playerid);
    if(HouseID == (-1)) return SendClientMessage(playerid,COLOR_GREY,"You are not at house.. ");
    if(HouseInfo[HouseID][hOwned] >= 1) return SendClientMessage(playerid,COLOR_GREY,"This house is owned");
    if(PlayerInfo[playerid][pMoneyH] >= HouseInfo[HouseID][hValue])
    {
        SetPlayerInterior(playerid,HouseInfo[HouseID][hInt]);
        SetPlayerVirtualWorld(playerid,HouseInfo[HouseID][hWorld]);
        SetPlayerPos(playerid,HouseInfo[HouseID][hExitx],HouseInfo[HouseID][hExity],HouseInfo[HouseID][hExitz]);
        GameTextForPlayer(playerid, "~r~/exit at any time", 5000, 1);
        PlayerInfo[playerid][pInt] = HouseInfo[HouseID][hInt];
        PlayerInfo[playerid][pLocal] = HouseID;
        HouseEntered[playerid] = HouseID;
    }else SendClientMessage(playerid,COLOR_GREY,"You dont have enough cash with you");
    return 1;
}
Reply


Messages In This Thread
Still problem.. UNsloved - by GaGlets(R) - 04.08.2010, 22:39
Re: Still problem.. UNsloved - by Kar - 04.08.2010, 22:49
Re: Still problem.. UNsloved - by GaGlets(R) - 04.08.2010, 22:51
Re: Still problem.. UNsloved - by Kar - 04.08.2010, 22:54
Re: Still problem.. UNsloved - by Jefff - 04.08.2010, 23:08

Forum Jump:


Users browsing this thread: 1 Guest(s)