How to enter a building using ALT? - 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: How to enter a building using ALT? (
/showthread.php?tid=251498)
How to enter a building using ALT? -
Sensitive - 27.04.2011
Hello!
I'm using GTA:RP, and in there you will enter building if you just go into the icon. But i want to remove it, and replace with ALT. Please help. I will give free host for month, if you help..

.
Re: How to enter a building using ALT? -
Raimis_R - 27.04.2011
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_WALK)
{
if(IsPlayerInRangeOfPoint(playerid,2,-2026.55,-102.06,35.16)) //Enter
{
SetPlayerPos(playerid,x,y,z);
SetPlayerInterior(playerid,Interior);
}
if(IsPlayerInRangeOfPoint(playerid,2,x,y,z)) //Exit
{
SetPlayerPos(playerid,x,y,z);
SetPlayerInterior(playerid,0);
}
}
return true;
}
Re: How to enter a building using ALT? -
itachi4x4 - 27.04.2011
Nevermind
Re: How to enter a building using ALT? -
grand.Theft.Otto - 27.04.2011
Use this:
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange