16.09.2012, 16:30
why? he said the dialog is not showing up, OnDialogResponse gets called when the dialog is shown and player selects anything from it.
Don't go too far with dialog id numbers.
EDIT: now you're talking.
pawn Код:
CMD:zastitar(playerid, params[])
{
#pragma unused params
if(PlayerInfo[playerid][pJob] == 6)
{
ShowPlayerDialog(playerid, 995, DIALOG_STYLE_LIST, "Lista podrucja","Aerodrom\nBanka\nBurg\nBolnica\nGlen park\nOpstina\nKolodvor", "Uredu", "Izlaz");
}
else
{
SendClientMessage(playerid,WHITE,"[{FF0000}Balkan Country{FFFFFF}]{AFAFAF} Niste zaposleni kao zastitar!");
}
return 1;
}
EDIT: now you're talking.