SA-MP Forums Archive
Problem chat report - 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: Problem chat report (/showthread.php?tid=596662)



Problem chat report - Jimmi - 20.12.2015

I have a problem when I write something on the report appears and chat as a player and as an administrator and appears normal chat.
http://i.imgur.com/ePAEvyu.png
Код:
  	if(IsInChat[playerid] == 1)
	{
    foreach(Player, i)
    {
       if(IsInChat[i] > 0)
       {
           if(PlayerInfo[playerid][pAdmin] > 1)
		 {
		   format (string,sizeof ( string ), "( ! )Administrator:[%s][%s]", GetName(playerid), text);
		   SendClientMessage(i, 0x6633CCFF, string);
   		}
   		if(PlayerInfo[playerid][pTrial] > 1)
		 {
		   format (string,sizeof ( string ), "( ! )Asistent:[%s][%s]", GetName(playerid), text);
		   SendClientMessage(i, 0x6633CCFF, string);
   		}
   		{
		   format (string,sizeof ( string ), "( ! )Jucator:[%s][%s]", GetName(i), text);
		   SendClientMessage(i, 0x6633CCFF, string);
   		}
       }
    }
}



Re: Problem chat report - itsCody - 20.12.2015

Return 0 under OnPlayerText?