10.11.2013, 02:10
Pode sim, й sу vocк adicionar na linha certa e colocar if depois do else.
pawn Код:
public OnPlayerText(playerid, text[])
{
if(Chatlb == 1)
{
if(pAdmin[playerid] >= 1)
{
format(string, sizeof(string), "{33AA33}[ADM]:[ID: %d]{9E3EFF} %s", playerid, text);
SendPlayerMessageToAll(playerid, string);
}
else if(IsPlayerVIP(playerid))
{
format(string, sizeof(string), " ™[ID: %d]{9E3EFF} %s {33AA33}[VIP]", playerid, text);
SendPlayerMessageToAll(playerid, string);
}
else
{
format(string, sizeof(string), "[ID: %d]{9E3EFF} %s", playerid, text);
SendPlayerMessageToAll(playerid, string);
}
}
else
{
ChatProximo(playerid, text);
}
return 0;
}