Scripting/Server/Functions/GetScripts

(v0.4.6+) Returns an array with the names of the loaded script folders.

Syntax

GetScripts()

Returns

array

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "getscripts" )
	{
		local result = GetScripts();
		MessagePlayer( "GetScripts returned: " + result, player );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Server information and administration

Categories: Server functions | Server information and administration