/lock house, in interior
#1

How i can to lock my house when i am in interior ?

This is /lock command :
pawn Код:
dcmd_lock(playerid,params[])
{
    #pragma unused params
    new str1[256],pname[24],housenumber;
    housenumber = GetHouseID(playerid);
    GetPlayerName(playerid, pname, 24);
    format(str1, sizeof(str1), "Houses/houseid%d", housenumber);
    if(strcmp(hInfo[housenumber][Name],pname,true)==0)
    {
        SendClientMessage(playerid, c_y, "{FFFFFF}You have locked your house.");
        dini_IntSet(str1,"Locked",1);
        hInfo[housenumber][Locked] = 1;
    }
    else if(strcmp(hInfo[housenumber][Renter],pname,true)==0)
    {
        SendClientMessage(playerid, c_y, "{FFFFFF}You have locked your house.");
        dini_IntSet(str1,"Locked",1);
        hInfo[housenumber][Locked] = 1;
    }
    else
    {
        SendClientMessage(playerid, c_r, "{FFFFFF}This house isn't your.");
    }
    return 1;
}
Reply


Messages In This Thread
/lock house, in interior - by thebwgg - 20.04.2012, 19:16
Re: /lock house, in interior - by Face9000 - 21.04.2012, 00:17
Re: /lock house, in interior - by Ainseri - 21.04.2012, 00:30
Re: /lock house, in interior - by thebwgg - 21.04.2012, 08:47

Forum Jump:


Users browsing this thread: 1 Guest(s)