[Ajuda] Comando /procurados - 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 /procurados (
/showthread.php?tid=359347)
Comando /procurados -
[XPG]MarlonCS - 13.07.2012
O comando abaixo tem 2 bugs:
1 - Quando o player procurado sai do server, seu nick continua ali;
2 - Veja o print abaixo:
pawn Код:
CMD:procurados(playerid, params[])
{
static arm[500]; arm[0] = '\0';
static str[500]; str[0] = '\0';
static Nome[24]; Nome[0] = '0';
new count;
new preso[32];
for(new i=0;i<MAX_PLAYERS;i++) {
if(procurado[i] > 0) {
count++;
GetPlayerName(i, Nome, sizeof(Nome));
if(Prisao[i]==1)preso="{00FF00}Sim";
if(Prisao[i]==0)preso="{FF0000}Nгo";
format(str, sizeof(str),"{FFFFFF}Nome: {FF0000}%s {FFFFFF}[%i] {FF0000}(Nнvel: %d) {FFFFFF}| Preso: %s{FFFFFF}\n", Nome, i, GetPlayerWantedLevel(i), preso);
strcat(arm, str);
}
}
if(count<=0)return ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "===== {FF0000}Procurados{FFFFFF} ======", "{00FF00}Nenhum suspeito online", "OK", "");
if(count>0)ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "===== {FF0000}Procurados{FFFFFF} ======", arm, "OK", "");
return 1;
}
Re: Comando /procurados -
.FuneraL. - 13.07.2012
pawn Код:
CMD:procurados(playerid, params[])
{
static arm[500]; arm[0] = '\0';
static str[500]; str[0] = '\0';
static Nome[24]; Nome[0] = '0';
new count;
new preso[32];
for(new i=0;i<MAX_PLAYERS;i++) {
if(IsPlayerConnected(i){
if(procurado[i] > 0) {
count++;
GetPlayerName(i, Nome, sizeof(Nome));
if(Prisao[i]==1)preso="{00FF00}Sim";
if(Prisao[i]==0)preso="{FF0000}Nгo";
format(str, sizeof(str),"{FFFFFF}Nome: {FF0000}%s {FFFFFF}[%i] {FF0000}(Nнvel: %d) {FFFFFF}| Preso: %s{FFFFFF}\n", Nome, i, GetPlayerWantedLevel(i), preso);
strcat(arm, str);
}
}
if(count<=0)return ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "===== {FF0000}Procurados{FFFFFF} ======", "{00FF00}Nenhum suspeito online", "OK", "");
if(count>0)ShowPlayerDialog(playerid, 10, DIALOG_STYLE_MSGBOX, "===== {FF0000}Procurados{FFFFFF} ======", arm, "OK", "");
return 1;
}
Tenta aн
Re: Comando /procurados -
Urubu_Rei - 14.07.2012
gostei desse sisteminha, parabйns!
Re: Comando /procurados -
[XPG]MarlonCS - 14.07.2012
Quote:
Originally Posted by Urubu_Rei
gostei desse sisteminha, parabйns!
|
._. ok rs