This repository has been archived by the owner on Feb 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
SetPlayerAircraftHeight
GtakillerIV edited this page Dec 17, 2014
·
5 revisions
Sets the max achievable height gain able with an aircraft
Default value is 800.00
playerid
The player's id.
float:height
The new height limit.
0 if player is not connected
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