Usage

Syntax: getplatform();
Returns string.

Explanation

Equivalent to player.platform. Returns the platform that the current player is using.

Possible return values are "win", "mac", "linux" and "iphone".

Example

function onCreated()
{
	if (getplatform() == "mac")
  	{
		echo("You are using a Mac.");
  	}
}

... Will output "You are using a Mac." in RC chat (serverside) or the F2 window (clientside) if the player logs in using a Mac.

Categories

CategoryFunctionClientside
CategoryFunctionServerside

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki