SA-MP Forums Archive
How to make a chat? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to make a chat? (/showthread.php?tid=124240)



How to make a chat? - Remba - 29.01.2010

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


Re: How to make a chat? - Finn - 29.01.2010

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



Re: How to make a chat? - Remba - 29.01.2010

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


Re: How to make a chat? - jamesb93 - 29.01.2010

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



Re: How to make a chat? - Finn - 29.01.2010

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)


Re: How to make a chat? - Remba - 29.01.2010

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.


Re: How to make a chat? - Naruto4 - 29.01.2010

ProxDetector mate.