A freaking door
#1

I.. need.. help..

Is it impossible to find a script for a door? JUST a simple script with /open and /close

/open - CreateObject(door, X ,x ,x ,x ,x 90) [90 as in 90 degree tilt]
/close - CreateObject (door, X,x,x,x ,x 0 ) [0 as in the door is now closed]
Reply
#2

bump please help!!
Reply
#3

You mean you want a movable door?
Reply
#4

Yes, one you can open and close.
Reply
#5

https://sampforum.blast.hk/showthread.php?tid=151452
Reply
#6

Quote:
Originally Posted by varthshenon
Посмотреть сообщение

i think hes talking about MoveObject..

well take this ..

On top of script
pawn Код:
new door;
new GateStatus;
Under OnGameModtInt
pawn Код:
door = CreatObject(X,Y,Z);
and here the cmd
pawn Код:
if(strcmp(cmdtext, "/door", true) == 0)
    {
    if(GateStatus == 0)
        {
        MoveObject(door, Open Cords, 3.0);
        GateStatus = 1;
        return 1;
        }
    if(GateStatus == 1)
    {

    MoveObject(door, Closing Cords, 3.0);
    GateStatus = 0;
    }
    return 1;
    }
Reply
#7

Quote:
Originally Posted by Jimmeh!
Посмотреть сообщение
I.. need.. help..

/open - CreateObject(door, X ,x ,x ,x ,x 90) [90 as in 90 degree tilt]
/close - CreateObject (door, X,x,x,x ,x 0 ) [0 as in the door is now closed]
Quote:
Originally Posted by [bs]_lancer
Посмотреть сообщение
i think hes talking about MoveObject..
He only want to change the rotation.
Reply
#8

hmm k then i think i got him wrong.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)