write file
PHP Code:
|
Re: write file
Use the command that already exists: amx_addadmin. If that doesn't do everything you want then I think what you're doing is what you need to do.
And, what is your question about the newline character? |
Re: write file
well the first one who bought VIP from the shop, wasn't added under the last person on users.ini and after him..
i asked because i saw that PHP Code:
|
Re: write file
Add a ^n to the beginning of the content string in the format function.
set_user_flags() will enable a user's flags in memory (which means it will only last during the current map). So, if you set the "t" flag (with ADMIN_LEVEL_H) then that player will have that flag during the current map. If that's all you want then you can just do that but to make it persistent, writing it to a file so that it gets loaded later is the way to go. However, depending on what you're trying to acheive, you may need to make sure that they keep the "z" flag so that they don't get other admin powers. |
Re: write file
Quote:
|
| All times are GMT -4. The time now is 15:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.