17.11.2012, 09:25
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;
}
}


