03.12.2012, 21:02
Try this one:
pawn Код:
public OnPlayerText(playerid,text[])
{
if(PlayerInfo[playerid][pVIPLevel] > 1)
{
new string[128], playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "{00FFFF}[VIP] {FFFF00}- %s[%d]: {00FF40}- ( {FF00FF}%s {00FF40})",playername, playerid, text);
SendClientMessageToAll(0xFF0000C8, string);
return 0;
}
else if(muted[playerid] == 1)
{
SendClientMessage(playerid,-1,"ERROR:Your muted.");
return 0;
}
return 1;
}