This function clears an .ini file.
- bool ClearIni( string file )
- file - The name of the .ini file which should be cleared
- function onPlayerCommand( player, cmd, text )
- if ( cmd == "clearini" )
- if ( text ) ClearIni( text );
This will clear the ini that is stated in the command.
The call onPlayerCommand was used in in this example. More info about this in the corresponding page.
These functions are provided by the official module lu_ini.