Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: bamdude37 on February 06, 2010, 11:39:47 PM

Title: Admin System Help
Post by: bamdude37 on February 06, 2010, 11:39:47 PM
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, 01: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.