HELP: /enter help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HELP: /enter help (
/showthread.php?tid=186419)
HELP: /enter help -
BigAl - 29.10.2010
if (strcmp(cmdtext, "/enter", true)==0)
{
new i, Float:X, Float:Y, Float:Z; //this is where your coords will get stored
for (i = 0; i < MAX_PLAYERS; i++) //this is a loop
{
GetPlayerPos(i, X, Y, Z); //stores your pos
if(X >= minimum X && X <= Maximum X && Y >= Minimum Y && Y <= Maximum Y) //coords for entering house
{
SetPlayerInterior(playerid, interiorID); //interiorID is the Interior the house is in
SetPlayerPos(playerid, X, Y, Z); // X, Y, Z are the coords where the house is located
GameTextForPlayer(playerid, "Welcome to Owners house",3000,5); //Change Owners to name of player the house is of
}
}
return 1;
}
where would i put the co-ords for entering the house

it confuses me
This comes for samp wiki but confuses me, can anyone else put it any clearer please?
Thanks
Re: HELP: /enter help -
WillyP - 29.10.2010
you edit the minium X ect
Re: HELP: /enter help -
BigAl - 29.10.2010
if(X >= minimum X && X <= Maximum X && Y >= Minimum Y && Y <= Maximum Y)
The first x i dont change? the next two i do? and then what do i put for X && Y
im sorry im new to pawno.