SAMP Gate Problem it moves with wrong rotation.
#1

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
Reply
#2

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);
Reply
#3

where??
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)