09.10.2010, 19:05
i whanted to make 2 gates but first i maked 1 but then i wanted to add in the second 1 but that wont work pleas help me
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/open1", true) == 0)
{
MoveObject(Gate, 249.687729, 433.796722, 0.0898772, 3.00);
SendClientMessage(playerid, 0x00ff00, "Gate Down");
return 1;
}
if(strcmp(cmdtext, "/close1", true) == 0)
{
MoveObject(Gate, 249.692200, 433.822876, 57.365799, 3.00);
SendClientMessage(playerid, 0x00ff00, "Gate Up");
return 1;
}
if(strcmp(cmdtext, "/open2", true) == 0)
{
MoveObject(Gate, 18450, 277.404968, 369.266449, 3.00);
SendClientMessage(playerid, 0x00ff00, "Roof Open");
return 1;
}
if(strcmp(cmdtext, "/close2", true) == 0)
{
MoveObject(Gate, 18450, 277.404968, 369.266449, 3.00);
SendClientMessage(playerid, 0x00ff00, "Roof Closed");
}
i know open and closed are still the same
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/open1", true) == 0)
{
MoveObject(Gate, 249.687729, 433.796722, 0.0898772, 3.00);
SendClientMessage(playerid, 0x00ff00, "Gate Down");
return 1;
}
if(strcmp(cmdtext, "/close1", true) == 0)
{
MoveObject(Gate, 249.692200, 433.822876, 57.365799, 3.00);
SendClientMessage(playerid, 0x00ff00, "Gate Up");
return 1;
}
if(strcmp(cmdtext, "/open2", true) == 0)
{
MoveObject(Gate, 18450, 277.404968, 369.266449, 3.00);
SendClientMessage(playerid, 0x00ff00, "Roof Open");
return 1;
}
if(strcmp(cmdtext, "/close2", true) == 0)
{
MoveObject(Gate, 18450, 277.404968, 369.266449, 3.00);
SendClientMessage(playerid, 0x00ff00, "Roof Closed");
}
i know open and closed are still the same