25.04.2016, 05:28
Criei esse cmd aqui, funciona porйm nгo quer aparecer o nick do criador, alguйm poderia dar um helping?
PHP код:
CMD:label(playerid,params[]){
if(Open == false)
{
new string[300], name[24];
GetPlayerName(playerid, name, 24);
GetPlayerPos(playerid, LX[playerid], LY[playerid], LZ[playerid]);
if(isnull(params))return SendClientMessage(playerid, -1,"/Label [TEXTO]");
format(string, sizeof(string), "Criada com sucesso: %s", params);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "{FFFFFF}%s - %s", name, params);
LABEL[playerid] = Create3DTextLabel(string, 0xFFFFFFFF, LX[playerid], LY[playerid], LZ[playerid],20,0,0);
Update3DTextLabelText(LABEL[playerid], 0xFFFFFFFF, params);
Open = true;
}
else
{
Delete3DTextLabel(Text3D:LABEL[playerid]);
SendClientMessage(playerid, -1, "Deletada com sucesso!");
Open = false;
}
return 1;
}