28.09.2010, 16:41
Alright, I got that command, it doesn't work tough, wondering what's reason
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!
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;
}
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!