Follow this format. It will allow you to add/remove to/from it as you wish. Read the comments.
pawn Код:
if(PlayerInfo[playerid][Level] == 0)
{
new string[128];
format(string,sizeof(string),"»%s »[%i]: {FFFFFF}%s",PlayerName2(playerid),playerid,text);
SetPlayerChatBubble(playerid, text, 0xFFFFFFFF, 100.0, 10000);
printf("»%s »[%i]: %s", PlayerName2(playerid),playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}
else if(PlayerInfo[playerid][Level] >= 1)
{
new string[128];
format(string,sizeof(string),"»%s[ADMIN] »[%i]: {FFFFFF}%s",PlayerName2(playerid),playerid,text);
SetPlayerChatBubble(playerid, text, 0xFFFFFFFF, 100.0, 10000);
printf("»%s »[%i]: %s", PlayerName2(playerid),playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}
else if(PlayerInfo[playerid][Level] >= 2 && PlayerInfo[playerid][Level] < 4) //if the player's level is greater or equal to 2 AND less than 4. Basically: Is the player's level 2 or 3.
{
new string[128];
format(string,sizeof(string),"»%s[Senior Admin] »[%i]: {FFFFFF}%s",PlayerName2(playerid),playerid,text);
SetPlayerChatBubble(playerid, text, 0xFFFFFFFF, 100.0, 10000);
printf("»%s »[%i]: %s", PlayerName2(playerid),playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}