Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: bamdude37 on February 07, 2010, 01:39:47 am

Title: Admin System Help
Post by: bamdude37 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.
Title: Re: Admin System Help
Post by: Boss 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.