10.10.2010, 13:25
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;
}
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;
}