SA-MP Forums Archive
Remove Label CMD - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Remove Label CMD (/showthread.php?tid=506967)



Remove Label CMD - mechateam - 15.04.2014

Hey,i wanna make a RemoveLabel CMD for players. im not a "Scripter" so if anyone can help me that would be nice.
Its the Addlabel Command.
Код:
 CMD:add3dlabel(playerid, params[])
{
//	if(!IsPlayerAdmin(playerid)) return 0;
	new Float:X, Float:Y, Float:Z;
	if(unformat(params, "s[128]",params)) return SendClientMessage(playerid, COLOR_RED, "[USAGE] /Add3DLabel < Description >");
	GetPlayerPos(playerid, X, Y, Z);

	AddLabelToFile(LABEL_FILE_NAME, params, X, Y, Z);
	CreateDynamic3DTextLabel(params, ForRndColorLabel[random(sizeof(ForRndColorLabel))], X, Y, Z, 100.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
	format(Msg, sizeof(Msg), "A new 3D Text Label has been dynamically added. Description: \"%s\".",params);
	return SendClientMessage(playerid, COLOR_GREEN, Msg);
}



Re: Remove Label CMD - ChristianIvann09 - 15.04.2014

This

https://sampwiki.blast.hk/wiki/Delete3DTextLabel