SA-MP Forums Archive
The problem with the mask. - 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: The problem with the mask. (/showthread.php?tid=513210)



The problem with the mask. - Vlad_Dredd - 15.05.2014

Hi people. Faced with such a small problem.

When you put on a mask and write in chat, message appears as it should, ie:
Stranger: Text text text

And when you're sitting in a car in a mask and write something in the chat, the message is displayed as follows:
Player Nickname: Text text text

How to fix this poser to cars and wrote from the "stranger"?

Here's the code:
Код HTML:
public OnPlayerText(playerid, text[])
{
if(MaskOn[playerid] == 1)
{
new string[126];
format(string, sizeof(string), "stranger((%d)) says: %s", playerid, text);
ProxDetector(20.0, playerid, string, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
return 0;
}