SA-MP Forums Archive
A freaking door - 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: A freaking door (/showthread.php?tid=274584)



A freaking door - Jimmeh! - 06.08.2011

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]


Re: A freaking door - Jimmeh! - 06.08.2011

bump please help!!


Re: A freaking door - =WoR=Varth - 06.08.2011

You mean you want a movable door?


Re: A freaking door - Jimmeh! - 06.08.2011

Yes, one you can open and close.


Re: A freaking door - =WoR=Varth - 06.08.2011

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


Re: A freaking door - [bs]_lancer - 06.08.2011

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



Re: A freaking door - =WoR=Varth - 06.08.2011

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.


Re: A freaking door - [bs]_lancer - 06.08.2011

hmm k then i think i got him wrong.