PD Gate Problem - 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: PD Gate Problem (
/showthread.php?tid=351631)
PD Gate Problem -
trulis - 16.06.2012
Why isn't the gate closing properly ?
Re: PD Gate Problem -
Edin Black - 16.06.2012
MoveDynamicObject
Re: PD Gate Problem -
[NWA]Hannes - 16.06.2012
Go to the CreateObject of the gate, and after the Float:Speed in MoveObject, be sure to add the rotation coordinates if you changed them in the object
Re: PD Gate Problem -
trulis - 16.06.2012
This is all the code for that gate, what i need to change ?
pawn Код:
vamapd = CreateObject(980, 1542.350098, -1627.757568, 15.156204, 0.0000, 0.0000, 90.0000);//vama lspd
pawn Код:
if(PlayerToPoint(10, playerid,1538.7560,-1628.0847,13.3828) || PlayerToPoint(10, playerid,1545.9342,-1627.7917,13.3828))
{
MoveObject(vamapd, 1542.350098, -1627.757568, 19.731131, 4.0);
SendClientMessage(playerid, COLOR_LIGHTRED, "*The gate of LSPD has been opened and close in 5 second(s).");
SetTimer("vamapdclose",3500, false);
return 1;
}
pawn Код:
forward vamapdclose();
public vamapdclose()
{
MoveObject(vamapd, 1542.350098, -1627.757568, 15.156204, 3.0);
return 1;
}
Re: PD Gate Problem -
trulis - 16.06.2012
anyone ?
Re: PD Gate Problem -
GtasaPoliceModz - 17.06.2012
I have the sam problem everytime my gate opens I need to sapm the command and when it moves it moves out of them map any help ?
Re: PD Gate Problem -
trulis - 17.06.2012
does anynone know what to do ?