Quote:
Originally Posted by oMa37
Then do it like this:
PHP код:
CMD:minigun(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOGMINIGUN, DIALOG_STYLE_MSGBOX, "Minigun", "Are you sure you wanna join the minigun dm?", "Yes", "No");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGMINIGUN)
{
if(response)
{
// Here the code used when player click Yes
}
else
{
// Here the code used when player click No
}
}
return 0;
}
|
Thank you i have see that :
https://sampwiki.blast.hk/wiki/OnDialogResponse.