06.05.2013, 00:11
Here's the entire command
COMMAND:vikendica(playerid, params [])
{
ShowPlayerDialog(playerid, DIALOG_VIKENDICA, DIALOG_STYLE_LIST, "Vikendica Sistem", "Otkljucaj\nZakljucaj\nProdaj igracu", "Odaberi", "Odustani");
return 1;
}
Here is the Dialog:
if(dialogid == DIALOG_VIKENDICA)
{
if(!response) return SendClientMessage(playerid,-1,"Odustali ste");
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, -1, "Zakljucali ste vikendicu");
return 1;
}
case 1:
{
SendClientMessage(playerid, -1, "Otkljucali ste vikendicu");
return 1;
}
case 2:
{
SendClientMessage(playerid, -1, "Prodaj igracu");
return 1;
}
}
}
}
COMMAND:vikendica(playerid, params [])
{
ShowPlayerDialog(playerid, DIALOG_VIKENDICA, DIALOG_STYLE_LIST, "Vikendica Sistem", "Otkljucaj\nZakljucaj\nProdaj igracu", "Odaberi", "Odustani");
return 1;
}
Here is the Dialog:
if(dialogid == DIALOG_VIKENDICA)
{
if(!response) return SendClientMessage(playerid,-1,"Odustali ste");
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, -1, "Zakljucali ste vikendicu");
return 1;
}
case 1:
{
SendClientMessage(playerid, -1, "Otkljucali ste vikendicu");
return 1;
}
case 2:
{
SendClientMessage(playerid, -1, "Prodaj igracu");
return 1;
}
}
}
}