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


Messages In This Thread
2 Problems!! - by Hamza' - 28.09.2010, 16:41
Re: 2 Problems!! - by Hash [NL-RP] - 28.09.2010, 18:16
Re: 2 Problems!! - by Hamza' - 28.09.2010, 19:13

Forum Jump:


Users browsing this thread: 2 Guest(s)