pawn Код:
public OnPlayerText(playerid, text[])
{
switch(PlayerInfo[playerid][pAdmin])
{
case 3:
{
new pName[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{FF3333}[Owner]{AFAFAF}%s: %s", pName, text);
SendClientMessageToAll(-1,String);
return 0;
}
case 2:
{
new pName[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{FF3333}[Head-Admin]{AFAFAF}%s: %s", pName, text);
SendClientMessageToAll(-1,String);
return 0;
}
case 1:
{
new pName[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{FF3333}[Moderator]{AFAFAF}%s: %s", pName, text);
SendClientMessageToAll(-1,String);
return 0;
}
case 0:
{
new pName[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{FF3333}[Member]{AFAFAF}%s: %s", pName, text);
SendClientMessageToAll(-1,String);
return 0;
}
}
return 1;
}