2 Problems!!
#1

Alright, I got that command, it doesn't work tough, wondering what's reason
pawn Код:
if (strcmp(cmdtext, "/changepassword1", true)==0)
    {
        new string[128];
        format(string, sizeof(string), "%s", cmdtext[3]);
        new File:Pass1=fopen("Password1.txt", io_write);
        fwrite(Pass1, string);
        fclose(Pass1);

        return 1;
    }
However..
I'm making small server, that NOONE can log in unless if he writes the ONE password which is in the file "Password1" which it is can be changed if someone writes /changepassword as stated above..

I want someone to make me some lines when in "OnPLayerConnect"
And don't worry about postion, or toogleplayercontrable, or smthing, just lines to get server detects a word in "password1" file, and allow the player connect in if he wrote that password.

THANKS!
Reply
#2

Use Dini, i've never seen anyone using a .txt
Reply
#3

Then tell me the script, or make it to me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)