2 Quick questions.
#2

1. Add return 1; at the end of the command.

pawn Код:
if(strcmp(cmd, "/ah", true) == 0)
    {
      if (dini_Int(file, "AdminLevel") >= 1) {
              SendClientMessage(playerid, BLUE, "[[  List of admin commands  ]]");
              SendClientMessage(playerid, COLOR, "[[Level 1 admin: /kick ]]");
              SendClientMessage(playerid, COLOR, "[[Level 2 admin: /ban /ip ]]");
              SendClientMessage(playerid, COLOR, "[[Level 3 admin: /givegun /setcash /sethealth /setarmour /setscore ]]");
              SendClientMessage(playerid, COLOR, "[[Level 4 admin: /noneatm ]]");
              SendClientMessage(playerid, COLOR, "[[Level 5 admin: /GMX ]]");
      }
      else
        SendClientMessage(playerid, COLOR, "You our not autherized to use this command.");
        return 1;
    }
2.

pawn Код:
format(file,sizeof(file),"Accounts/%s.ini",name);
Reply


Messages In This Thread
2 Quick questions. - by whereschris - 11.01.2010, 19:55
Re: 2 Quick questions. - by MadeMan - 11.01.2010, 20:02
Re: 2 Quick questions. - by whereschris - 11.01.2010, 20:08
Re: 2 Quick questions. - by Finn - 11.01.2010, 20:13
Re: 2 Quick questions. - by whereschris - 11.01.2010, 20:15

Forum Jump:


Users browsing this thread: 1 Guest(s)