Jump to content
  • 0

/lock house, pe interior.


Question

Posted

Cum as putea sa fac la comanda /lock, cand vreau sa inchid casa, sa pot s-o incui in timp ce sunt in ea ?

Folosesc Antironix's house system.

[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;

}[/pawn]

www.youtube.com/thebwgg

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.