SA-MP Forums Archive
Entering interiors - 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: Entering interiors (/showthread.php?tid=338845)



Entering interiors - zgintasz - 01.05.2012

Hi guys,

Is it possible to enter interior in sa-mp without SetPlayerInterior function? And without Pay 'n' spray(OnEnterExitModShop callback). Because I want to make anti- teleport to interior's...


Re: Entering interiors - TzAkS. - 01.05.2012

No,if you want to do that you can do something like
Код:
if(GetPlayerInterior(playerid) > 0)
{
SendClientMessage(playerid, COLOR, " You can not teleport to a interior");
}



Re: Entering interiors - zgintasz - 01.05.2012

So, without Pay 'n' spray and SetPlayerInterior it's impossible, I understand correctly? Thanks.


Re: Entering interiors - HighPitchedVoice - 01.05.2012

Yes, correct. Rep please :P


Re: Entering interiors - MP2 - 01.05.2012

Rep? For what? Spamming?

https://sampwiki.blast.hk/wiki/OnPlayerInteriorChange