How to make a chat?
#1

Im wondering how to make a chat?
Please help i need it for my server.
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
  return 1;
}
Reply
#3

Quote:
Originally Posted by Finn
pawn Код:
public OnPlayerText(playerid, text[])
{
  return 1;
}
What do i need to put in? xD
Reply
#4

Something like this;

pawn Код:
new string[2][MAX_PLAYER_NAME];
    GetPlayerName(playerid,string[0],sizeof(string[]));
    GetPlayerName(playerid,string[1],sizeof(string[]));
    format(string[0],sizeof(string[]),"[%d]%s",playerid,string[0]);
    SendPlayerMessageToAll(playerid,text);
Reply
#5

Quote:
Originally Posted by Remba
What do i need to put in? xD
Nothing, SA-MP has a chat built-in which will work if you return true in that callback.

(I'm being an ass here, just ignore me)
Reply
#6

Quote:
Originally Posted by Finn
Quote:
Originally Posted by Remba
What do i need to put in? xD
Nothing, SA-MP has a chat built-in which will work if you return true in that callback.

(I'm being an ass here, just ignore me)
Nah I want to make my own chat and limit global chat radius.
Reply
#7

ProxDetector mate.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)