Disable specific interior enter/exits. - 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: Disable specific interior enter/exits. (
/showthread.php?tid=158177)
Disable specific interior enter/exits. -
BP13 - 09.07.2010
Is it possible to disable all ammunation enter/exits but keep all other places enterable?
Re: Disable specific interior enter/exits. -
ipsBruno - 09.07.2010
Yes, Example
pawn Код:
public OnPlayerUpdate(playerid)
{
new interiordkn ;
interiordkn = GetPlayerInterior(playerid)
if(interiordkn == 1 || interiordkn == 4 || interiordkn == 6 || interiordkn == 7)
{
/* FUNCTION HERE */
SetPlayerHealth(playerid,0);
}
return 1;
}
Re: Disable specific interior enter/exits. -
BP13 - 09.07.2010
Quote:
Originally Posted by DraKoN
Yes, Example
pawn Код:
public OnPlayerUpdate(playerid) { new interiordkn ; interiordkn = GetPlayerInterior(playerid) if(interiordkn == 1 || interiordkn == 4 || interiordkn == 6 || interiordkn == 7) { /* FUNCTION HERE */ SetPlayerHealth(playerid,0); } return 1; }
|
That means if im in those interiors and not in a ammunition I will also die.
Re: Disable specific interior enter/exits. -
StreetGT - 09.07.2010
yeh, you can create to something like this
Код:
public OnPlayerUpdate(playerid)
{
new interiordkn ;
interiordkn = GetPlayerInterior(playerid)
if(interiordkn == 1)
{
/* FUNCTION HERE */
SetPlayerPos(....)
}
return 1;
}
you go in, and you get teleported out, understand what i mean?
Re: Disable specific interior enter/exits. -
StreetGT - 09.07.2010
try this
https://sampforum.blast.hk/showthread.php?tid=158169
Re: Disable specific interior enter/exits. -
[HiC]TheKiller - 09.07.2010
Use
SetPlayerShopName like I stated in a topic earlier today. If you set the shop name to something else you will be able to enter them but not buy weapons. You could also just make checkpoints to enter interiors.
Re: Disable specific interior enter/exits. -
aNdReSk - 09.07.2010
Yeah dude u commented on my fs
download it again cuz it's working 100%
Re: Disable specific interior enter/exits. -
BP13 - 09.07.2010
Quote:
Originally Posted by aNdReSk
Yeah dude u commented on my fs download it again cuz it's working 100%
|
I'm afraid of more timers :P
Re: Disable specific interior enter/exits. -
[HiC]TheKiller - 09.07.2010
Quote:
Originally Posted by BP13
I'm afraid of more timers :P
|
Read my reply with the DataFileHost link. It uses the callback OnPlayerInteriorChange or whatever it was
.
EDIT: Lol, you said it doesn't work, I'll check it out
.