20.03.2010, 23:36
Quote:
Originally Posted by Assyria
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/drinks", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What would you like to drink?", "Sprunk ($1)\nBeer ($2)\nWine ($3)", "Purchase", "Cancel"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) (here is the menu..) { |
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/drinks", cmdtext, true, 10) == 0)
{
if (GetPlayerInterior(playerid)==interiorid) // Replace Interior ID With The Interior ID you want from the link i gave you
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What would you like to drink?", "Sprunk ($1)\nBeer ($2)\nWine ($3)", "Purchase", "Cancel");
}
else return SendClientMessage(playerid,0xAA0000AA,"Youre Not In The Right Place!");
return 1;
}
return 0;
}
pawn Код:
|| interiorid2
pawn Код:
if (GetPlayerInterior(playerid)==interiorid || interiorid) // You Can Add as many as you want .