[Ajuda] comando /helpers - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] comando /helpers (
/showthread.php?tid=337783)
[Ajuda] comando /helpers -
dimmy_ - 27.04.2012
tipo eu queria que aparecesse os pontos de helper no lugar de "master" "auxiliar" etc..
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;
}
Alguem pode ajudar? *-*
Re: [Ajuda] comando /helpers -
Hydra_RuleZ - 27.04.2012
Como assim?
Re: [Ajuda] comando /helpers -
dimmy_ - 27.04.2012
tipo o comando /helper aparece
Helper online:
Helper: dimmy Nivel
[Master] [ajudando]
so queria que no lugar do
[master] aparecesse os pontos de helper que ele tem..
Re: [Ajuda] comando /helpers -
ViniBorn - 27.04.2012
pawn Код:
lolhel = PONTOS_DE_HELPER;
-
pawn Код:
format(string, 128,"Helper %s [%s] [Ajudando]\n", sendername, lolhel);
pawn Код:
format(string, 128,"Helper %s [%d] [Ajudando]\n", sendername, lolhel);