10.05.2012, 14:59
hi guys I did a system to create dynamic labels
the achievement as you would create but to make a command / clear label
this is the command to create the label
the achievement as you would create but to make a command / clear label
this is the command to create the label
pawn Код:
CMD:crearlabel(playerid, params[])
{
if (Info[playerid][pAdmin] >= 99999)
{
new Msg[256];
new Float:X, Float:Y, Float:Z;
if(unformat(params, "s[128]",params)) return SendClientMessage(playerid, COLOR_YELLOW, "[USO] /createlabel < 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), "New text 3D: \"%s\".",params);
return SendClientMessageEx(playerid, COLOR_YELLOW, Msg);
}
else return SendClientMessage(playerid,-1,"No autorize");
}