07.08.2011, 13:24
if u r using the doors in filterscript u need to define the FS and u have to put the objects under OnFilterScriptInit
well here 1 cmd to open and close with msgs
On Top Of Script
Under OnFilterScriptInit
And Here your Command
well here 1 cmd to open and close with msgs
On Top Of Script
pawn Код:
new Door;
new DoorStatus;
pawn Код:
Door = CreatObject(980,1534.5843505859, -1451.3070068359,15.159576416016);
pawn Код:
if(strcmp(cmdtext, "/door", true) == 0)
{
if(DoorStatus == 0)
{
MoveObject(Door,1534.5843505859,-1451.3070068359,15.159576416016,3.0);
SendClientMessage(playerid, COLOR_RED, "Doos Is Open");
GateStatus = 1;
return 1;
}
if(DoorStatus == 1)
{
MoveObject(Door,1545.5843505859,-1451.3070068359,15.159576416016, 3.0);
SendClientMessage(playerid, COLOR_RED, "Doos Closed");
GateStatus = 0;
}
return 1;
}