SA-MP Forums Archive
Help with a 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)
+--- Thread: Help with a door (/showthread.php?tid=283326)



Help with a door - Sting. - 14.09.2011

Ok guys, Im trying to create a door for the LSPD.I can get the coordinates but the door is not set right.I need someone to give me coordinates for a object with any id for the front of LSPD.Ill change the id to the door id.But I need is the coordinates of a door infront.I need it for my RP Server.I really need someone to help.I mean not the front door, Im trying to create a object to block players from entering the LSPD.Only Cops can enter.I need coordinates to make the door straight so that players cant enter LSPD.


Re: Help with a door - Kaperstone - 14.09.2011

ok so use Gates:(idk any gate id so i just putting : gateid where the gate object it should be)
pawn Код:
// Somewhere in your FS or GM
new Gate;
// put this under OnGameModeInIt or OnFilterScriptInIt
Gate = CreateObject(gateid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance)
// a command useing ZCMD ( zcmd is requested )
CMD:opengate(playerid, params[])
{
    // Dont change the "Gate" to any other number or word!
    MoveObject(Gate, Float:X, Float:Y, Float:Z, Float:Speed);
    return 1;
}


CMD:closegate(playerid, params[])
{
    // Dont change the "Gate" to any other number or word!
    MoveObject(Gate, Float:X, Float:Y, Float:Z, Float:Speed);
    return 1;
}



Re: Help with a door - Sting. - 14.09.2011

A gate.I mean a door.I want the coordinates for like other RP Servers.The Police has a LSPD Door blocking so players cant enter.But about the gate thing, Ill try but it will be much easier if for a door.I tried its just the door is floating, its not even on the floor.


Re: Help with a door - =WoR=Varth - 14.09.2011

Use MTA to get the object position.


Re: Help with a door - Sting. - 14.09.2011

Wait.What is MTA? Multi Theft Auto?


Re: Help with a door - =WoR=Varth - 14.09.2011

Quote:
Originally Posted by RTR12
Посмотреть сообщение
Wait.What is MTA? Multi Theft Auto?
Yes, MTA Map Editor. Or use Jernejl's one.


Re: Help with a door - Sting. - 14.09.2011

Oh ok Thanks.