17.05.2009, 04:53
I am making a parking filterscript where you can register to the parking and it saves that to an ini file with the name of the player who registered, and then you can open the door if you are registered.
I only need how to put the ini file in the filterscript and how it saves to the file and use a command if you are registered in the ini file.
These are only examples, if you know how to make working with an ini file please edit these code
Sorry my bad english
I only need how to put the ini file in the filterscript and how it saves to the file and use a command if you are registered in the ini file.
These are only examples, if you know how to make working with an ini file please edit these code
Код:
if (strcmp("/register", cmdtext, true, 10) == 0) { // Here put the code when the name is saved to the log. return 1; }
Код:
if (strcmp("/gate", cmdtext, true, 10) == 0) { // And here put if the name is registered on the ini file. return 1; }