1. Try this code and see what messages you get.
pawn Code:
if(strcmp(cmd, "/drink", true) == 0)
{
SendClientMessage(playerid, -1, "/drink");
if(IsAtBar(playerid))
{
if(PlayerDrunk[playerid] < 10)
{
SendClientMessage(playerid, -1, "ShowPlayerDialog");
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "Drink Menu", "Beer($6)\nVodka($10)\nWhiskey($15)\nWine($10)\nTequila($20)\nWather($2)\nSoda($2)\nCoca-Cola($5)\nSchweppes($5)\nPrigat($7)\nFanta($7)\nSprite($7)\nCaffe($3)\nCocktail($7)","Buy", "Cancel");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, " You can't drink anymore, you will throw up !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE,"You are not at bar");
return 1;
}
}
2. You have to log in after you register.
3. Do you have /accept command?