25.06.2012, 10:32
pawn Код:
public OnPlayerText(playerid, text[])
{
if(PlayerInfo[playerid][pAdmin] == 4)
{
new pName[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{FF3333}[Owner]{33CCFF}%s: %s", pName, text);
SendClientMessageToAll(-1,String);
return 0;
}
else if(PlayerInfo[playerid][pAdmin] == 3)
{
new pName[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{33AA33}[Head-Admin]{33CCFF}%s: %s", pName, text);
SendClientMessageToAll(-1,String);
return 0;
}
else if(PlayerInfo[playerid][pAdmin] == 2)
{
new pName[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{0088FF}[Admin]{9ACD32}%s: %s", pName, text);
SendClientMessageToAll(-1,String);
return 0;
}
else if(PlayerInfo[playerid][pAdmin] == 1)
{
new pName[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{FF9900}[Moderator]{AFAFAF}%s: %s", pName, text);
SendClientMessageToAll(-1,String);
return 0;
}
else if(PlayerInfo[playerid][pAdmin] == 0)
{
new pName[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{E100E1}[Member]%s{AFAFAF}:%s", pName, text);
SendClientMessageToAll(-1,String);
}
return 0;
}