AnthonyGates

Untitled

Nov 17th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.18 KB | None | 0 0
  1. #include <a_samp>
  2. #include <util/izcmd>
  3. main() {}
  4. enum eDialogok{
  5.     dialog1,
  6.     dialog2,
  7.     dialog3
  8. }
  9. #define MAX_DIALOGOK 5 // EZT ÍRD ÁT MINDÍG A MAX DIALOGRA
  10. new bool:DialogVoltMar[MAX_PLAYERS][MAX_DIALOGOK];
  11. CMD:muti1(playerid){
  12.     if(!DialogVoltMar[playerid][dialog1]){
  13.         ShowPlayerDialog(playerid, dialog1, DIALOG_STYLE_MSGBOX, "Cím","Muti1:Leírás", "OK", "");
  14.     }
  15.     else{
  16.         SendClientMessage(playerid, -1, "Már megjelent 1x az 1-es dialog!");
  17.     }  
  18.     return 1;
  19. }
  20. CMD:muti2(playerid){
  21.     if(!DialogVoltMar[playerid][dialog2]){
  22.         ShowPlayerDialog(playerid, dialog2, DIALOG_STYLE_MSGBOX, "Cím","Muti2:Leírás", "OK", "");
  23.     }
  24.     else{
  25.         SendClientMessage(playerid, -1, "Már megjelent 1x a 2-es dialog!");
  26.     }  
  27.     return 1;
  28. }
  29. CMD:muti2(playerid){
  30.     if(!DialogVoltMar[playerid][dialog3]){
  31.         ShowPlayerDialog(playerid, dialog3, DIALOG_STYLE_MSGBOX, "Cím","Muti3:Leírás", "OK", "");
  32.     }
  33.     else{
  34.         SendClientMessage(playerid, -1, "Már megjelent 1x a 3-as dialog!");
  35.     }  
  36.     return 1;
  37. }
  38. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  39. {
  40.     DialogVoltMar[playerid][dialogid] = true;
  41.     switch(dialogid){
  42.         //blablabla további dolgok
  43.     }
  44.     return 0;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment