SA-MP Forums Archive
Any help?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Any help?? (/showthread.php?tid=535636)



Any help?? - PrinXe - 05.09.2014

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


Re: Any help?? - Flake. - 05.09.2014

https://sampwiki.blast.hk/wiki/OnPlayerText


Re: Any help?? - Marsss - 05.09.2014

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


Re: Any help?? - Flake. - 05.09.2014

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.


Re: Any help?? - Marsss - 06.09.2014

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