06.05.2016, 18:54
Код:
if(ProxDetectorS(4.0, playerid, iTargetID))
{
new szMessage[28 + MAX_PLAYER_NAME];
PlayerInfo[iTargetID][pBugged] = 1;
format(szMessage,sizeof(szMessage)," You have placed a bug on %s. ",PlayerRPName(iTargetID));
SendClientMessage(playerid, COLOR_LIGHTBLUE, szMessage);
it plants the FBI bug on a person to hear his chat but instead of making the bug sends the player chat to the whole FBI
I want to make it send the chat that being watched by FBI to the agent who planted the bug himself
Код:
if(PlayerInfo[playerid][pBugged] == 1)
{
format(string, sizeof(string), "(bug) %s says: %s", sendername, text);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
}

