12.02.2014, 22:01
pawn Код:
if(strcmp(cmd, "/helpers", true) == 0)
{
SendClientMessage(playerid, COR_ADMIN , "Helpers Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pHelper] == 0) continue;
GetPlayerName(i, sendername, MAX_PLAYER_NAME);
switch(PlayerInfo[i][pHelper])
{
case 1..49:
{
format(string, 128, "{3366FF}Helper{FFFFFF}: %s {3366FF}- Nivel{FFFFFF}: [{CC6633}%s{FFFFFF}]{3366FF} - Modo{FFFFFF}: %s", sendername, HelperLevel, helpertrampando[i] == 1 ? ("[{33CC33}Trabalhando{FFFFFF}]") : ("[{FF00FF}Jogando{FFFFFF}]"));
SendClientMessage(playerid, COLOR_WHITE, string);
}
case 50..79:
{
format(string, 128, "{3366FF}Helper{FFFFFF}: %s {3366FF}- Nivel{FFFFFF}: [{CC6633}%s{FFFFFF}]{3366FF} - Modo{FFFFFF}: %s", sendername, HelperLevel, helpertrampando[i] == 1 ? ("[{33CC33}Trabalhando{FFFFFF}]") : ("[{FF00FF}Jogando{FFFFFF}]"));
SendClientMessage(playerid, COLOR_WHITE, string);
}
case 80..99:
{
format(string, 128, "{3366FF}Helper{FFFFFF}: %s {3366FF}- Nivel{FFFFFF}: [{CC6633}%s{FFFFFF}]{3366FF} - Modo{FFFFFF}: %s", sendername, HelperLevel, helpertrampando[i] == 1 ? ("[{33CC33}Trabalhando{FFFFFF}]") : ("[{FF00FF}Jogando{FFFFFF}]"));
SendClientMessage(playerid, COLOR_WHITE, string);
}
case 100..149:
{
format(string, 128, "{3366FF}Helper{FFFFFF}: %s {3366FF}- Nivel{FFFFFF}: [{CC6633}%s{FFFFFF}]{3366FF} - Modo{FFFFFF}: %s", sendername, HelperLevel, helpertrampando[i] == 1 ? ("[{33CC33}Trabalhando{FFFFFF}]") : ("[{FF00FF}Jogando{FFFFFF}]"));
SendClientMessage(playerid, COLOR_WHITE, string);
}
default:
{
format(string, 128, "{3366FF}Helper{FFFFFF}: %s {3366FF}- Nivel{FFFFFF}: [{CC33CC}%s{FFFFFF}]{3366FF} - Modo{FFFFFF}: %s", sendername, HelperLevel, helpertrampando[i] == 1 ? ("[{33CC33}Trabalhando{FFFFFF}]") : ("[{FF00FF}Jogando{FFFFFF}]"));
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
return 1;
}