Filterscript aint working
#6

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/wizdoor", true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 10.0, 321.10000610, -1188.59997559, 76.30000305))
        {
            MoveObject(Gate1a, 321.10000610, -1188.59997559, 76.30000305, 1);
            SetTimer("CloseGate1AtoD", 10000, false);
        }
        else SendClientMessage(playerid, Error_Color, " You Are Not Near Wiz House.");
    }
     return 0; // it was 1, I changed it to 0 as it is a filterscript
}
Edit: commands in filterscripts look like that
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
         if(.........)
         {
                  // your command stuff here
                  return 1;
         }
         return 0; // OnPlayerCommandText should return 0 in filterscripts
}
Reply


Messages In This Thread
Filterscript aint working - by miley1 - 18.05.2012, 12:27
Re: Filterscript aint working - by emokidx - 18.05.2012, 12:28
Re: Filterscript aint working - by miley1 - 18.05.2012, 12:29
Re: Filterscript aint working - by milanosie - 18.05.2012, 12:31
Re: Filterscript aint working - by Flake. - 18.05.2012, 12:31
Re: Filterscript aint working - by [KHK]Khalid - 18.05.2012, 12:38

Forum Jump:


Users browsing this thread: 1 Guest(s)