29.09.2012, 09:01
pawn Код:
#include <a_samp>
#define filerscript
#if defined FILTERSCRIPT
forward OnPlayerCommandPerformed(playerid, cmdtext[], success);
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/drink", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What is it that you want?", "Sprunk ($1)\nBeer ($2)\nWine ($3)", "Purchase", "Cancel");
return 1;
}
return 1;
}