[pawn]#define RED 0xF0182DFF
#define COLOR_YELLOW 0xFFFF00AA
//OnPlayerCommandText
else if ( strcmp( cmd, "adminchat", true ) == 0)
{
new szMsg[ 128 ];
{
if(GetPlayerLevel(playerid) == 0)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && GetPlayerLevel(i) >= 1)
{
format( szMsg, sizeof( szMsg ), "Admin > %s : %s", gPlayers[ playerid ],cmdtext[2]);
SendClientMessage(i,COLOR_YELLOW,szMsg);
}
}
}
else SendClientMessage(playerid,RED,"You is not an administrator");
}
return 1;
}
//This Chat with levels and For Administrators
=================================
//Chat To The Administrators In Rcon
else if ( strcmp( cmd, "adminchat", true ) == 0)
{
new szMsg[ 128 ];
{
if(GetPlayerLevel(playerid) == 0)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && IsPlayerAdmin(i))
{
format( szMsg, sizeof( szMsg ), "Admin > %s : %s", gPlayers[ playerid ],cmdtext[2]);
SendClientMessage(i,COLOR_YELLOW,szMsg);
}
}
}
else SendClientMessage(playerid,RED,"You is not an administrator Rcon");
}
return 1;
}[/pawn]
If you find any bug speaks to me