I doesn't get help here!!! (need help with command explain)
#3

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

pawn Код:
new Door;
new DoorStatus;
Under OnFilterScriptInit
pawn Код:
Door = CreatObject(980,1534.5843505859, -1451.3070068359,15.159576416016);
And Here your Command

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;
    }
Reply


Messages In This Thread
I doesn't get help here!!! (need help with command explain) - by igor_andrusenko - 07.08.2011, 12:48
Re: I doesn't get help here!!! (need help with command explain) - by HuSs3n - 07.08.2011, 13:05
Re: I doesn't get help here!!! (need help with command explain) - by [bs]_lancer - 07.08.2011, 13:24

Forum Jump:


Users browsing this thread: 1 Guest(s)