30.09.2014, 19:45
Tente isto:
pawn Код:
public OnPlayerText(playerid, text[])
{
new Nivel[56];
switch(PlayerInfo[playerid][pAdmin])
{
case 0: Nivel = "";
case 1: Nivel = "TEMPORБRIO";
case 2: Nivel = "LEVEL 2";
case 3: Nivel = "LEVEL 3";
case 4: Nivel = "LEVEL 4";
case 5: Nivel = "MASTER";
case 6: Nivel = "MБXIMO";
case 7: Nivel = "DONO";
}
new string[512], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "{FFFFFF}[%s-%d] %s: %s", Nivel, PlayerInfo[playerid][pAdmin], pname, text);
if(strlen(text) > 40){
SendClientMessage(playerid, COR_VERMELHO, "[CHAT] | Diminua o Tamanho da Mensagem.");
return 1;
}
SendClientMessageToAll(playerid,string);
return 1;
}