[Ajuda] Como mudar o chat do player = rep++;
#1

Galera eu uso o Gamemmode brasil truck, porem nгo encontro o local onde estб p chat '-,

Quote:

vб na callbeck OnPlayerText e faz assim:

PHP код:
new string[144], aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanamesizeof(aname));
formatstringsizeof(string), "[%d] %s diz: %s"playeridanametext);
SendClientMessageToAll(-1string); 
mas quano eu fassi isso floda duas menssagem a do chat comun e a do chat novo.


------

Auguem que jб usou o gamemode poderia me ajudar?
Reply
#2

Eu nгo percebo quase nada de Pawn, mas acho que mo
Quote:

new string[144], aname[MAX_PLAYER_NAME];

o
Quote:

[MAX_PLAYER_NAME];

estб a mais.. Posso estar dizendo merda.. Nгo vai por mim, sу estou dizendo o que acho.. Mas eu nem percebo de pawn, sу sei mesmo colocar texturas e essas coisas. kkkkk

ps: Vocк tem o define do MAX_PLAYER_NAME criada, no topo do GM? Se nгo tiver, nгo irб funcionar..
Reply
#3

Se tб em OnPlayerText, recomendo mudar o return do mesmo de 1 para 0.
Reply
#4

PHP код:
public OnPlayerText(playeridtext[])
{
    new 
string[144], aname[MAX_PLAYER_NAME]; 
    
GetPlayerName(playeridanamesizeof(aname)); 
    
formatstringsizeof(string), "[%d] %s diz: %s"playeridanametext); 
    
SendClientMessageToAll(-1string);
  
    return 
0;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)