22.03.2015, 02:12
pawn Код:
new Text3D:LABEL[MAX_PLAYERS];
new Float:LX[MAX_PLAYERS];
new Float:LY[MAX_PLAYERS];
new Float:LZ[MAX_PLAYERS];
CMD:createlabel(playerid,params[]){
new string[300];
GetPlayerPos(playerid, LX[playerid], LY[playerid], LZ[playerid]);
if(isnull(params))return SendClientMessage(playerid,0xFFFFFFFF,"{BABABA}Uso: {FFFFFF}/createlabel <text>");
format(string, sizeof(string), "{BABABA}Vocк criou a label {FFFFFF}%s",params);
SendClientMessage(playerid, cinza, string);
LABEL[playerid] = Create3DTextLabel(params,0xFFFFFFFF, LX[playerid], LY[playerid], LZ[playerid],20,0,0);
Update3DTextLabelText(LABEL[playerid], 0xFFFFFFFF, params);
return 1;}
CMD:eraselabel(playerid,params[]){
Delete3DTextLabel(Text3D:LABEL[playerid]);
SendClientMessage(playerid, cinza, "Label apagada");
return 1;}