Advertisement
Guest User

Untitled

a guest
Apr 14th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.13 KB | None | 0 0
  1.    
  2.  
  3.  
  4.     if(!strcmp(cmdtext, "/nustatymai", true))
  5.     {
  6.         new strf[500], str[150];
  7.         format(str, sizeof(str), "{999999}• {ffffff}Logotipas ({33cc00}Įjungti{ffffff}/{ff0000}Išjungti{ffffff})\n");
  8.         strcat(strf, str);
  9.         format(str, sizeof(str), "{999999}• {ffffff}Spidometras ({33cc00}Įjungti{ffffff}/{ff0000}Išjungti{ffffff})\n");
  10.         strcat(strf, str);
  11.         format(str, sizeof(str), "{999999}• {ffffff}Žinutės apačioje ({33cc00}Įjungti{ffffff}/{ff0000}Išjungti{ffffff})\n");
  12.         strcat(strf, str);
  13.         format(str, sizeof(str), "{999999}• {ffffff}Laikas/Data ({33cc00}Įjungti{ffffff}/{ff0000}Išjungti{ffffff})\n");
  14.         strcat(strf, str);
  15.         format(str, sizeof(str), "{999999}• {ffffff}Žinutės dešinėje ({33cc00}Įjungti{ffffff}/{ff0000}Išjungti{ffffff})\n");
  16.         strcat(strf, str);
  17.         ShowPlayerDialog(playerid, 1566, DIALOG_STYLE_LIST, "Išjungti/Įjungti TextDraw rodymą", strf, "Pasirinkti", "Išeiti");
  18.         return 1;
  19.     }
  20.  
  21.  
  22.    GM PRADZIOJE
  23.  
  24. new LogotipasNustatymas[MAX_PLAYERS], SpidiksNustatymas[MAX_PLAYERS], MessageNustatymas[MAX_PLAYERS], LaikrodisNustatymas[MAX_PLAYERS], TekstoNustatymas;
  25.  
  26.  
  27. public clear
  28.  
  29.     LogotipasNustatymas[playerid]=false;
  30.     SpidiksNustatymas[playerid]=false;
  31.     MessageNustatymas[playerid]=false;
  32.     LaikrodisNustatymas[playerid]=false;
  33.     TekstoNustatymas[playerid]=false;
  34.  
  35. dialogresponse
  36.  
  37.     if(dialogid == 1566)
  38.     {  
  39.         if(response)
  40.         {
  41.             switch(listitem)
  42.             {
  43.                 case 0://Logotipas
  44.                 {
  45.                     if(!WantedNustatymas[playerid])
  46.                     {
  47.                         TextDrawHideForPlayer(playerid, Lglogo);
  48.                         LogotipasNustatymas[playerid]=true;
  49.                         SendClientMessage(playerid, YELLOW, "• Išjungėte logotipo rodymą");
  50.                     }
  51.                     else
  52.                     {
  53.                         TextDrawShowForPlayer(playerid, Lglogo);
  54.                         LogotipasNustatymas[playerid]=false;
  55.                         SendClientMessage(playerid, YELLOW, "• Įjungėte logotipo rodymą");
  56.                     }
  57.                 }
  58.                 case 1://SPIDOMETRAS
  59.                 {
  60.                     if(!SpidiksNustatymas[playerid])
  61.                     {
  62.                         TextDrawHideForPlayer(playerid, spidometras[playerid]);
  63.                         SpidiksNustatymas[playerid]=true;
  64.                         SendClientMessage(playerid, YELLOW, "• Išjungėte Spidometro rodymą");
  65.                     }
  66.                     else
  67.                     {
  68.                         TextDrawShowForPlayer(playerid, spidometras[playerid]);
  69.                         SpidiksNustatymas[playerid]=false;
  70.                         SendClientMessage(playerid, YELLOW, "• Įjungėte Spidometro rodymą");
  71.                     }
  72.                 }
  73.                 case 2://ŽINUTĖS APAČIOJE
  74.                 {
  75.                     if(!MessageNustatymas[playerid])
  76.                     {
  77.                         TextDrawHideForPlayer(playerid, ShadowsRandom);
  78.                         MessageNustatymas[playerid]=true;
  79.                         SendClientMessage(playerid, YELLOW, "• Išjungėte žinučių rodymą apačioje");
  80.                     }
  81.                     else
  82.                     {
  83.                         TextDrawShowForPlayer(playerid, ShadowsRandom);
  84.                         MessageNustatymas[playerid]=false;
  85.                         SendClientMessage(playerid, YELLOW, "• Įjungėte žinučių rodymą apačioje");
  86.                     }
  87.                 }
  88.                 case 3:
  89.                 {
  90.                     if(!LaikrodisNustatymas[playerid])
  91.                     {
  92.                         LaikrodisNustatymas[playerid]=true;
  93.                         TextDrawHideForPlayer(playerid, Time);
  94.                         TextDrawHideForPlayer(playerid, Date);
  95.                         SendClientMessage(playerid, YELLOW, "• Išjungėte Laiko/Datos rodymą");
  96.                     }
  97.                     else
  98.                     {
  99.                         TextDrawShowForPlayer(playerid, Time);
  100.                         TextDrawShowForPlayer(playerid, Time);
  101.                         LaikrodisNustatymas[playerid]=false;
  102.                         SendClientMessage(playerid, YELLOW, "• Įjungėte Laiko/Datos rodymą");
  103.                     }
  104.                 }
  105.                 case 4://TEKSTAS DEŠNĖJE
  106.                 {
  107.                     if(!TekstoNustatymas[playerid])
  108.                     {
  109.                         TekstoNustatymas[playerid]=true;
  110.                         TextDrawHideForPlayer(playerid, Saugz[playerid]);
  111.                         SendClientMessage(playerid, YELLOW, "• Išjungėte teksto dešinėje rodymą");
  112.                     }
  113.                     else
  114.                     {
  115.                         TextDrawShowForPlayer(playerid, Saugz[playerid]);
  116.                         TekstoNustatymas[playerid]=false;
  117.                         SendClientMessage(playerid, YELLOW, "• Įjungėte teksto dešinėje rodymą");
  118.                     }
  119.                 }
  120.             }
  121.         }
  122.         return 1;
  123.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement