Mask System - Showing both texts. - 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: Mask System - Showing both texts. (
/showthread.php?tid=552521)
Mask System - Showing both texts. -
RayC - 25.12.2014
It shows both the messages , masked and unmasked, when I type.
Код:
public OnPlayerText(playerid, text[])
{
//TheMask
new string[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
if(pMask[playerid] == 1)
{
format(string, sizeof(string), "Stranger_%d says: %s", PlayerInfo[playerid][MaskID], text);
ProxDetector(30.0, playerid,string,0xE6E6E6E6,0xC8C8C8C8,0xAAAAAAAA,0x8C8C8C8C,0x6E6E6E6E);
}
Re: Mask System - Showing both texts. -
Mic_H - 25.12.2014
PHP код:
public OnPlayerText(playerid, text[])
{
//TheMask
new string[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
if(pMask[playerid] == 1)
{
format(string, sizeof(string), "Stranger_%d says: %s", PlayerInfo[playerid][MaskID], text);
ProxDetector(30.0, playerid,string,0xE6E6E6E6,0xC8C8C8C8,0xAAAAAAAA,0x8C8C8C8C,0x6E6E6E6E);
return 0;
}
Re: Mask System - Showing both texts. -
RayC - 25.12.2014
Quote:
Originally Posted by Mic_H
PHP код:
public OnPlayerText(playerid, text[])
{
//TheMask
new string[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
if(pMask[playerid] == 1)
{
format(string, sizeof(string), "Stranger_%d says: %s", PlayerInfo[playerid][MaskID], text);
ProxDetector(30.0, playerid,string,0xE6E6E6E6,0xC8C8C8C8,0xAAAAAAAA,0x8C8C8C8C,0x6E6E6E6E);
return 0;
}
|
How could I be such an idiot for not noticing that, thank you +1
Re: Mask System - Showing both texts. -
Mic_H - 25.12.2014
Human error.. Happens.. Have a good day..
Merry Christmas