2021-02-20, 08:55 PM
(This post was last modified: 2021-02-20, 09:01 PM by LinesinRows.)
You said, when u disabled gl, that's not work.
?In your code you can, if gl open text, else continue.
But at the end of your code,
SendClientMessageToAll sending your "string" for everyone. Not looking for is user gl opened or closed.
You have already sending string message in foreach. Why again write it to all players?
?In your code you can, if gl open text, else continue.
Code:
if (Gl_Privados[i] == 0)
{
? ?SendClientMessage(i, 0xFFFFFF00, string);
}
else if(Gl_Privados[i] == 1)? ? ? ??
{
? ? continue;
}
But at the end of your code,
Code:
/*
format(string, sizeof(string), "{D41818}[ID:%d - %s]:{AFAFAF} %s",playerid, PlayerName, Text);
SendClientMessageToAll(0xFFFFFF00, string);
*/
SendClientMessageToAll sending your "string" for everyone. Not looking for is user gl opened or closed.
You have already sending string message in foreach. Why again write it to all players?