Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

OnPlayerOpenPauseMenu

GtakillerIV edited this page Nov 14, 2014 · 3 revisions

OnPlayerOpenPauseMenu

Gets called when a player opens the pause menu


Parameters

playerid

The player's id.

Usage

public OnPlayerOpenPauseMenu(playerid)
{
	new name[24], string[128];
	GetPlayerName(playerid, name, sizeof(name));

	format(string, sizeof(string), "%s went to the main menu", name);
	SendClientMessageToAll(-1, string);
}

See also

TogglePauseMenuAbility

IsPlayerInPauseMenu

Callbacks

OnPlayerClosePauseMenu

OnPlayerEnterPauseSubmenu

Clone this wiki locally