SA-MP Forums Archive
Help me(again) - 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: Help me(again) (/showthread.php?tid=171195)



Help me(again) - Vilt™ - 25.08.2010

Now that my teleport scrpit works, I have another question.
1.How to Disable All Ingame teleports?
2. When I do /exit at my teleport LSPD, My map dissappears, exept the CreateObjects.


Re: Help me(again) - Jeffry - 25.08.2010

1st.) Use a variable:
pawn Код:
if(AllTelesBlocked==1) return 1;   // At your command that you want to block, and on another command, you make the variable 1 or 0.
2nd). At the /exit command add:
pawn Код:
SetPlayerInterior(playerid, 0);



Re: Help me(again) - Vilt™ - 25.08.2010

I mean like, when I go to my server. I see the entrances that you see in the singleplayer modes. where do I have to put that command then? I know, i'm a n00b at scripting xD., but the SetPlayerInterior(playerid, 0); works, thanks .


Re: Help me(again) - Jeffry - 26.08.2010

Oh, you mean how you can disable the Yellow Markers to enter Houses?
You can only disable them by using

pawn Код:
public OnGameModeInit()
{
  DisableInteriorExitExits();
  return 1;
}