SA-MP Forums Archive
I need help - 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: I need help (/showthread.php?tid=341370)



I need help - XxX(cena)XxX - 10.05.2012

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

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");
}