How to do this chat system. - 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)
+--- Thread: How to do this chat system. (
/showthread.php?tid=615636)
How to do this chat system. -
SamBum - 25.08.2016
This is my code SendClientMessage:
Код:
format(advert, sizeof(advert), "Quang cao: %s - Lien he: %s (%d)", advert, GetPlayerNameEx(reportid), PlayerInfo[reportid][pPnumber]);
if(GetPVarInt(playerid, "AdvertVoucher") != 1)
{
GivePlayerCash(reportid, -150000);
}
iAdverTimer = gettime()+30;
foreach(new i: Player)
{
if(!gNews[i] && InsideMainMenu{i} != 1 && InsideTut{i} != 1 && ActiveChatbox[i] != 0) SendClientMessage(i, TEAM_GROVE_COLOR, advert);
}
And when players ask too much, some text will be lost. But this system below can fix it, but I don't know how to do like this.
http://forum.sa-mp.com/attachment.ph...1&d=1472109279
Re: How to do this chat system. -
Shinja - 25.08.2016
increase advert[numbers_here] size
Re: How to do this chat system. -
SamBum - 26.08.2016
Quote:
Originally Posted by Shinja
increase advert[numbers_here] size
|
You mean like:
Normal: string[128]
Now we will change string[1000].
So it's done. Right ?
Re: How to do this chat system. -
SickAttack - 26.08.2016
https://sampforum.blast.hk/showthread.php?tid=520734
Take a function from there, I'm not sure if it has the latest version of the include. But you can definitely just grab a function from there, put it into your gamemode, and make it show three periods at the end of the first message and at the start of each new line.