• Welcome to Vice City Multiplayer.
 

Admin System Help

Started by bamdude37, February 06, 2010, 10:39:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bamdude37

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.

Boss

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.