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

SetWaveHeightForPlayer

GtakillerIV edited this page Dec 17, 2014 · 2 revisions

SetWaveHeightForPlayer

Sets a player's wave height

tip Default value is around 0.00 - 1.00


Parameters

playerid

The player's id.

float:height

The height of the waves.

Returns

    0 if the player is not connected

Usage

CMD:setwaveheight(playerid, params[])
{
	//If the player has the SA-MP+ plugin installed
	if(IsUsingSAMPP(playerid))
	{
		new Float:waveHeight;
		
		if(sscanf(params, "f", waveHeight)) return SendClientMessage(playerid, -1, "Correct usage: /setwaveheight height");

		SetWaveHeightForPlayer(playerid, waveHeight);
	}
	//If not
	else
	{
		SendClientMessage(playerid, -1, "You need the SA-MP+ plugin");
	}

	return 1;
}

See Also

SetWaveHeightForAll

ToggleWaterBuoyancy

TogglePlayerInfiniteOxygen

Clone this wiki locally