Help /safehouse
#1

Wanted your help to fix my command / safe for the player to use the command in your home, but the error and giving ta to use this command inside the houses of other players.

pawn Code:
if(strcmp(cmd,"/safehouse",true)==0)
    {
        for(new h = 0; h < sizeof(HouseInfo); h++)
        {
        if (!PlayerToPoint(3, playerid,HouseInfo[playerid][hExitx], HouseInfo[playerid][hExity], HouseInfo[playerid][hExitz]))
        {
             SendClientMessage(playerid, COLOR_GREY, "You are not inside your home.");
             return 1;
        }
        ShowPlayerDialog(playerid,1144,DIALOG_STYLE_LIST,"Safe House","Deposit\nBooty\nBalance","okay","cancel");
        return 1;
    }
    }
Reply


Messages In This Thread
Help /safehouse - by Freak@ - 17.11.2012, 09:25
Re: Help / safehouse - by Lean - 17.11.2012, 09:27
Re: Help /safehouse - by Freak@ - 17.11.2012, 09:31
Re: Help /safehouse - by Freak@ - 17.11.2012, 11:17
Re: Help /safehouse - by Freak@ - 17.11.2012, 14:56
Re: Help /safehouse - by zDivine - 17.11.2012, 14:59
Re: Help /safehouse - by Freak@ - 17.11.2012, 22:47

Forum Jump:


Users browsing this thread: 1 Guest(s)