how to make like if you press "F" or enter then enters building? - 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 make like if you press "F" or enter then enters building? (
/showthread.php?tid=144475)
how to make like if you press "F" or enter then enters building? -
hardstop - 27.04.2010
how to make like if you press "F" or enter then enters building?
i want that if coords -2161.2886,-2384.8337,30.8949 and you press F OR ENTER BUTTON then you will be teleported to building
how can i do like that?
Re: how to make like if you press "F" or enter then enters building? -
MadeMan - 27.04.2010
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, -2161.2886,-2384.8337,30.8949))
{
// teleport here
}
}
return 1;
}
Re: how to make like if you press "F" or enter then enters building? -
Steven82 - 27.04.2010
Exactly

still need help?
Re: how to make like if you press "F" or enter then enters building? -
hardstop - 28.04.2010
No Thnx

i got working