Posts: 815
Threads: 127
Joined: May 2011
Reputation:
0
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.
Posts: 3,004
Threads: 12
Joined: May 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;
}
Posts: 815
Threads: 127
Joined: May 2011
Reputation:
0
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.
Posts: 1,988
Threads: 17
Joined: Apr 2011
Reputation:
0
Use MTA to get the object position.
Posts: 815
Threads: 127
Joined: May 2011
Reputation:
0
Wait.What is MTA? Multi Theft Auto?