03.12.2012, 17:54
hello everyone,
can somebody help me whit a script to /open a gate?
thanks!
can somebody help me whit a script to /open a gate?
thanks!
new mygate; //
mygate = CreateObject(980, 1526.11, 2772.92, 12.58, 0.00, 0.00, -89.96); // the gate CreateObject(3749, 1525.15, 2772.92, 15.51, 0.00, 0.00, -90.42); // your map
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(subcmd, "o", true) == 0 || strcmp(subcmd, "open", true) == 0) // /o OR /open to open the GATE
{
MoveObject(mygate, 1526.1100, 2772.9199, 6.5800, 5);
return 1;
}
if(strcmp(subcmd, "c", true) == 0 || strcmp(subcmd, "close", true) == 0) // /c OR /close to close the GATE
{
MoveObject(mygate, 1526.11, 2772.92, 12.58, 5);
return 1;
}
return 0;
}
mygate = CreateObject(980, 1526.11, 2772.92, 12.58, 0.00, 0.00, -89.96); // the gate CreateObject(3749, 1525.15, 2772.92, 15.51, 0.00, 0.00, -90.42); // your map
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(subcmd, "o", true) == 0 || strcmp(subcmd, "open", true) == 0) // /o OR /open to open the GATE { MoveObject(mygate, 1526.1100, 2772.9199, 6.5800, 5); return 1; } if(strcmp(subcmd, "c", true) == 0 || strcmp(subcmd, "close", true) == 0) // /c OR /close to close the GATE { MoveObject(mygate, 1526.11, 2772.92, 12.58, 5); return 1; } return 0; }