15.04.2014, 12:44
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.
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); }