Jump to content
  • 0

pomoc Pickupy a dialogy


Dominik Rozporka

Dotaz

4 odpovědí na tuto otázku

Recommended Posts

  • 0

http://wiki.sa-mp.com/wiki/PickupTypes toto by ti mělo pomoct..taky jsem to řešil než jsem stihl něco vybrat vybíral jsem znovu ale už jsi nepamatuju jak jsem to dělal :d

 

EDIT: a nebo to udělat že na pickupu musí dát třeba enter pro otevření dialogu

Edited by vladasavel
Link to comment
Share on other sites

  • 0

new bool:ShowedPlayerDialog[MAX_PLAYERS_EX];

 

stock ShowPlayerDialogEx(playerid, id, style, lis[], mess[], button1[], button2[])
{
     if(ShowedPlayerDialog[playerid] == true) return false;
    ShowPlayerDialog(playerid, id, style, lis, mess, button1, button2);
    ShowedPlayerDialog[playerid] = true;
    return true;
}

 

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

    ShowedPlayerDialog[playerid]=false;
    return 1;
}

 

používaj namiesto ShowPlayerDialog >> ShowPlayerDialogEx


 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...