help with gate
#1

i got a problem my 2nd gate moves away to nowhere not to the place in the script how do i fix that

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/xsd", true) == 0)
{
MoveObject(Gate, 249.687729, 433.796722, 0.0898772, 3.00);
SendClientMessage(playerid, 0x00ff00, "Gate Down");
return 1;
}
if(strcmp(cmdtext, "/xsu", true) == 0)
{
MoveObject(Gate, 249.692200, 433.822876, 57.365799, 3.00);
SendClientMessage(playerid, 0x00ff00, "Gate Up");
return 1;
}
if(strcmp(cmdtext, "/xsro", true) == 0)
{
MoveObject(Roof, 18450, 283.639709, 354.576416, 3.00);
SendClientMessage(playerid, 0x00ff00, "Roof Open");
return 1;
}
if(strcmp(cmdtext, "/xsrc", true) == 0)
{
MoveObject(Roof, 18450, 277.404968, 369.266449, 3.00);
SendClientMessage(playerid, 0x00ff00, "Roof Closed");
return 1;
}
return 0;
}
Reply
#2

it moves to the coordinates.
Mabye your coordinates are wrong.
Reply
#3

recheck Z coordinate i see its too big.
im lookin on your firs gate moving coordinate and gate Z is 0
Second movng it sets to 57
Third - to 300
Reply
#4

Yes, they are.

Quote:
Originally Posted by pleiter
MoveObject(Roof, 18450, 283.639709, 354.576416, 3.00);
This is wrong in /xsro and /xsrc
Reply
#5

o i see stupid me

18450 is the object id

thx
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)