[Ajuda] Variavel do FS
#2

Basicamente o player deve estar no rcon para usar o chat e sу verб a mensagem quem estiver logado tbm no rcon.

Код:
if(text[0] == '@') 
{
    if(IsPlayerAdmin(playerid))
    {
		new String[129], Name;
		GetPlayerName(playerid, Name, 24);
		
		for(new i = 0; i < MAX_PLAYERS; i ++)
		{
			if(!IsPlayerConnected(i)) continue;
			
			if(IsPlayerAdmin(i))
			{
				format(String, sizeof String, "[ADM-CHAT] %s: %s", Name, text);
				SendClientMessage(i, -1, String);
			}
		}
    }
}
Reply


Messages In This Thread
Variavel do FS - by Dishz - 29.05.2016, 08:00
Re: Variavel do FS - by F1N4L - 29.05.2016, 15:16
Re: Variavel do FS - by Dishz - 29.05.2016, 19:13
Re: Variavel do FS - by RoacH` - 29.05.2016, 19:43
Re: Variavel do FS - by Dishz - 29.05.2016, 20:04
Re: Variavel do FS - by RoacH` - 29.05.2016, 21:08
Re: Variavel do FS - by Dishz - 29.05.2016, 21:35

Forum Jump:


Users browsing this thread: 1 Guest(s)