10.08.2011, 11:28
pawn Код:
#include "a_samp"
#define MAX_DIALOGS (15)
#define DIALOG_BASE (324)
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/vremenska", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, DIALOG_BASE+2, DIALOG_STYLE_LIST, "Vremenska prognoza by censure", "Oluja\nKisa\nGrmljavina\nSneg\nSunce", "Izaberi", "Izadji");
return true;
}
return false;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_BASE+2:
{
// Your code.
}
}
return true;
}