27.04.2012, 20:56
tipo eu queria que aparecesse os pontos de helper no lugar de "master" "auxiliar" etc..
Aki meu comando /helpers
Alguem pode ajudar? *-*
Aki meu comando /helpers
pawn Код:
if (strcmp(cmd, "/helpers", true) == 0)
{
SendClientMessage(playerid, COR_HELPER, "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 && PlayerInfo[i][pHelper] <= 60)
{
lolhel = "Aprendiz";
}
if(PlayerInfo[i][pHelper] >= 61 && PlayerInfo[i][pHelper] <= 150)
{
lolhel = "Auxiliar";
}
if(PlayerInfo[i][pHelper] >= 151 && PlayerInfo[i][pHelper] <= 9999)
{
lolhel = "Master";
}
if(away[i] == 0)
{
if(helpertrampando[i] == 1)
{
format(string, 128,"Helper %s [%s] [Ajudando]\n", sendername, lolhel);
SendClientMessage(playerid,COLOR_GRAD1,string);
strcat(gstring,string);
}
else
{
format(string, 128, "Helper %s [%s] \n", sendername, lolhel);
SendClientMessage(playerid,COLOR_GRAD1,string);
strcat(gstring,string);
}
}
else
{
format(string, 128, "Helper %s [%s] (AFK)\n", sendername, lolhel);
SendClientMessage(playerid,COLOR_GRAD1,string);
strcat(gstring,string);
}
}
}
}
return true;
}