[HELP] house car lock
#2

pawn Код:
YCMD:lock(playerid, params[], help)
{
    #pragma unused help
    #pragma unused params
    new h = PlayerInfo[playerid][pHouseKey];
    if(h == INVALID_HOUSE_ID) return 1; // ?????????
    if(HouseInfo[h][hCarLock]) {
    HouseInfo[h][hCarLock] = 0;
    return SendClientMessage(playerid, -1, "*You unlocked your house car."); }
    else
    HouseInfo[h][hCarLock] = 1;
    SendClientMessage(playerid, -1, "*You've locked your house car.");
    return 1;
}
Reply


Messages In This Thread
[HELP] house car lock - by Luca12 - 06.01.2014, 20:01
Re: [HELP] house car lock - by erminpr0 - 06.01.2014, 22:43
Re: [HELP] house car lock - by Luca12 - 07.01.2014, 07:06

Forum Jump:


Users browsing this thread: 1 Guest(s)