[Help] Moveable Gate
#1

So i got these script from Raven's Role play but when ever i try to open the gate with /go it says you don't have a controller

Код:
#include <a_samp>

#define FILTERSCRIPT
new repogates1;

public OnFilterScriptInit()
{
    print("\n******************************************************");
    print("*                                                    *");
    print("* Simple Movable Gates Filterscript                  *");
    print("*                                                    *");
    print("******************************************************\n");

    repogates1 = CreateObject(968,-495.59960938,-562.89941406,25.50000000,0.00000000,90.00000000,0.00000000);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/go", true)){
          if(IsPlayerInRangeOfPoint(playerid, 15, 785.09997558594, -1152.4000244141, 25.299999237061)){
            MoveObject(repogates1, 785.40002441406, -1162.9000244141, 25.39999961853, 3.0, 0.0, 0.0, 270);
            return 1;
        }
    }
    else if(strcmp(cmdtext, "/close", true)){
        if(IsPlayerInRangeOfPoint(playerid, 15, 785.09997558594, -1152.4000244141, 25.299999237061)){
            MoveObject(repogates1, 785.09997558594, -1152.4000244141, 25.299999237061, 3.0, 0.0, 0.0, 270);
            return 1;
        }
    }
    return 0;
}
public OnFilterScriptExit()
{
    return 1;
}
Reply
#2

Try changing the command /go to something different, it is most likely interfering with the Raven's Gamemode
Reply
#3

If you are using the filterscript in a gamemode that has a /go cmd which I can guarantee you do have. Rename the cmd and try again!
Reply
#4

I tried switching the command from /go to /towgate it still didn't work
Reply
#5

Use CTRL + F in PAWN and look for the "controller" part you're talking about
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)