SA-MP Forums Archive
/enter and /exit - 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)
+--- Thread: /enter and /exit (/showthread.php?tid=396794)



/enter and /exit - kruzer - 02.12.2012

How to make door with /enter and /exit?


Re: /enter and /exit - goviscrap - 02.12.2012

There are a Few way's you can do that.. Im using a really great FilterScript that makes it for you
Or you add them manually into your Gamemode

Try THIS!


Re: /enter and /exit - kruzer - 02.12.2012

TNX! I love you man +1rep!!!!


Re: /enter and /exit - goviscrap - 02.12.2012

No problem
PM me if you need more help
Thanks for the +rep!!


Re: /enter and /exit - Dark Killer - 02.12.2012

Its better to use pickups as checkpoints like
Quote:

new exit;

exit = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == exit)
{
SetPlayerPos(playerid,x,y,z)
SetPlayerInterior(playerid,0) //change 0 to the interior you want
}

or
Quote:

new exit;

exit = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);

public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(enter,5,cmdtext);
return 1;
}
dcmd_enter(playerid,params[])
{
if(PlayerToPoint(1.0,playerid, Float:X, Float:Y, Float:Z) //here x,y,z should be to the point of pickup
{
SetPlayerPos(playerid,x,y,z);//when player types /enter player will be tp to the x,y,z that you will specify
SetPlayerInterior(playerid,0);//
return 1;
}
return 1;
}