23.12.2011, 01:26
pawn Код:
new Gate; // put this somewhere at the top of your script
public OnFilterScriptInit()
{
Gate = CreateObject(); // Put the coords of the gate... the closed one...
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/dpdopen", true) == 0) (;
MoveObject(Gate, 648.79998779,-624.79998779,17.10000038, 1);
SendClientMessage(playerid, Blue, "DPD Gate is opening.");
return 1;
}
if(strcmp(cmd, "/dpdclose", true) == 0) (;
MoveObject(Gate, 648.90002441,-627.40002441,17.20000076. 1);
SendClientMessage(playerid, Blue, "DPD Gate is closing.");
return 1;
}