SA-MP Forums Archive
SAMP Gate Problem it moves with wrong rotation. - 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: SAMP Gate Problem it moves with wrong rotation. (/showthread.php?tid=500359)



SAMP Gate Problem it moves with wrong rotation. - Steveee - 12.03.2014

I have a big problem with my own SAMP Server. All the Gates, when I type in "/otor" rotates the gate and stopped at the wrong position.

Pawno Script:

forward OamtGateClose();
new OamtGate;//OamtTor
public OamtGateClose()
{
MoveObject(OamtGate,-1754.78466797,1377.37426758,8.96089172,3.0);
return 1;
OamtGate = CreateObject(980,-1754.78466797,1377.37426758,8.96089172,0.00000000, 0.00000000,145.9999694; //object(barrierturn) (1)

if(strcmp(cmdtext,"/otor",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
{
if(IsPlayerInRangeOfPoint(playerid,50,-1783.28002930,1390.56005859,6.90000010))
{
MoveObject(OamtGate,-1754.78466797,1377.37426758,-1.96089172,3.0);
SetTimer("OamtGateClose",5000,0);
return 1;
}
else
{
SendClientMessage(playerid,COLOR_GRAD2,"Distanz deiner Fernsteuerung zum Tor ist zu groЯ!");
return 1;
}
}
else SendClientMessage(playerid,COLOR_GRAD2,"Du bist kein Mitglied des Los Santos Ordnungsamt!");
}

I hope you can help me


Re: SAMP Gate Problem it moves with wrong rotation. - Matess - 12.03.2014

Try this:

pawn Код:
MoveObject(OamtGate,-1754.78466797,1377.37426758,8.96089172,3.0,0.00000000, 0.00000000,145.9999694);
MoveObject(OamtGate,-1754.78466797,1377.37426758,-1.96089172,3.0,0.00000000, 0.00000000,145.9999694);



Re: SAMP Gate Problem it moves with wrong rotation. - Steveee - 12.03.2014

where??