Posts: 91
Threads: 29
Joined: Aug 2013
Reputation:
0
When we are typing or chatting with other player in server
then
its not showing
their Ids no
like this
Prinxe:-Hi everyone
i want like this
Prinxe[0]:-hi everyone
Posts: 56
Threads: 1
Joined: Dec 2013
for(new i = 1; i < MAX_CHAT_LINES-1; i++) Chat[i] = Chat[i+1];
new ChatSTR[128]; GetPlayerName(playerid,ChatSTR,sizeof(ChatSTR)); format(ChatSTR,128,"[lchat]%s: %s",ChatSTR, text[0] );
Chat[MAX_CHAT_LINES-1] = ChatSTR;
if(PlayerInfo[playerid][Caps] == 1) UpperToLower(text);
if(ServerInfo[NoCaps] == 1) UpperToLower(text);
if(ServerInfo[DisableChat] == 1) {
SendClientMessage(playerid,red,"Chat has been disabled");
return 0;
}
Like it... Please +REP ME
I helped you
Posts: 56
Threads: 1
Joined: Dec 2013
for(new i = 1; i < MAX_CHAT_
LINES-1; i++) Chat[i] = Chat[i+1];
new ChatSTR[128];
GetPlayerName
(playerid,ChatSTR,sizeof(ChatSTR))
; format(ChatSTR,128,"[lchat]%s:
%s",ChatSTR, text[0] );
Chat[MAX_CHAT_LINES-1] =
ChatSTR;
if(PlayerInfo[playerid][Caps] == 1)
UpperToLower(text);
if(ServerInfo[NoCaps] == 1)
UpperToLower(text);
if(ServerInfo[DisableChat] == 1) {
SendClientMessage
(playerid,red,"Chat has been
disabled");
return 0;
}