Houses? How to do it? + REP! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Houses? How to do it? + REP! (
/showthread.php?tid=399588)
Houses? How to do it? + REP! -
Lynet - 15.12.2012
Well, i wonder how to ex. make a enter able house? /enter /exit ?
Re: Houses? How to do it? + REP! -
GoldZoroGrab - 15.12.2012
Are You Using DynamicCP
Re: Houses? How to do it? + REP! -
GoldZoroGrab - 15.12.2012
anyways, i think ur reply would take long
if no
add
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
=====