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

SetPlayerAircraftHeight

GtakillerIV edited this page Dec 17, 2014 · 5 revisions

SetPlayerAircraftHeight

Sets the max achievable height gain able with an aircraft

tip Default value is 800.00


Parameters

playerid

The player's id.

float:height

The new height limit.

Returns

    0 if player is not connected

Usage

CMD:setmaxheight(playerid, params[])
{
	//If the player has the SA-MP+ plugin installed
	if(IsUsingSAMPP(playerid))
	{
	    new Float:height;
	    //If the entered parameters are incorrect, show him a message displaying the correct ones
	    if(sscanf(params, "f", height)) return SendClientMessage(playerid, -1, "Correct usage: /setmaxheight height");

	    //Set the max gainable height with a jetpack
	    SetPlayerAircraftHeight(playerid, height);

	    SendClientMessage(playerid, -1, "New max height set!");
	}
	else
	{
		SendClientMessage(playerid, -1, "You need the SA-MP+ plugin");
	}

    return 1;
}

See also

GetPlayerAircraftHeight

GetPlayerJetpackHeight

SetPlayerJetpackHeight

Clone this wiki locally