04.05.2012, 00:27
Eu queria ajuda neste sistema de helper, queria que apareзe-se o level e nгo essas paradas de novato entendes?.
pawn Код:
if (strcmp(cmd, "/helpers", true) == 0)
{
SendClientMessage(playerid, COLOR_GRAD2, "|__________________[Helpers Online]__________________|");
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pHelper] > 0)
{
if(helperhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new lolhel[20];
if(PlayerInfo[i][pHelper] == 1)
{
lolhel = "Novato";
}
if(PlayerInfo[i][pHelper] == 2)
{
lolhel = "Auxiliar";
}
if(PlayerInfo[i][pHelper] >= 3)
{
lolhel = "Master";
}
if(away[i] == 0)
{
if(helpertrampando[i] == 1)
{
format(string, 128, "%s [%s] (Trabalhando)", sendername, lolhel);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else
{
format(string, 128, "%s [%s] (Jogando)", sendername, lolhel);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
}
}
return true;
}