Filterscript isn't working
#1

How come my filterscript isn't working? I'm trying it on my gamemode i'v started from scratch but the cmds arnt working, the map works but the command dont work
Reply
#2

Are you using zcmd?
Reply
#3

Yes I am
Reply
#4

pawn Code:
public OnFilterScriptInit()
{
    print("Filterscript loaded!");
    return 1;
}
Add the print to your filterscript init, to check if it loads
Reply
#5

It's loading because the map in it is loading, just the cmds dont work, i keep getting Server: Unknown Command, Yes I have Return 1;
Reply
#6

Show one of the commands that aint working
Reply
#7

Do you use zcmd for all commands?
Reply
#8

Yes, I use Zcmd for everything
Edit:

pawn Code:
CMD:entergate(playerid,params[])
    {
        if(Groups[Player[playerid][Group]][CommandTypes] == 1 && Player[playerid][Group] != 0 || Groups[Player[playerid][Group]][CommandTypes] == 4)
        IsPlayerInRangeOfPoint(playerid,2.0,135.1547,1946.6525,19.3597);
        SetPlayerPosWithVehicle(playerid,135.0795,1936.3048,19.2716);
        return 1;
    }
Reply
#9

Show one of the commands that aint working..
Reply
#10

Quote:
Originally Posted by Azzeto
View Post
Yes, I use Zcmd for everything
Edit:

pawn Code:
CMD:entergate(playerid,params[])
    {
        if(Groups[Player[playerid][Group]][CommandTypes] == 1 && Player[playerid][Group] != 0 || Groups[Player[playerid][Group]][CommandTypes] == 4)// .......
        IsPlayerInRangeOfPoint(playerid,2.0,135.1547,1946.6525,19.3597);// ???
        SetPlayerPosWithVehicle(playerid,135.0795,1936.3048,19.2716);
        return 1;
    }
People use IsPlayerInRangeOfPoint for checking condition.
And your if statement is return nothing.

pawn Code:
CMD:entergate(playerid,params[])
{
    if(Groups[Player[playerid][Group]][CommandTypes] == 1 && (Player[playerid][Group] != 0 || Groups[Player[playerid][Group]][CommandTypes] == 4) && IsPlayerInRangeOfPoint(playerid,2.0,135.1547,1946.6525,19.3597));
    { SetPlayerPosWithVehicle(playerid,135.0795,1936.3048,19.2716);}
    return 1;
}
To check if your zcmd is working:
pawn Code:
CMD:test(playerid,params[])
{
   SendClientMessage(playerid,0xFFFFFF,"Working");
   return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)