if(strcmp(cmd, "/cnn", true) == 0) { new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); format(file, sizeof(file), P_CONTAS, aname); if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){ new tmp[256]; tmp = strtok(cmdtext, idx, strlen(cmdtext)); if (!strlen(tmp)) { SendClientMessage(playerid, Vermelho, "{0099FF}{0099FF}|INFO|{CCCCFF}{CCCCFF} Digite: /cnn [texto]"); return 1; } if(PlayerInfo[playerid][Logged] == 1) { if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5) { format(string, sizeof(string), "# ~b~%s~b~: ~r~%s~r~ #", aname, tmp); GameTextForAll(string, 4000, 3); }else{ SendClientMessage(playerid, Vermelho, "{0099FF}{0099FF}|INFO|{CCCCFF}{CCCCFF} Comando inexistente."); } }else{ SendClientMessage(playerid, Vermelho, "{0099FF}{0099FF}|INFO|{CCCCFF}{CCCCFF} Comando inexistente."); } return 1; } } // /ann agora if(strcmp(cmd, "/ann", true) == 0) { new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); format(file, sizeof(file), P_CONTAS, aname); if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){ new tmp[256]; tmp = strtok(cmdtext, idx, strlen(cmdtext)); if (!strlen(tmp)) { SendClientMessage(playerid, Vermelho, "{0099FF}{0099FF}|INFO|{CCCCFF}{CCCCFF} Digite: /ann [texto]"); return 1; } if(PlayerInfo[playerid][Logged] == 1) { if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){ format(string, sizeof(string), "# ~w~[] %s [] #", tmp); GameTextForAll(string, 5000, 3); }else{ SendClientMessage(playerid, Vermelho, "{0099FF}{0099FF}|INFO|{CCCCFF}{CCCCFF} Comando inexistente."); } }else{ SendClientMessage(playerid, Vermelho, "{0099FF}{0099FF}|INFO|{CCCCFF}{CCCCFF} Comando inexistente."); } return 1; } }
Troca ali a font dos dois no GameTextForAll no final por um, ficando assim:
GameTextForAll(string, 5000, 1); flw |
format(string, sizeof(string), "# ~b~%s~b~: ~r~%s~r~ #", aname, tmp);
pawn Код:
essa e a linha pra vc mudar as cores ( acho que deve ser isso que vc quer ) o que esta a ~~ (exemplo ~b~) e o azul, e porque 'b'? porque e a inicial de azul em ingles ( blue ) aqui tens a lista das cores: https://sampwiki.blast.hk/wiki/Colors_List ja se for a posicao, veja aqui: https://sampwiki.blast.hk/wiki/GameTextStyle |
if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){ |
if(pAdmin[playerid] > 0) |
GameTextForAll(string, 5000, 3); |
E no
Eu acho que vocк sу pode colocar o 2, 3, 4, 5 ou 6, por que o 1 fica la em baixo. -- Espero ter ajudado. Atenciosamente Macacu Vuador Skype: luis.paulo.2 |