Disable specific interior enter/exits.
#1

Is it possible to disable all ammunation enter/exits but keep all other places enterable?
Reply
#2

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;
}
Reply
#3

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.
Reply
#4

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?
Reply
#5

try this https://sampforum.blast.hk/showthread.php?tid=158169
Reply
#6

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.
Reply
#7

Yeah dude u commented on my fs download it again cuz it's working 100%
Reply
#8

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
Reply
#9

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 .
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)