Houses? How to do it? + REP!
#1

Well, i wonder how to ex. make a enter able house? /enter /exit ?
Reply
#2

Are You Using DynamicCP
Reply
#3

anyways, i think ur reply would take long
if no
add
pawn Код:
#include <streamer>
pawn Код:
new Houseone;
new rddytoenter[MAX_PLAYERS];
pawn Код:
public OnGameModeInit()
{
    Houseone = CreateDynamicCP(X, Y, Z, CP Size);
    return 1;
}

pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == Houseone)
    {
        rddytoenter[playerid]=1;
    }
    return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/enter", cmdtext, true, 10) == 0)
    {
            if(rddytoenter[playerid]==1)
            {
                SetPlayerInterior(playerid, intid);
                SendClientMessage(playerid, 0x00A4F6AA, "You Have Entered The House.");
                return 1;
            }
            else SendClientMessage(playerid, 0xF60000AA, "You Aren't At The Home CheckPoint To Enter...");
            return 0;
        }
}
NOTE: Use This To SEE Interiors Ids (house Ids)
=====
http://weedarr.wikidot.com/interior
=====
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)