Author Topic: Admin System Help  (Read 2696 times)

0 Members and 1 Guest are viewing this topic.

Offline bamdude37

  • Street Thug
  • *
  • Posts: 2
    • View Profile
Admin System Help
« on: February 07, 2010, 01:39:47 am »
I'm currently developing an admin system, and I am stuck on the register and login.

I want the user filed to have only two lines
Password = blahblahblah
Admin = 0

So far when you type /c register whatever it will make a new file in
/scriptfiles/users/yourusername.txt and it has the password line working.

What I need is help making another line for the admin level and I need help loading the files and using them for commands.
« Last Edit: February 08, 2010, 01:27:29 pm by Boss »

Offline Boss

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 229
  • Boss
    • View Profile
    • TDH Clan Site
Re: Admin System Help
« Reply #1 on: February 07, 2010, 03:51:48 pm »
Why do you need multi lines? Just separate the data with spaces e.g. "password admin kills deaths" etc and then read them one by one using strtok.