pawn Код:
public OnPlayerText(playerid, text[])
{
switch (Administrador[playerid]) // A variavel de Admin
{
case 0: // se й Level 0
{
new string[256];
format(string,sizeof(string),"{696969}%s [ID:%d]: {F8F8FF}%s ",Nome(playerid), playerid,text);
SendClientMessageToAll(playerid,string);
}
case 1: // se й Level 1
{
new string[256];
format(string,sizeof(string),"{4876FF}[TEMPORARIO] {696969}%s [ID:%d]: {F8F8FF}%s ",Nome(playerid), playerid,text);
SendClientMessageToAll(playerid,string);
}
case 2: // se й Level 2
{
new string[256];
format(string,sizeof(string),"{4876FF}[COLABORADOR] {696969}%s [ID:%d]: {F8F8FF}%s ",Nome(playerid), playerid,text);
SendClientMessageToAll(playerid,string);
}
case 3: // se й Level 3
{
new string[256];
format(string,sizeof(string),"{4876FF}[MODERADOR] {696969}%s [ID:%d]: {F8F8FF}%s ",Nome(playerid), playerid,text);
SendClientMessageToAll(playerid,string);
}
}
return 0;
}
pawn Код:
stock Nome(playerid)
{
new ANome[MAX_PLAYER_NAME];
GetPlayerName(playerid, ANome, sizeof(ANome));
return ANome;
}