[FilterScript] Chat v1.0
#1

Eai pessoal do forum, tava sem nada pra fazer, e resolvi criar um chat em TextDraw.
no comeзo era pra ser um simples chat, foi vindo idйias e fui adicionando.
Ai vai algumas imagens:

http://i.imgur.com/4Mvj6.png
http://i.imgur.com/BDXoH.jpg
http://i.imgur.com/g6bxm.jpg
http://i.imgur.com/rXPUD.jpg
http://i.imgur.com/PfU0G.jpg
http://i.imgur.com/3lsyl.jpg

Como vocкs podem ver nas imagens, tem 2 tipos de chat diferentes
й porque pode mudar o estilo do chat com um comando

comandos
Code:
LETRA Y ou /CT - escreve no chat
/LOGARCHAT - loga no chat, para poder falar com outros players.
/SAIRCHAT - sai da conversa no chat
/CHAT - esconde/mostra o chat
/BOX - ativa/desativa o box do chat
/LINHASCHAT - muda a quantidade de linhas que vocк deseja ver
/ONCHAT - usado para ver os players conectados ao chat
/ADMINSCHAT - usado para ver os administradores do chat online
/MUDARCHAT - muda a posiзгo do chat
/KICKCHAT - kicka um player do chat
/CHATSOM - muda o som do chat ao escrever
/LC - limpa as linhas do chat
/DESATIVARCHAT - desativa o chat de um player em um determinado tempo
/MENSAGEMCHAT - manda uma mensagem grande no chat
/DARADMCHAT - promove um player a administrador do chat
/BANCHAT - ban um jogador do chat
/DESBANCHAT - desban um jogador do chat
Se vocк acha que o chat estб atrapalhando, basta usar /box OFF, ficarб apenas as linhas aparecendo.
Ou tambem usar /linhaschat, funciona igual /pagesize, mostra linhas de 5 atй 10.
Vocк tambйm pode mudar o som do chat quando alguem manda uma mensagem, usando /chatsom.

Creditos
ForT: pela criaзгo.




Download
Pastebin


Espero que gostem
Reply
#2

Gostei
+REP
Reply
#3

Daora mano Gostei tb parabens +REP
Reply
#4

Legalzinho.
Reply
#5

Bom Trabalho ,Parabйns + rep .
Reply
#6

Very Nice -.-
Reply
#7

Vlw ae gente *-*
Reply
#8

Ficaria bom tambйm colocando as configuraзхes em dialog, digo os comandos

Bom trabalho.
Reply
#9

Na moral cara, nгo pegue mal mais eu acho isto inutel pois ja tem um CHAT pra que colocar outro
Reply
#10

Quote:
Originally Posted by Vinicius_TroLL
View Post
Na moral cara, nгo pegue mal mais eu acho isto inutel pois ja tem um CHAT pra que colocar outro
й uma coisa diferente mano, se ninguem inovar, vai ficar sempre na mesma..
Reply
#11

Muita coisa no cуdigo poderia ser melhorado, mas ficou legalzinho.
Reply
#12

Quote:
Originally Posted by humildadeforever
View Post
Muita coisa no cуdigo poderia ser melhorado, mas ficou legalzinho.
Verdade, por exemplo isso:
pawn Code:
for(new lin=0;lin<strlen(chaty);lin++){
            if(chaty[lin]=='~')chaty[lin]='#';else if(chaty[lin]=='б')chaty[lin]='a';
            else if(chaty[lin]=='в')chaty[lin]='a';else if(chaty[lin]=='г')chaty[lin]='a';
            else if(chaty[lin]=='й')chaty[lin]='e';else if(chaty[lin]=='к')chaty[lin]='e';
            else if(chaty[lin]=='и')chaty[lin]='e';else if(chaty[lin]=='н')chaty[lin]='i';
            else if(chaty[lin]=='м')chaty[lin]='i';else if(chaty[lin]=='о')chaty[lin]='i';
            else if(chaty[lin]=='у')chaty[lin]='¦';else if(chaty[lin]=='ф')chaty[lin]='o';
            else if(chaty[lin]=='х')chaty[lin]='o';else if(chaty[lin]=='т')chaty[lin]='o';
            else if(chaty[lin]=='ъ')chaty[lin]='Є';else if(chaty[lin]=='щ')chaty[lin]='©';
            else if(chaty[lin]=='ы')chaty[lin]='«';else if(chaty[lin]=='є')chaty[lin]='|';
            else if(chaty[lin]=='Є')chaty[lin]='|';
            else if(chaty[lin]=='с')chaty[lin]='n';else if(chaty[lin]=='э')chaty[lin]='y';
            else if(chaty[lin]=='з')chaty[lin]='c';else if(chaty[lin]=='^')chaty[lin]=':';}
Mais eu fiz rapido, e nгo achei outra forma de otimizar.
Reply
#13

Cara vocк me deu uma idйia ._.
Reply
#14

Quote:
Originally Posted by ForT
View Post
Verdade, por exemplo isso:
pawn Code:
for(new lin=0;lin<strlen(chaty);lin++){
            if(chaty[lin]=='~')chaty[lin]='#';else if(chaty[lin]=='б')chaty[lin]='a';
            else if(chaty[lin]=='в')chaty[lin]='a';else if(chaty[lin]=='г')chaty[lin]='a';
            else if(chaty[lin]=='й')chaty[lin]='e';else if(chaty[lin]=='к')chaty[lin]='e';
            else if(chaty[lin]=='и')chaty[lin]='e';else if(chaty[lin]=='н')chaty[lin]='i';
            else if(chaty[lin]=='м')chaty[lin]='i';else if(chaty[lin]=='о')chaty[lin]='i';
            else if(chaty[lin]=='у')chaty[lin]='¦';else if(chaty[lin]=='ф')chaty[lin]='o';
            else if(chaty[lin]=='х')chaty[lin]='o';else if(chaty[lin]=='т')chaty[lin]='o';
            else if(chaty[lin]=='ъ')chaty[lin]='Є';else if(chaty[lin]=='щ')chaty[lin]='©';
            else if(chaty[lin]=='ы')chaty[lin]='«';else if(chaty[lin]=='є')chaty[lin]='|';
            else if(chaty[lin]=='Є')chaty[lin]='|';
            else if(chaty[lin]=='с')chaty[lin]='n';else if(chaty[lin]=='э')chaty[lin]='y';
            else if(chaty[lin]=='з')chaty[lin]='c';else if(chaty[lin]=='^')chaty[lin]=':';}
Mais eu fiz rapido, e nгo achei outra forma de otimizar.
format desnecessбrio:
pawn Code:
* CMD:ajudachat(playerid)
  * {
  * * * * * new strajuda[1320];
  * * * format(stringe,sizeof stringe,
  * * * * * "*-------------------------------------------[ AJUDA CHAT ]-------------------------------------------*\n");strcat(strajuda,stringe);
  * * * format(stringe,sizeof stringe,
  * * * * * "\n{33FF00}LETRA Y ou /CT - {FFFFFF}escreve no chat");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{33FF00}/LOGARCHAT - {FFFFFF}loga no chat, para poder falar com outros players.");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{33FF00}/SAIRCHAT - {FFFFFF}sai da conversa no chat.");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{33FF00}/CHAT - {FFFFFF}esconde/mostra o chat.");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{33FF00}/BOX - {FFFFFF}ativa/desativa o box do chat.");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{33FF00}/LINHASCHAT - {FFFFFF}muda a quantidade de linhas que vocк deseja ver.");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{33FF00}/ONCHAT - {FFFFFF}usado para ver os players conectados ao chat.");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{33FF00}/ADMINSCHAT - {FFFFFF}usado para ver os administradores do chat online.");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{FF0000}[Admin]{33FF00}/MUDARCHAT - {FFFFFF}muda a posiзгo do chat.");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{FF0000}[Admin]{33FF00}/KICKCHAT - {FFFFFF}kicka um player do chat.");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{FF0000}[Admin]{33FF00}/CHATSOM - {FFFFFF}muda o som do chat ao escrever.");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{FF0000}[Admin]{33FF00}/LC - {FFFFFF}limpa as linhas do chat.");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{FF0000}[Admin]{33FF00}/DESATIVARCHAT - {FFFFFF}desativa o chat de um player em um determinado tempo.");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{FF0000}[Admin]{33FF00}/MENSAGEMCHAT - {FFFFFF}manda uma mensagem grande no chat.");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{FF0000}[Admin]{33FF00}/DARADMCHAT - {FFFFFF}promove um player a administrador do chat.");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{FF0000}[Admin]{33FF00}/BANCHAT - {FFFFFF}ban um jogador do chat.");strcat(strajuda,stringe);
  * * * * * format(stringe,sizeof stringe,
  * * * * * "\n{FF0000}[Admin]{33FF00}/DESBANCHAT - {FFFFFF}desban um jogador do chat.");strcat(strajuda,stringe);
  * * * * * ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX,"Ajuda CHAT", strajuda, "SAIR", "");
  * * * * * return true;
  * }
  *
Obs: ficou esses * pq copiei pelo cel e aн bugou tudo kk
Reply
#15

Quote:
Originally Posted by Vinicius_TroLL
View Post
Na moral cara, nгo pegue mal mais eu acho isto inutel pois ja tem um CHAT pra que colocar outro
І ...

@edit dando uma olhada no cуdigo quem entrar com os nomes

dimmy_scarface
[WrS]ForT
[WrS]JadsoN_

Sera admin ?
Reply
#16

Quote:
Originally Posted by Schocc
View Post
І ...

@edit dando uma olhada no cуdigo quem entrar com os nomes

dimmy_scarface
[WrS]ForT
[WrS]JadsoN_

Sera admin ?
Sim..
Reply
#17

Muito Bom Fort sempre tem que ter alguйm mesmo pra inovar o SA-MP Parabйns pelo seu Trabalho.
Reply
#18

LoL Massa.
+REP

Agora me explica que animal e aquele ali no chao do print.
http://i.imgur.com/4Mvj6.png

'-'
Reply
#19

Й muito criativo, parabйns. +rep

Entretanto, acho pouco provбvel alguйm usar isso, pelo menos com esse design, acho que ficou feio.
Reply
#20

Muito Interessante, parabйns.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)