Problem with an enter command
#1

Hello, this is how my commant looks like:
pawn Код:
if(strcmp(cmd, "/penter", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
        if(PlayerInfo[playerid][pFaction] == 6)
            {
              if(PlayerToPoint(5.0,playerid, 2695.6880, -1704.6300, 11.8438))
                {
                    if(IsPlayerInAnyVehicle(playerid))
                    {
                    new tmpcar = GetPlayerVehicleID(playerid);
                        SetVehiclePos(tmpcar, 3043.7874,-1964.9265,10.9638);
                        SetPlayerPos(playerid, 3043.7874,-1964.9265,10.9638);
                        //SendClientMessage(playerid, 0xFFFFFFFF, "Acb");
                        //  SetPlayerPos(playerid, 264.5743,77.5118,1001.0391);
                    }
                else
                    {
                        SetPlayerPos(playerid, 268.0903,77.6489,1001.0391);
                    }
                    SetPlayerInterior(playerid,0);
                    SetPlayerVirtualWorld(playerid,0);
            }
                else
            {
                SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command");
            }
        }
        }
        return 1;
    }
And the problem is that this message comes up when I try to enter:
pawn Код:
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command");
Thanks
Reply
#2

As you make the command, its says that you need to be in faction 6 to use it. So are you in faction 6?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)