How do I make a Dynamic Door System?
#1

Hello, their was a tutorial Once, where you could make a door system with /door, But I cant find it, so could someone help me make a door similar to that one only the player uses /enter and /exit

Thanks,
Seanny
Reply
#2

okay this is a little bit of LOgic on how to do this..

now your Door is at Co-ordinates X , Y , Z
pawn Код:
OnGameModeInit()
{
SetTimer("DoorCheck",10,1)
}
forward DoorCheck();
public DoorCheck()
{
if(IsPlayerInRangeOfPoint(X,Y,Z))
{
 avariable = 1; // already defined before
}
else
{
avariable = 0;
}
}
// now go to your command system..
// and make new command /enter
// for example its dcmd command

dcmd_enter(playerid,params[])
{
 #pragma blah blah
if(avariable == 1)
{
// The interior you want here
SetPlayerInterior(playerid,@);
SetPlayerPos(playerid,a,b,c); // ABC co-ordinates inside the interior
}
//similarly you can do it for exit
Reply
#3

What I really Meant was a Dynamic Door System
Reply
#4

Elaborate please ..
Reply
#5

Door System which admins make doors ingame without needing a GMX
Reply
#6

https://sampforum.blast.hk/showthread.php?tid=281066

You don't make the doors in-game, how ever, you just get the positions, add them to the file, save the file, and type the reload command (which is later on in the tutorial).
Reply
#7

Quote:
Originally Posted by Jack_Leslie
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=281066

You don't make the doors in-game, how ever, you just get the positions, add them to the file, save the file, and type the reload command (which is later on in the tutorial).
Well...It aint what I was expecting
Reply
#8

Quote:
Originally Posted by seanny
Посмотреть сообщение
Well...It aint what I was expecting
It is what you asked for, lol.
Reply
#9

What he means is how to do a Dynamic Building System...
Reply
#10

Quote:
Originally Posted by iNorton
Посмотреть сообщение
What he means is how to do a Dynamic Building System...
What I gave him is part dynamic, it just doesn't have the automatic commands like "adddoor" or "removedoor". It just requires 5 more minutes work, it's still dynamic.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)