16.03.2012, 03:09
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2492.4126,-1681.5120,13.3375))
if(newkeys & KEY_ACTION) // Coloque a tecla que quiser
ShowPlayerDialog(playerid, Dialog, DIALOG_STYLE_LIST2, "{FFFFFF}» {FF4F00}Lojinha DPS {FFFFFF}« ", "xTudo\nxBurge\nCachorro Quente", "Selecionar", "Cancelar");
return true;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == Dialog)
{
switch(listitem)
{
case 0:
{
//XTudo
}
case 1:
{
//XBurger
}
case 2:
{
//Cachorro quente
}
}
}
return true;
}