Niko_Hs

[COMMAND]Dialog Alex

Aug 25th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.12 KB | None | 0 0
  1. /*Comandi di Alex*/
  2.  
  3. #include <a_samp>
  4. #define COLOR_GREEN 0x33AA33AA
  5. #define COLOR_YELLOW 0xFFFF00AA
  6. #define Dialog 8786
  7. #define Dialoga 8789
  8. #pragma tabsize 0
  9. new name[MAX_PLAYER_NAME];
  10. new string[128];
  11.  
  12. public OnPlayerCommandText(playerid, cmdtext[])
  13. {
  14.     if (strcmp("/comandidivertenti", cmdtext, true, 10) == 0){
  15.     ShowPlayerDialog(playerid, Dialog,DIALOG_STYLE_LIST,"Lista dei comandi divertenti", "nabbo\ndiventaadmin", "Seleziona", "Esci");
  16.         return 1;}
  17.         if (strcmp("/teles", cmdtext, true, 10) == 0){
  18.     ShowPlayerDialog(playerid, Dialoga,DIALOG_STYLE_LIST,"Lista teles", "Ls\nLv\nSf\nDrift1", "Seleziona", "Esci");
  19.         return 1;}
  20.         return 1;}
  21. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  22. {
  23.                  if(dialogid == Dialog)
  24.          {
  25.          if(response)
  26.          {
  27.          if(listitem == 0)
  28.          {
  29.          GetPlayerName(playerid, name, sizeof(name));
  30.          format(string, sizeof(string), "{00FF00}[TFS]Auto ha {FFFFFF}kickato %s! {FF0000}[motivo: il nabbo lo sei tu!] ", name);
  31.          SendClientMessageToAll(COLOR_YELLOW, string);
  32.          GameTextForPlayer(playerid, "KICKATO!", 5000000, 5);
  33.          SendClientMessage(playerid, COLOR_YELLOW, "[TFS]Auto ti ha kickato... Motivo? Il nabbo lo sei tu!!");
  34.          Kick(playerid);
  35.          }
  36.          if(listitem == 1)
  37.          {
  38.              SetPlayerSkin(playerid, 167);
  39.              GetPlayerName(playerid, name, sizeof(name));
  40.              format(string, sizeof(string), "{00FF00}%s {FFFFFF}è admin! Fallo{FF0000} anche tu! (/diventaadmin)", name);
  41.          SendClientMessageToAll(COLOR_GREEN, string);
  42.          }
  43.              }
  44.          return 1;
  45.          }
  46.                  if(dialogid == Dialoga)
  47.          {
  48.          if(response)
  49.          {
  50.          if(listitem == 0)
  51.          {
  52.                  GetPlayerName(playerid, name, sizeof(name));
  53.              format(string, sizeof(string), "{00FF00}%s {FFFFFF}è andato{FF0000}a Los Santos (/lv)", name);
  54.          SendClientMessageToAll(COLOR_GREEN, string);
  55.          SetPlayerPos(playerid,1593.6757,-1315.7917,17.4821);
  56.          }
  57.          if(listitem == 1)
  58.          {
  59.          GetPlayerName(playerid, name, sizeof(name));
  60.          format(string, sizeof(string), "{00FF00}%s {FFFFFF}è andato{FF0000}a Las Venturas (/lv)", name);
  61.          SendClientMessageToAll(COLOR_GREEN, string);
  62.          SetPlayerPos(playerid,2026.7477,1008.9435,10.8203);
  63.          }
  64.          if(listitem == 2)
  65.          {
  66.          GetPlayerName(playerid, name, sizeof(name));
  67.          format(string, sizeof(string), "{00FF00}%s {FFFFFF}è andato{FF0000}a San Fierro (/sf)", name);
  68.          SendClientMessageToAll(COLOR_GREEN, string);
  69.          SetPlayerPos(playerid,-1986.8064,140.7033,27.5390);
  70.          }
  71.          if(listitem == 3)
  72.          {
  73.          GetPlayerName(playerid, name, sizeof(name));
  74.          format(string, sizeof(string), "%{00FF00}%s {FFFFFF}è andato{FF0000}a /drift1!", name);
  75.          SendClientMessageToAll(COLOR_GREEN, string);
  76.          SetPlayerPos(playerid,-350.6609,1529.5605,75.3594);
  77.          }
  78.  }
  79. return 1;
  80. }
  81. return 1;
  82. }
Advertisement
Add Comment
Please, Sign In to add comment