Houses? How to do it? + REP!
#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


Messages In This Thread
Houses? How to do it? + REP! - by Lynet - 15.12.2012, 05:43
Re: Houses? How to do it? + REP! - by GoldZoroGrab - 15.12.2012, 05:44
Re: Houses? How to do it? + REP! - by GoldZoroGrab - 15.12.2012, 06:02

Forum Jump:


Users browsing this thread: 1 Guest(s)