/enter and /exit
#1

How to make door with /enter and /exit?
Reply
#2

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!
Reply
#3

TNX! I love you man +1rep!!!!
Reply
#4

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

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;
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)