16.06.2009, 18:15
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/aao", true) == 0) {
MoveObject(gate,-2038.645996,-80.268478,35.359375,2.00);
SendClientMessage(playerid, COLOR_RED, "The Gate is opening now.");
return 1;
}
if(strcmp(cmdtext, "/aac", true) == 0) {
MoveObject(gate,-2044.336182,-80.107742,35.210938,2.00);
SendClientMessage(playerid, COLOR_RED, "The Gate is closing now.");
return 1;
}
if(strcmp(cmdtext, "/aao", true) == 0) {
MoveObject(gate2,-2055.712646,-80.279343,35.359375,2.00);
SendClientMessage(playerid, COLOR_RED, "The Gate is opening now."); // change 2nd "/aao" to something else you already used one
return 1;
}
if(strcmp(cmdtext, "/aac", true) == 0) {
MoveObject(gate2,-2049.752686,-80.108330,35.210938,2.00);
SendClientMessage(playerid, COLOR_RED, "The Gate is closing now."); // change 2nd "/aac" to something else you already used one
}
return 1;
}
return 0;
}
}