if(PlayerInfo[playerid][Level] > 1)
{
new String[500];
format(String, sizeof(String), "{FF0000}[ADM] {FFFFFF}%s: {00FFFF}%s", Nome(playerid), text);
SendClientMessageToAll(GetPlayerColor(playerid), String);
return 1;
}
if(PlayerInfo[playerid][Level] > 8)
{
new String[500];
format(String, sizeof(String), "{FFFF00}[DONO] {FFFFFF}%s: {00FFFF}%s", Nome(playerid), text);
SendClientMessageToAll(GetPlayerColor(playerid), String);
return 1;
}
if(PlayerInfo[playerid][Level] > 7)
{
new String[500];
format(String, sizeof(String), "{FF0000}[Sub Dono] {FFFFFF}%s: {FF0000}%s", Nome(playerid), text);
SendClientMessageToAll(GetPlayerColor(playerid), String);
return 1;
}
if(PlayerInfo[playerid][Level] >= 1)
{
new String[200];
format(String, sizeof(String), "{FF0000}[ADM] {FFFFFF}%s: {00FFFF}%s", Nome(playerid), text);
SendClientMessageToAll(GetPlayerColor(playerid), String);
return 1;
}
if(PlayerInfo[playerid][Level] == 8)
{
new String[200];
format(String, sizeof(String), "{FFFF00}[DONO] {FFFFFF}%s: {00FFFF}%s", Nome(playerid), text);
SendClientMessageToAll(GetPlayerColor(playerid), String);
return 1;
}
if(PlayerInfo[playerid][Level] == 7)
{
new String[200];
format(String, sizeof(String), "{FF0000}[Sub Dono] {FFFFFF}%s: {FF0000}%s", Nome(playerid), text);
SendClientMessageToAll(GetPlayerColor(playerid), String);
return 1;
}
new String[128];
switch(PlayerInfo[playerid][Level])
{
case 1..7:
{
format(String, sizeof(String), "[ADM] {FFFFFF}%s: {00FFFF}%s", Nome(playerid), text);
SendClientMessageToAll(0xFF0000FF, String);
return 0;
}
case 8:
{
format(String, sizeof(String), "[Sub Dono] {FFFFFF}%s: {00FFFF}%s", Nome(playerid), text);
SendClientMessageToAll(0xFF0000FF, String);
return 0;
}
case 9:
{
format(String, sizeof(String), "[DONO] {FFFFFF}%s: {00FFFF}%s", Nome(playerid), text);
SendClientMessageToAll(0xFF0000FF, String);
return 0;
}
}
O mбximo que poderб ser exibido no chat й 128 caracteres, entгo criar um vetor com 500 posiзхes
|