Any help??
#1

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
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerText
Reply
#3

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
Reply
#4

Quote:
Originally Posted by Marsss
Посмотреть сообщение
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
Copy and pasting code from your script isn't going to help anyone.. This is completely unrelated to what he asked for.
Reply
#5

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)