[Ajuda] Ajuda Label
#4

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;}
Este code й bem simples, sу nгo tem salvamento. Toda vez que o servidor reinicia tem que criar novamente..
Reply


Messages In This Thread
Ajuda Label - by BARDEK - 21.03.2015, 23:37
Re: Ajuda Label - by LucasF - 21.03.2015, 23:59
Re: Ajuda Label - by ThuuGLif3 - 21.03.2015, 23:59
Re: Ajuda Label - by DokyPWN - 22.03.2015, 02:12
Re: Ajuda Label - by matheusspohr - 22.03.2015, 02:42
Re: Ajuda Label - by DokyPWN - 22.03.2015, 02:44
Re: Ajuda Label - by Diogo123 - 22.03.2015, 03:28
Re: Ajuda Label - by DokyPWN - 22.03.2015, 06:40
Re: Ajuda Label - by ClaudioF - 22.03.2015, 20:58
Re: Ajuda Label - by matheusspohr - 23.03.2015, 15:53

Forum Jump:


Users browsing this thread: 2 Guest(s)