SA-MP Forums Archive
Auto enter/exit without command - 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: Auto enter/exit without command (/showthread.php?tid=276307)



Auto enter/exit without command - Loque - 13.08.2011

Can anyone edit ravens mod to make house and bizzes enterable automatically just passing trough pickups?


Re: Auto enter/exit without command - svaba - 13.08.2011

No, raven's has /enter and /exit cmds


Re: Auto enter/exit without command - emokidx - 13.08.2011

i think pickups will be the answer
and you can also do that if the player presses the enter key he will enter.. it will be done by "IsPlayerInRangeOfPoint" (something like that) and "KEY_blah blah"...


Re: Auto enter/exit without command - Meinstad - 13.08.2011

You can use it like these:

PHP код:
 #define pickup;
on OnGameModeInit:
pickup CreatePickup(etc,etc,etc);
on OnPlayerPickUpPickup
if(pickup);
      
SetPlayerPos(pos);
      
SetPlayerInterior(interior)
      {
and 
so on
Regard's Chris


Re: Auto enter/exit without command - Loque - 13.08.2011

Quote:
Originally Posted by svaba
Посмотреть сообщение
No, raven's has /enter and /exit cmds
Yes, I say this if can be edited the gm to do this.


Re: Auto enter/exit without command - svaba - 13.08.2011

You need to edit it by yourself, no one is gonna do it


Re: Auto enter/exit without command - Loque - 13.08.2011

You are not doing it, maybe some kind user can help me.


Re: Auto enter/exit without command - Meinstad - 13.08.2011

Read my post. It should help alot.


Re: Auto enter/exit without command - Chrillzen - 13.08.2011

Just make a new pickup, and on OnPlayerPickUpPickUp make it that when he enters the pickup it sets his player position and interior if needed.


Re: Auto enter/exit without command - Loque - 13.08.2011

I'm not good in coding.
By the way the piece of code is this:

http://pastebin.com/ZDT8GFzF