20.03.2011, 06:09
pawn Код:
new gate1;
new gate2;
public OnFilterScriptInit()
{
gate1 = CreateObject(980,923.155,-1225.358,18.3,0.0,0.0,90.000);
gate2 = CreateObject(980,923.256,-1216.99,18.3,0.0,0.0,90.000);
return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/redopen", cmdtext, true, 10) == 0)
{
MoveObject(gate1, 923.155,-1225.358,7.3,3.0);
MoveObject(gate2, 923.256,-1216.99,7.3,3.0);
SendClientMessage(playerid,COLOR_LIGHTCYAN,"Red Blood'z Gate Is Open.Please Use /redclose to close gate");
return 1;
}
if (strcmp("/redclose", cmdtext, true, 10) == 0)
{
MoveObject(gate1, 923.155,-1225.358,18.3,3.0);
MoveObject(gate2, 923.256,-1216.99,18.3,3.0);
SendClientMessage(playerid,COLOR_LIGHTCYAN,"Red Blood'z Gate is Closed.Thanks");
return 1;
}
return 0;
}
ps: bijoyekuza, if I`m not wrong, he wants 2 gates to be opened at the same time with one command.