SA-MP Forums Archive
[Pedido] /anunciar em dialog - 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: [Pedido] /anunciar em dialog (/showthread.php?tid=623830)



/anunciar em dialog - paulotuto - 06.12.2016

tipo assim /anunciar ai aparece pro cara escolher

tipo assim

/anunciar aparece no dialog

Anunciar: Procuro Org/Mбfia/Gang que me recrute [Nъmero][Nick/Id]

ou

Anunciar: Preciso de um advogado na prisгo [Onde ele estб preso]


Re: /anunciar em dialog - Marllun - 06.12.2016

mds isso й fбcil pq vc nгo faz??


Re: /anunciar em dialog - henriqueTL - 06.12.2016

kkkk


Respuesta: /anunciar em dialog - NobiZinhoBR - 06.12.2016

PEDIDO...
Apesar de antigo, й bem feito. Sу melhorar ele um pouco e adaptar com sua necessidade. (Aqui)


Re: /anunciar em dialog - Marllun - 06.12.2016

Код:
new MENSAGEM[128];

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/Anunciar", true) == 0){
ShowPlayerDialog(playerid,900,DIALOG_STYLE_LIST,"Anunciar","Anunciar 1  \n Anunciar 2","Mostrar","Voltar");
return 1;}
return 0;
}


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

if(dialogid == 900) //
{
	if(!response){return 1;}
	if(listitem == 0) anunciarorg(playerid);
	if(listitem == 1) anunciarorg1(playerid);
	return 1;
}
return 0;
}

stock anunciarorg1(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(MENSAGEM,85,"{32CD32}%s {FFFF00}Preciso de um advogado na prisгo [LS/SF/LV]",name);
SendClientMessageToAll(-1,MENSAGEM);
}

stock anunciarorg(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(MENSAGEM,85,"{7FFFD4}%s {0000FF}procuro Org/Mбfia/Gang que me recrute [Nъmero][Nick/Id]",name);
SendClientMessageToAll(-1,MENSAGEM);
}
PRONTO