Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <util/izcmd>
- main() {}
- enum eDialogok{
- dialog1,
- dialog2,
- dialog3
- }
- #define MAX_DIALOGOK 5 // EZT ÍRD ÁT MINDÍG A MAX DIALOGRA
- new bool:DialogVoltMar[MAX_PLAYERS][MAX_DIALOGOK];
- CMD:muti1(playerid){
- if(!DialogVoltMar[playerid][dialog1]){
- ShowPlayerDialog(playerid, dialog1, DIALOG_STYLE_MSGBOX, "Cím","Muti1:Leírás", "OK", "");
- }
- else{
- SendClientMessage(playerid, -1, "Már megjelent 1x az 1-es dialog!");
- }
- return 1;
- }
- CMD:muti2(playerid){
- if(!DialogVoltMar[playerid][dialog2]){
- ShowPlayerDialog(playerid, dialog2, DIALOG_STYLE_MSGBOX, "Cím","Muti2:Leírás", "OK", "");
- }
- else{
- SendClientMessage(playerid, -1, "Már megjelent 1x a 2-es dialog!");
- }
- return 1;
- }
- CMD:muti2(playerid){
- if(!DialogVoltMar[playerid][dialog3]){
- ShowPlayerDialog(playerid, dialog3, DIALOG_STYLE_MSGBOX, "Cím","Muti3:Leírás", "OK", "");
- }
- else{
- SendClientMessage(playerid, -1, "Már megjelent 1x a 3-as dialog!");
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- DialogVoltMar[playerid][dialogid] = true;
- switch(dialogid){
- //blablabla további dolgok
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment