[Ajuda] /titulo
#1

Entгo,queria um comando para digitar /titulo aн ele escole {FFFFFF} a cor dele ou se nao escolher n precisa,cor padrгo й branco... Dai tipo ele digita: /titulo [TITULO] e fica em cima do nick,serб que tem como?
Reply
#2

Vc quer um comando que muda a cor do player ?
Pesquisa sobre dialog e setplayercolor
Reply
#3

Use como base:
https://sampwiki.blast.hk/wiki/SetPlayerChatBubble
Reply
#4

nn quero comando pra por titulo,ex: sniper,fuzileiro etal
Reply
#5

https://sampwiki.blast.hk/wiki/Create3DTextLabel
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Reply
#6

Quote:
Originally Posted by GuilhermeNunes
Посмотреть сообщение
Vc quer um comando que muda a cor do player ?
Pesquisa sobre dialog e setplayercolor
Cara, me tira uma dъvida...se vocк nгo entendeu o que o autor do tуpico quis dizer, por que respondeu? Estб nнtido que ele nгo quer mudar a cor do player, e sim um texto na cabeзa do player com uma cor especнfica. E por que dialog? Sinceramente tenho essa dъvida a um tempo.
Reply
#7

Baixa o gm Play Games e de um ctrl + F e procure /titulos, tem o sistema certinho
Reply
#8

Precisa adaptar por exemplo sua gamemode n tiver sistema de familia, tira o titulo de familia.

Quote:

#define menutitulo 2451
#define MAX_TITULOS 13

Quote:

new Text3D:Titulo[MAX_PLAYERS];
new Titulos[MAX_PLAYERS][MAX_TITULOS];

Quote:

new MEGAString[2500];

Quote:

if(dialogid == menutitulo)
{
if(response)
{
for(new i = 0; i < MAX_TITULOS; i++)
{
if(Titulos[playerid][i] > 0)
{
Titulos[playerid][i] = 0;
RemoverTitulo(playerid);
SendClientMessage(playerid, COLOR_GRAD4, "Voce Desativou o Titulo Anterior.");
return 1;
}
}
if(listitem == 0)
{
if(PlayerInfo[playerid][pAdmin] < 5000)return SendClientMessage(playerid, COLOR_GRAD4, "Voce Nгo tem os Requisitos!");
Titulos[playerid][0] = 1;
UsarTitulo(playerid,0);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GRAD4, "Voce Ativou o Tнtulo.");
}
if(listitem == 1)
{
if(PlayerInfo[playerid][pAdmin] < 3001)return SendClientMessage(playerid, COLOR_GRAD4, "Voce Nгo tem os Requisitos!");
Titulos[playerid][1] = 1;
UsarTitulo(playerid,1);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GRAD4, "Voce Ativou o Tнtulo.");
}
if(listitem == 2)
{
if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pAdminTemp] < 1)return SendClientMessage(playerid, COLOR_GRAD4, "Voce Nгo tem os Requisitos!");
Titulos[playerid][2] = 1;
UsarTitulo(playerid,2);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GRAD4, "Voce Ativou o Tнtulo.");
}
if(listitem == 3)
{
if(GetPlayerOrg(playerid) == 0)return SendClientMessage(playerid, COLOR_GRAD4, "Voce Nгo tem os Requisitos!");
new fstring[30];
format(fstring, sizeof(fstring), "Vazio");
if(strcmp(fstring, Tfamilia[GetPlayerOrg(playerid)], true) == 0)
{
SendClientMessage(playerid, COLOR_GRAD5, "Primeiro Peзa ao Lнder para Definir um Titulo para a familia");
SendClientMessage(playerid, COLOR_GRAD5, "usando /titulofamilia");
return true;
}
Titulos[playerid][3] = 1;
UsarTitulo(playerid,3);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GRAD4, "Voce Ativou o Tнtulo.");
}
if(listitem == 4)
{
if(PlayerInfo[playerid][pKills] < 100)return SendClientMessage(playerid, COLOR_GRAD4, "Voce Nгo tem os Requisitos!");
Titulos[playerid][4] = 1;
UsarTitulo(playerid,4);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GRAD4, "Voce Ativou o Tнtulo.");
}
if(listitem == 5)//noob
{
Titulos[playerid][5] = 1;
UsarTitulo(playerid,5);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GRAD4, "Voce Ativou o Tнtulo.");
}
if(listitem == 6) //lvl30+
{
if(PlayerInfo[playerid][pLevel] < 30)return SendClientMessage(playerid, COLOR_GRAD4, "Voce Nгo tem os Requisitos!");
Titulos[playerid][6] = 1;
UsarTitulo(playerid,6);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GRAD4, "Voce Ativou o Tнtulo.");
}
if(listitem == 7)
{
if(PlayerInfo[playerid][pVIP] != 1)return SendClientMessage(playerid, COLOR_GRAD4, "Voce Nгo tem os Requisitos!");
Titulos[playerid][7] = 1;
UsarTitulo(playerid,7);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GRAD4, "Voce Ativou o Tнtulo.");
}
if(listitem ==
{
if(PlayerInfo[playerid][pVIP] != 2)return SendClientMessage(playerid, COLOR_GRAD4, "Voce Nгo tem os Requisitos!");
Titulos[playerid][8] = 1;
UsarTitulo(playerid,;
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GRAD4, "Voce Ativou o Tнtulo.");
}
if(listitem == 9)
{
if(PlayerInfo[playerid][pVIP] != 6)return SendClientMessage(playerid, COLOR_GRAD4, "Voce Nгo tem os Requisitos!");
Titulos[playerid][9] = 1;
UsarTitulo(playerid,9);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GRAD4, "Voce Ativou o Tнtulo.");
}
if(listitem == 10)
{
if(PlayerInfo[playerid][pLider] < 1)return SendClientMessage(playerid, COLOR_GRAD4, "Voce Nгo tem os Requisitos!");
Titulos[playerid][10] = 1;
UsarTitulo(playerid,10);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GRAD4, "Voce Ativou o Tнtulo.");
}
if(listitem == 11)
{
if(PlayerInfo[playerid][pLevel] < 2)return SendClientMessage(playerid, COLOR_GRAD4, "Voce Nгo tem os Requisitos!");
Titulos[playerid][11] = 1;
UsarTitulo(playerid,11);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GRAD4, "Voce Ativou o Tнtulo.");
}
if(listitem == 12)
{
if(PlayerInfo[playerid][pHelper] < 1)return SendClientMessage(playerid, COLOR_GRAD4, "Voce Nгo tem os Requisitos!");
Titulos[playerid][12] = 1;
UsarTitulo(playerid,12);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GRAD4, "Voce Ativou o Tнtulo.");
}
}
return 1;
}

Quote:

stock UsarTitulo(playerid,id)
{
if(id == 0)
{
Titulo[playerid] = Create3DTextLabel("Scripter", 0x9B30FFFF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Titulo[playerid], playerid, 0.0, 0.0, 0.4);
}
if(id == 1)
{
Titulo[playerid] = Create3DTextLabel("Mapper", 0xCD2990FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Titulo[playerid], playerid, 0.0, 0.0, 0.4);
}
if(id == 2)
{
Titulo[playerid] = Create3DTextLabel("Administrador", 0x98F5FFFF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Titulo[playerid], playerid, 0.0, 0.0, 0.4);
}
if(id == 3)
{
new string[128];
if(IsACop(playerid))
{
format(string, sizeof string, "{%s}Equipe: %s", GetPlayerColorEx(playerid), Tfamilia[GetPlayerOrg(playerid)]);
Titulo[playerid] = Create3DTextLabel(string, 0xFFFFFFFF, 30.0, 40.0, 50.0, 40.0, 0);
}
else
{
format(string, sizeof string, "{%s}Familia: %s", GetPlayerColorEx(playerid), Tfamilia[GetPlayerOrg(playerid)]);
Titulo[playerid] = Create3DTextLabel(string, 0xFFFFFFFF, 30.0, 40.0, 50.0, 40.0, 0);
}
Attach3DTextLabelToPlayer(Titulo[playerid], playerid, 0.0, 0.0, 0.4);
}
if(id == 4)
{
Titulo[playerid] = Create3DTextLabel("Matador", 0xFF4500FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Titulo[playerid], playerid, 0.0, 0.0, 0.4);
}
if(id == 5)
{
Titulo[playerid] = Create3DTextLabel("Noob", 0xADFF2FFF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Titulo[playerid], playerid, 0.0, 0.0, 0.4);
}
if(id == 6)
{
Titulo[playerid] = Create3DTextLabel("Experiente", 0xE0EEEEFF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Titulo[playerid], playerid, 0.0, 0.0, 0.4);
}
if(id == 7)
{
Titulo[playerid] = Create3DTextLabel("VIP", 0x0000FFFF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Titulo[playerid], playerid, 0.0, 0.0, 0.4);
}
if(id ==
{
Titulo[playerid] = Create3DTextLabel("Super VIP", 0xB4EEB4FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Titulo[playerid], playerid, 0.0, 0.0, 0.4);
}
if(id == 9)
{
Titulo[playerid] = Create3DTextLabel("Sуcio", 0x00EE76FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Titulo[playerid], playerid, 0.0, 0.0, 0.4);
}
if(id == 10)
{
Titulo[playerid] = Create3DTextLabel("Lнder", 0xFFD700FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Titulo[playerid], playerid, 0.0, 0.0, 0.4);
}
if(id == 11)
{
Titulo[playerid] = Create3DTextLabel("Novato", 0xFFFFFFFF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Titulo[playerid], playerid, 0.0, 0.0, 0.4);
}
if(id == 12)
{
Titulo[playerid] = Create3DTextLabel("Helper", 0x90EE90FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Titulo[playerid], playerid, 0.0, 0.0, 0.4);
}
}
stock RemoverTitulo(playerid)
{
Delete3DTextLabel(Titulo[playerid]);
}

Quote:

CMD:titulos(playerid)
{
new string[128];
new text[13][7];
MEGAString[0]=EOS;
for(new i = 0; i < MAX_TITULOS; i++)
{
if(Titulos[playerid][i] > 0)
{
strmid(text[i], "FFFF00", 0, strlen("FFFF00"), 7);
}
if(Titulos[playerid][i] == 0)
{
strmid(text[i], "FFFFFF", 0, strlen("FFFFFF"), 7);
}
}
strcat(MEGAString, "Titulo\tRequisitos\n");
format(string, sizeof string, "{%s}(Scripter)\tRequisitos: Level 5000 de Admin\n",text[0]);
strcat(MEGAString, string);
format(string, sizeof string, "{%s}(Mapper)\tRequisitos: Level 3001+ de Admin\n",text[1]);
strcat(MEGAString, string);
format(string, sizeof string, "{%s}(Cargo admin)\tRequisitos: Level 1+ de Admin\n",text[2]);
strcat(MEGAString, string);
format(string, sizeof string, "{%s}(Familia da Org)\tRequisitos: Ser de Alguma Organizaзгo\n",text[3]);
strcat(MEGAString, string);
format(string, sizeof string, "{%s}(Matador)\tMatar Mais de 100 players\n",text[4]);
strcat(MEGAString, string);
format(string, sizeof string, "{%s}(Noob)\tNenhum\n",text[5]);
strcat(MEGAString, string);
format(string, sizeof string, "{%s}(Experiente)\tLevel 30+\n",text[6]);
strcat(MEGAString, string);
format(string, sizeof string, "{%s}(VIP)\tSer VIP\n",text[7]);
strcat(MEGAString, string);
format(string, sizeof string, "{%s}(SUPER VIP)\tSer Super VIP\n",text[8]);
strcat(MEGAString, string);
format(string, sizeof string, "{%s}(Socio)\tSer socio\n",text[9]);
strcat(MEGAString, string);
format(string, sizeof string, "{%s}(Lнder)\tSer Lнder\n",text[10]);
strcat(MEGAString, string);
format(string, sizeof string, "{%s}(Novato)\tLvl 2+\n",text[11]);
strcat(MEGAString, string);
format(string, sizeof string, "{%s}(Helper)\tSer Helper\n",text[12]);
strcat(MEGAString, string);
ShowPlayerDialog(playerid, menutitulo, 5, "Tнtulos",MEGAString,"Selecionar", "Sair");
return 1;
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)