[Pedido] /anunciar em dialog
#1

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]
Reply
#2

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

kkkk
Reply
#4

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

Код:
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)