interior help - 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: interior help (
/showthread.php?tid=67910)
interior help -
thuron - 05.03.2009
hello everyone,
I'm having a little problem:
in other servers when you enter an interior, you exit by typing /exit. well thats possible in my server to, but when i walk a bit to the door, i get a kind of little "ingame movie" with my char walking through the door. how can i disable the whole auto walk-through-the-door thing?
Re: interior help -
[RP]Rav - 05.03.2009
You'll need to make a custom interior enter/exit system, and disable the default (gta) one
Re: interior help -
thuron - 05.03.2009
yea, i have the enter/exit thing. but do i have to disable the gta one with a command of with a program?
Re: interior help -
[RP]Rav - 05.03.2009
pawn Код:
public OnGameModeInit()
{
[...]
DisableInteriorEnterExits();
[...]
return 1;
}
Re: interior help -
thuron - 05.03.2009
aha, thanks
Re: interior help -
thuron - 05.03.2009
hmm, now i wanted to make a pickup which gives a message, but i get a weird error:
Код:
warning 206: redundant test: constant expression is non-zero
this is the piece of script:
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == MainHallEnter)
{
SendClientMessage(playerid, COLOR_CYELLOW, "* Type /enter to enter the main hall.");
return 1;
}
return 0;
}