This repository was archived by the owner on Feb 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
SetWaveHeightForPlayer
GtakillerIV edited this page Dec 17, 2014
·
2 revisions
Sets a player's wave height
Default value is around 0.00 - 1.00
playerid
The player's id.
float:height
The height of the waves.
0 if the player is not connected
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