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

GetPlayerAircraftHeight

GtakillerIV edited this page Dec 14, 2014 · 3 revisions

GetPlayerAircraftHeight

Returns the max achievable height gainable with an aircraft.


Parameters

playerid

The player's id.

Returns

    float:height

Usage

CMD:getmaxheight(playerid, params[])
{
	//If the player has the SA-MP+ plugin installed
	if(IsUsingSAMPP(playerid))
	{
	    new string[128];

	    format(string, sizeof(string), "The max gain able height with an aircraft is: %f", GetPlayerAircraftHeight(playerid));

	    SendClientMessage(playerid, -1, string);

	}
	else
	{
		SendClientMessage(playerid, -1, "You need the SA-MP+ plugin");
	}

    return 1;
}

See also

SetPlayerAircraftHeight

GetPlayerJetpackHeight

SetPlayerJetpackHeight

Clone this wiki locally